@danielsimonjr/mathts-linalg 0.1.0
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/README.md +25 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +49 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @danielsimonjr/mathts-linalg
|
|
2
|
+
|
|
3
|
+
Standalone linear-algebra decompositions for [MathTS](https://github.com/danielsimonjr/mathts).
|
|
4
|
+
|
|
5
|
+
A focused entry point over the decomposition operations in
|
|
6
|
+
[`@danielsimonjr/mathts-matrix`](https://www.npmjs.com/package/@danielsimonjr/mathts-matrix).
|
|
7
|
+
The implementation is re-exported, not duplicated.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @danielsimonjr/mathts-linalg
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## What it exports
|
|
16
|
+
|
|
17
|
+
- **Eigen:** `eig`, `eigvals`, `powerIteration` (+ WASM `eigWasm`, `eigvalsWasm`, `spectralRadiusWasm`).
|
|
18
|
+
- **SVD:** `svd`, `singularValues`, `pinv`, `lowRankApprox`, `cond`, `norm2`, `normFro` (+ `svdWasm`).
|
|
19
|
+
- **Factorizations:** `qr`, `lu`, `cholesky`, `matrixSchur`, `matrixPinv`.
|
|
20
|
+
- **Matrix functions:** `matrixExpm`, `matrixLogm`, `matrixSqrtm`.
|
|
21
|
+
- Result/option types: `EigResult`, `SVDResult`, `QRResult`, `LUResult`, `CholeskyResult`, `SchurResult`, etc.
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
MIT (c) Daniel Simon Jr.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CholeskyResult, EigOptions, EigResult, ExpmOptions, LUResult, LogmOptions, PinvOptions, QROptions, QRResult, SVDOptions, SVDResult, SchurOptions, SchurResult, SqrtmOptions, cholesky, cond, eig, eigWasm, eigvals, eigvalsWasm, lowRankApprox, lu, matrixExpm, matrixLogm, matrixPinv, matrixSchur, matrixSqrtm, norm2, normFro, pinv, powerIteration, qr, singularValues, spectralRadiusWasm, svd, svdWasm } from '@danielsimonjr/mathts-matrix';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import {
|
|
3
|
+
eig,
|
|
4
|
+
eigvals,
|
|
5
|
+
powerIteration,
|
|
6
|
+
svd,
|
|
7
|
+
singularValues,
|
|
8
|
+
pinv,
|
|
9
|
+
lowRankApprox,
|
|
10
|
+
cond,
|
|
11
|
+
norm2,
|
|
12
|
+
normFro,
|
|
13
|
+
eigWasm,
|
|
14
|
+
eigvalsWasm,
|
|
15
|
+
spectralRadiusWasm,
|
|
16
|
+
svdWasm,
|
|
17
|
+
matrixPinv,
|
|
18
|
+
qr,
|
|
19
|
+
lu,
|
|
20
|
+
cholesky,
|
|
21
|
+
matrixExpm,
|
|
22
|
+
matrixLogm,
|
|
23
|
+
matrixSqrtm,
|
|
24
|
+
matrixSchur
|
|
25
|
+
} from "@danielsimonjr/mathts-matrix";
|
|
26
|
+
export {
|
|
27
|
+
cholesky,
|
|
28
|
+
cond,
|
|
29
|
+
eig,
|
|
30
|
+
eigWasm,
|
|
31
|
+
eigvals,
|
|
32
|
+
eigvalsWasm,
|
|
33
|
+
lowRankApprox,
|
|
34
|
+
lu,
|
|
35
|
+
matrixExpm,
|
|
36
|
+
matrixLogm,
|
|
37
|
+
matrixPinv,
|
|
38
|
+
matrixSchur,
|
|
39
|
+
matrixSqrtm,
|
|
40
|
+
norm2,
|
|
41
|
+
normFro,
|
|
42
|
+
pinv,
|
|
43
|
+
powerIteration,
|
|
44
|
+
qr,
|
|
45
|
+
singularValues,
|
|
46
|
+
spectralRadiusWasm,
|
|
47
|
+
svd,
|
|
48
|
+
svdWasm
|
|
49
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-linalg",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Standalone linear-algebra decompositions for MathTS (eigen, SVD, QR, LU, Cholesky, Schur, matrix functions), re-exported as a focused package",
|
|
5
|
+
"author": "Daniel Simon Jr.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/index.js",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"README.md"
|
|
20
|
+
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup src/index.ts --format esm --dts --clean",
|
|
23
|
+
"dev": "tsup src/index.ts --format esm --dts --watch",
|
|
24
|
+
"test": "vitest run",
|
|
25
|
+
"test:watch": "vitest",
|
|
26
|
+
"test:coverage": "vitest run --coverage",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint src --ext .ts",
|
|
29
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
30
|
+
"clean": "rm -rf dist",
|
|
31
|
+
"build:prod": "tsup src/index.ts --format esm --dts --clean --minify --treeshake"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@danielsimonjr/mathts-core": "0.1.3",
|
|
35
|
+
"@danielsimonjr/mathts-matrix": "0.1.4"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@types/node": "^25.5.2",
|
|
39
|
+
"tsup": "^8.0.0",
|
|
40
|
+
"typescript": "^5.3.0",
|
|
41
|
+
"vitest": "^4.1.5"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public"
|
|
45
|
+
},
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://github.com/danielsimonjr/mathts",
|
|
49
|
+
"directory": "linalg"
|
|
50
|
+
},
|
|
51
|
+
"keywords": [
|
|
52
|
+
"math",
|
|
53
|
+
"typescript",
|
|
54
|
+
"linear-algebra",
|
|
55
|
+
"linalg",
|
|
56
|
+
"svd",
|
|
57
|
+
"eigenvalue",
|
|
58
|
+
"qr",
|
|
59
|
+
"lu",
|
|
60
|
+
"cholesky",
|
|
61
|
+
"matrix"
|
|
62
|
+
]
|
|
63
|
+
}
|