ml-matrix 6.10.5 → 6.10.6

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.
Files changed (2) hide show
  1. package/matrix.mjs +36 -0
  2. package/package.json +23 -14
package/matrix.mjs ADDED
@@ -0,0 +1,36 @@
1
+ import matrix from './matrix.js';
2
+
3
+ export const AbstractMatrix = matrix.AbstractMatrix;
4
+ export const CHO = matrix.CHO;
5
+ export const CholeskyDecomposition = matrix.CholeskyDecomposition;
6
+ export const EVD = matrix.EVD;
7
+ export const EigenvalueDecomposition = matrix.EigenvalueDecomposition;
8
+ export const LU = matrix.LU;
9
+ export const LuDecomposition = matrix.LuDecomposition;
10
+ export const Matrix = matrix.Matrix;
11
+ export const MatrixColumnSelectionView = matrix.MatrixColumnSelectionView;
12
+ export const MatrixColumnView = matrix.MatrixColumnView;
13
+ export const MatrixFlipColumnView = matrix.MatrixFlipColumnView;
14
+ export const MatrixFlipRowView = matrix.MatrixFlipRowView;
15
+ export const MatrixRowSelectionView = matrix.MatrixRowSelectionView;
16
+ export const MatrixRowView = matrix.MatrixRowView;
17
+ export const MatrixSelectionView = matrix.MatrixSelectionView;
18
+ export const MatrixSubView = matrix.MatrixSubView;
19
+ export const MatrixTransposeView = matrix.MatrixTransposeView;
20
+ export const NIPALS = matrix.NIPALS;
21
+ export const Nipals = matrix.Nipals;
22
+ export const QR = matrix.QR;
23
+ export const QrDecomposition = matrix.QrDecomposition;
24
+ export const SVD = matrix.SVD;
25
+ export const SingularValueDecomposition = matrix.SingularValueDecomposition;
26
+ export const WrapperMatrix1D = matrix.WrapperMatrix1D;
27
+ export const WrapperMatrix2D = matrix.WrapperMatrix2D;
28
+ export const correlation = matrix.correlation;
29
+ export const covariance = matrix.covariance;
30
+ export default matrix.default;
31
+ export const determinant = matrix.determinant;
32
+ export const inverse = matrix.inverse;
33
+ export const linearDependencies = matrix.linearDependencies;
34
+ export const pseudoInverse = matrix.pseudoInverse;
35
+ export const solve = matrix.solve;
36
+ export const wrap = matrix.wrap;
package/package.json CHANGED
@@ -1,24 +1,33 @@
1
1
  {
2
2
  "name": "ml-matrix",
3
- "version": "6.10.5",
3
+ "version": "6.10.6",
4
4
  "description": "Matrix manipulation and computation library",
5
5
  "main": "matrix.js",
6
6
  "module": "src/index.js",
7
7
  "jsdelivr": "matrix.umd.js",
8
8
  "unpkg": "matrix.umd.js",
9
9
  "types": "matrix.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./matrix.d.ts",
13
+ "require": "./matrix.js",
14
+ "default": "./matrix.mjs"
15
+ }
16
+ },
10
17
  "sideEffects": false,
11
18
  "files": [
12
19
  "matrix.d.ts",
13
20
  "matrix.js",
21
+ "matrix.mjs",
14
22
  "matrix.umd.js",
15
23
  "src"
16
24
  ],
17
25
  "scripts": {
26
+ "build-esm-facade": "node tools/build-esm-facade.mjs",
18
27
  "compile": "rollup -c",
19
28
  "eslint": "eslint src testUtils.js",
20
29
  "eslint-fix": "npm run eslint -- --fix",
21
- "prepack": "npm run compile",
30
+ "prepack": "npm run compile && npm run build-esm-facade",
22
31
  "prettier": "prettier --check src",
23
32
  "prettier-write": "prettier --write src",
24
33
  "test": "npm run test-only && npm run eslint && npm run prettier",
@@ -52,23 +61,23 @@
52
61
  },
53
62
  "homepage": "https://github.com/mljs/matrix",
54
63
  "devDependencies": {
55
- "@babel/plugin-transform-modules-commonjs": "^7.21.5",
56
- "@rollup/plugin-commonjs": "^24.1.0",
57
- "@rollup/plugin-node-resolve": "^15.0.2",
58
- "@rollup/plugin-terser": "^0.4.1",
59
- "@vitest/coverage-c8": "^0.31.0",
64
+ "@babel/plugin-transform-modules-commonjs": "^7.23.0",
65
+ "@rollup/plugin-commonjs": "^25.0.7",
66
+ "@rollup/plugin-node-resolve": "^15.2.3",
67
+ "@rollup/plugin-terser": "^0.4.4",
68
+ "@vitest/coverage-v8": "^0.34.6",
60
69
  "benchmark": "^2.1.4",
61
- "csv-parse": "^5.3.10",
62
- "eslint": "^8.40.0",
63
- "eslint-config-cheminfo": "^8.2.0",
70
+ "csv-parse": "^5.5.2",
71
+ "eslint": "^8.51.0",
72
+ "eslint-config-cheminfo": "^9.0.2",
64
73
  "jest-matcher-deep-close-to": "^3.0.2",
65
- "mathjs": "^11.8.0",
74
+ "mathjs": "^11.11.2",
66
75
  "ml-dataset-iris": "^1.2.1",
67
76
  "numeric": "^1.2.6",
68
- "prettier": "^2.8.8",
77
+ "prettier": "^3.0.3",
69
78
  "pretty-hrtime": "^1.0.3",
70
- "rollup": "^3.21.5",
71
- "vitest": "^0.31.0"
79
+ "rollup": "^4.1.4",
80
+ "vitest": "^0.34.6"
72
81
  },
73
82
  "dependencies": {
74
83
  "is-any-array": "^2.0.1",