Comparing version 0.0.1 to 0.0.3
{ | ||
"name": "vatrix", | ||
"description": "Vector and matrix tools", | ||
"version": "0.0.1", | ||
"description": "matrix tools", | ||
"version": "0.0.3", | ||
"scripts": { | ||
"test": "mocha", | ||
"prepublish": "npm test" | ||
}, | ||
"dependencies": { | ||
"totemizer": "~0.0.5", | ||
"momentum": "~0.1.2" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"expect.js": "*" | ||
}, | ||
"repository": { | ||
"type":"git", | ||
"url": "git://github.com/ashnur/vatrix.git" | ||
"type": "git", | ||
"url": "https://github.com/ashnur/vatrix.git" | ||
}, | ||
@@ -13,12 +25,30 @@ "bugs": { | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "mocha test/*.js" | ||
"testling": { | ||
"files": "test/*.js", | ||
"browsers": [ | ||
"iexplore/6.0", | ||
"iexplore/7.0", | ||
"iexplore/8.0", | ||
"iexplore/9.0", | ||
"iexplore/10.0", | ||
"chrome/4.0", | ||
"chrome/23.0", | ||
"firefox/3.0", | ||
"firefox/17.0", | ||
"opera/10.0", | ||
"opera/12.0", | ||
"safari/5.0.5", | ||
"safari/5.1" | ||
], | ||
"harness": "mocha" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"express.js": "*" | ||
}, | ||
"keywords": [ | ||
"vatrix", | ||
"vatrices", | ||
"matrix", | ||
"matrices" | ||
], | ||
"author": "ashnur", | ||
"license": "DAFUQ" | ||
"license": "DAFUQ", | ||
"readmeFilename": "README.md" | ||
} |
@@ -14,10 +14,23 @@ vatrix | ||
There isn't a good, performant vectorn, matrixn library for javascript. And I need it. | ||
There is of course [matrixjs](https://npmjs.org/package/matrixjs), but to be hones I do not like to much recursive implementations and it uses floats, which I am not a fan of. | ||
# Support | ||
[![browser support](http://ci.testling.com/ashnur/vatrix.png)](http://ci.testling.com/ashnur/vatrix) | ||
## Example | ||
### vatrix | ||
The goal is to have a conviently usable general vector tool. This means that some of the functions can take arguments with various types. | ||
I've decided not to check for arguments which doesn't make sense (like providing numbers instead of arrays to vectorAddition()). | ||
If you get exceptions complaining about something related to arrays, chances are you've given a number somewhere where it doesn't make sense. | ||
### Scalar multiplication | ||
```javascript | ||
var vatrix = require('vatrix') | ||
var vatrix = require('vatrix'); | ||
vatrix.vectorMultiply([1,3,5,7,11,13], 13); //[13,39,65,91,143,169] | ||
``` | ||
@@ -24,0 +37,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
17810
4
374
51
2
+ Addedmomentum@~0.1.2
+ Addedtotemizer@~0.0.5
+ Addedes5-shim@2.0.12(transitive)
+ Addedexpect.js@0.2.0(transitive)
+ Addedtotemizer@0.0.9(transitive)