Permalink
Browse files

First commit

  • Loading branch information...
0 parents commit e309071c9233c8f7b1eb3ff68948f536ebd1fa94 @angusgibbs committed Sep 10, 2012
Showing with 753 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 .npmignore
  3. +19 −0 LICENSE
  4. +24 −0 README.md
  5. +434 −0 lib/matrix.js
  6. +28 −0 package.json
  7. +245 −0 test/test.js
@@ -0,0 +1 @@
+node_modules
@@ -0,0 +1,2 @@
+docs
+test
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) 2012 by Angus Gibbs
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
@@ -0,0 +1,24 @@
+# Matrix.js
+
+## About
+
+[Matrix.js](http://angusgibbs.github.com/matrix/) is a JavaScript utility library
+for working with [matrices](http://wikipedia.org/wiki/Matrix_(Mathematics)). It
+currently supports:
+
+* Adding matrices
+* Subtracting matrices
+* Multiplying matrices
+* Finding the determinant of a *n* by *n* matrix
+* Creating a *n* by *n* identity matrix
+* Raising a *n* by *n* matrix to the *x<sup>th</sup>* power
+
+For more information, see the [docs](http://angusgibbs.github.com/matrix/docs/).
+
+## Contributing
+
+Patches welcome, just make sure there are matching unit tests. Tests use
+[mocha](http://visionmedi.github.com/mocha/) with [expect.js](https://github.com/LearnBoost/expect.js).
+One particular feature that still needs to be implemented is finding the inverse
+of a matrix. I have an implementation that can invert either a 2 by 2 or a 3 by 3 matrix,
+but I am still looking for how to invert a *n* by *n* matrix.
Oops, something went wrong.

0 comments on commit e309071

Please sign in to comment.