ml-sparse-matrix
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "ml-sparse-matrix", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Sparse matrix library", | ||
"main": "dist/SparseMatrix.js", | ||
"jsnext:main": "src/SparseMatrix.js", | ||
"main": "src/SparseMatrix.js", | ||
"scripts": { | ||
"test": "npm run build && mocha", | ||
"build": "rollup -c" | ||
"test": "mocha" | ||
}, | ||
"files": [ | ||
"dist", | ||
"src" | ||
@@ -31,10 +28,7 @@ ], | ||
"mocha": "^2.4.5", | ||
"rollup": "^0.26.3", | ||
"rollup-plugin-commonjs": "^2.2.1", | ||
"rollup-plugin-node-resolve": "^1.5.0", | ||
"should": "^8.3.1" | ||
}, | ||
"dependencies": { | ||
"ml-hash-table": "^0.1.1" | ||
"ml-hash-table": "^0.1.2" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import HashTable from 'ml-hash-table'; | ||
const HashTable = require('ml-hash-table'); | ||
@@ -128,3 +128,5 @@ class SparseMatrix { | ||
const result = new SparseMatrix(m * p, n * q); | ||
const result = new SparseMatrix(m * p, n * q, { | ||
initialCapacity: this.cardinality * other.cardinality | ||
}); | ||
this.forEachNonZero((i, j, v1) => { | ||
@@ -179,3 +181,3 @@ other.forEachNonZero((k, l, v2) => { | ||
export default SparseMatrix; | ||
module.exports = SparseMatrix; | ||
@@ -182,0 +184,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
2
9795
3
244
7
Updatedml-hash-table@^0.1.2