ml-matrix 6.12.0 → 6.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ml-matrix",
3
- "version": "6.12.0",
3
+ "version": "6.12.2",
4
4
  "description": "Matrix manipulation and computation library",
5
5
  "main": "matrix.js",
6
6
  "module": "src/index.js",
@@ -18,8 +18,10 @@
18
18
  "files": [
19
19
  "matrix.d.ts",
20
20
  "matrix.js",
21
+ "matrix.js.map",
21
22
  "matrix.mjs",
22
23
  "matrix.umd.js",
24
+ "matrix.umd.js.map",
23
25
  "src"
24
26
  ],
25
27
  "scripts": {
@@ -61,26 +63,26 @@
61
63
  },
62
64
  "homepage": "https://github.com/mljs/matrix",
63
65
  "devDependencies": {
64
- "@babel/plugin-transform-modules-commonjs": "^7.23.0",
65
- "@rollup/plugin-commonjs": "^25.0.7",
66
- "@rollup/plugin-node-resolve": "^15.2.3",
66
+ "@babel/plugin-transform-modules-commonjs": "^7.27.1",
67
+ "@rollup/plugin-commonjs": "^28.0.6",
68
+ "@rollup/plugin-node-resolve": "^16.0.3",
67
69
  "@rollup/plugin-terser": "^0.4.4",
68
- "@vitest/coverage-v8": "^0.34.6",
70
+ "@vitest/coverage-v8": "^3.2.4",
69
71
  "benchmark": "^2.1.4",
70
- "csv-parse": "^5.5.2",
71
- "eslint": "^8.51.0",
72
- "eslint-config-cheminfo": "^9.0.2",
72
+ "csv-parse": "^5.6.0",
73
+ "eslint": "^9.29.0",
74
+ "eslint-config-cheminfo": "^14.1.1",
73
75
  "jest-matcher-deep-close-to": "^3.0.2",
74
- "mathjs": "^11.11.2",
76
+ "mathjs": "^14.5.2",
75
77
  "ml-dataset-iris": "^1.2.1",
76
78
  "numeric": "^1.2.6",
77
- "prettier": "^3.0.3",
79
+ "prettier": "^3.5.3",
78
80
  "pretty-hrtime": "^1.0.3",
79
- "rollup": "^4.1.4",
80
- "vitest": "^0.34.6"
81
+ "rollup": "^4.44.0",
82
+ "vitest": "^3.2.4"
81
83
  },
82
84
  "dependencies": {
83
- "is-any-array": "^2.0.1",
84
- "ml-array-rescale": "^1.3.7"
85
+ "is-any-array": "^3.0.0",
86
+ "ml-array-rescale": "^2.0.0"
85
87
  }
86
88
  }
package/src/matrix.js CHANGED
@@ -885,7 +885,7 @@ export class AbstractMatrix {
885
885
  let result = Matrix.eye(this.rows);
886
886
  let bb = this;
887
887
  // Note: Don't bit shift. In JS, that would truncate at 32 bits
888
- for (let e = scalar; e > 1; e /= 2) {
888
+ for (let e = scalar; e >= 1; e /= 2) {
889
889
  if ((e & 1) !== 0) {
890
890
  result = result.mmul(bb);
891
891
  }