+4
-4
| { | ||
| "name": "ml-matrix", | ||
| "version": "6.10.0", | ||
| "version": "6.10.1", | ||
| "description": "Matrix manipulation and computation library", | ||
@@ -56,9 +56,9 @@ "main": "matrix.js", | ||
| "@babel/plugin-transform-modules-commonjs": "^7.17.9", | ||
| "@rollup/plugin-commonjs": "^21.1.0", | ||
| "@rollup/plugin-commonjs": "^22.0.0", | ||
| "@rollup/plugin-node-resolve": "^13.2.1", | ||
| "benchmark": "^2.1.4", | ||
| "csv-parse": "^5.0.4", | ||
| "eslint": "^8.13.0", | ||
| "eslint": "^8.14.0", | ||
| "eslint-config-cheminfo": "^7.3.0", | ||
| "jest": "^27.5.1", | ||
| "jest": "^28.0.0", | ||
| "jest-matcher-deep-close-to": "^3.0.2", | ||
@@ -65,0 +65,0 @@ "mathjs": "^10.5.0", |
+9
-0
@@ -1524,2 +1524,8 @@ import { isAnyArray } from 'is-any-array'; | ||
| function isArrayOfNumbers(array) { | ||
| return array.every((element) => { | ||
| return typeof element === 'number'; | ||
| }); | ||
| } | ||
| // Synonyms | ||
@@ -1566,2 +1572,5 @@ AbstractMatrix.random = AbstractMatrix.rand; | ||
| } | ||
| if (!isArrayOfNumbers(arrayData[i])) { | ||
| throw new TypeError('Input data contains non-numeric values'); | ||
| } | ||
| this.data.push(Float64Array.from(arrayData[i])); | ||
@@ -1568,0 +1577,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
376104
0.16%10648
0.15%