Comparing version 1.0.0-0 to 1.0.0
@@ -0,1 +1,10 @@ | ||
1.0.0 / HEAD | ||
================== | ||
* add static min and max methods | ||
* add fullname synonyms for some methods | ||
* support all arithmetic operators and Math functions including static versions | ||
* convert project to use ES2015 classes | ||
* fix abs method not returning `this` | ||
0.1.0 / 2015-06-11 | ||
@@ -2,0 +11,0 @@ ================== |
{ | ||
"name": "ml-matrix", | ||
"version": "1.0.0-0", | ||
"version": "1.0.0", | ||
"description": "Matrix manipulation and computation library", | ||
@@ -11,3 +11,4 @@ "main": "src/index.js", | ||
"scripts": { | ||
"test": "mocha --require should-approximately-deep --reporter mocha-better-spec-reporter --recursive" | ||
"test": "mocha --require should-approximately-deep --reporter mocha-better-spec-reporter --recursive", | ||
"doc": "jsdoc2md src/matrix.js > Documentation.md" | ||
}, | ||
@@ -44,2 +45,3 @@ "repository": { | ||
"csv-parse": "^1.0.0", | ||
"jsdoc-to-markdown": "^1.1.1", | ||
"mathjs": "^2.1.1", | ||
@@ -46,0 +48,0 @@ "mocha": "^2.2.5", |
@@ -13,2 +13,4 @@ # ml-matrix | ||
## [Documentation](./Documentation.md) | ||
## License | ||
@@ -15,0 +17,0 @@ |
@@ -50,3 +50,3 @@ 'use strict'; | ||
CholeskyDecomposition.prototype = { | ||
get leftTriangularFactor() { | ||
get lowerTriangularMatrix() { | ||
return this.L; | ||
@@ -53,0 +53,0 @@ }, |
@@ -95,3 +95,3 @@ 'use strict'; | ||
}, | ||
get lowerTriangularFactor() { | ||
get lowerTriangularMatrix() { | ||
var data = this.LU, | ||
@@ -114,3 +114,3 @@ rows = data.rows, | ||
}, | ||
get upperTriangularFactor() { | ||
get upperTriangularMatrix() { | ||
var data = this.LU, | ||
@@ -117,0 +117,0 @@ rows = data.rows, |
@@ -101,3 +101,3 @@ 'use strict'; | ||
}, | ||
get upperTriangularFactor() { | ||
get upperTriangularMatrix() { | ||
var qr = this.QR, | ||
@@ -120,3 +120,3 @@ n = qr.columns, | ||
}, | ||
get orthogonalFactor() { | ||
get orthogonalMatrix() { | ||
var qr = this.QR, | ||
@@ -123,0 +123,0 @@ rows = qr.rows, |
@@ -16,5 +16,5 @@ 'use strict'; | ||
return nRows.clone(); | ||
} else if (typeof nRows === 'number' && nRows > 0) { // Create an empty matrix | ||
} else if (Number.isInteger(nRows) && nRows > 0) { // Create an empty matrix | ||
super(nRows); | ||
if (typeof nColumns === 'number' && nColumns > 0) { | ||
if (Number.isInteger(nColumns) && nColumns > 0) { | ||
for (var i = 0; i < nRows; i++) { | ||
@@ -24,3 +24,3 @@ this[i] = new Array(nColumns); | ||
} else { | ||
throw new TypeError('nColumns must be a positive number'); | ||
throw new TypeError('nColumns must be a positive integer'); | ||
} | ||
@@ -245,2 +245,5 @@ } else if (Array.isArray(nRows)) { // Copy the values from the 2D array | ||
apply(callback) { | ||
if (typeof callback !== 'function') { | ||
throw new TypeError('callback must be a function'); | ||
} | ||
let ii = this.rows; | ||
@@ -247,0 +250,0 @@ let jj = this.columns; |
Sorry, the diff of this file is not supported yet
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3034298
26
3068
0
25
10