@danielsimonjr/mathts-wasm 0.2.3 → 0.3.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 +132 -132
- package/build/bindings/wasm-loader.d.ts +1 -1
- package/build/bindings/wasm-loader.d.ts.map +1 -1
- package/build/bindings/wasm-loader.js.map +1 -1
- package/build/mathts-debug.d.ts +6 -1
- package/build/mathts-debug.js +7 -4
- package/build/mathts-debug.wasm +0 -0
- package/build/mathts-debug.wasm.map +1 -1
- package/build/mathts-debug.wat +439 -396
- package/build/mathts.d.ts +6 -1
- package/build/mathts.js +7 -4
- package/build/mathts.wasm +0 -0
- package/build/mathts.wat +370 -370
- package/build/wasm-manifest.json +2 -2
- package/package.json +66 -66
- package/src/bindings/index.ts +9 -9
- package/src/bindings/wasm-loader.ts +382 -381
package/build/wasm-manifest.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"mathts-debug.wasm": "sha384-
|
|
3
|
-
"mathts.wasm": "sha384-
|
|
2
|
+
"mathts-debug.wasm": "sha384-esh+liWvxkPSUVRIM6wFX44bELrHfBvSb4Pwxx0d3rZlcczN80R7vfJrQ5+JoyAK",
|
|
3
|
+
"mathts.wasm": "sha384-01dwonC0XXiSPd3nkA+vORAXfIlWJ9fmNpsMiJGwRBkc3HXUthQyl6tSOrAH+d61"
|
|
4
4
|
}
|
package/package.json
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@danielsimonjr/mathts-wasm",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "MathTS WebAssembly module - high-performance numerical computing",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "build/mathts.js",
|
|
7
|
-
"types": "build/mathts.d.ts",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"import": "./build/mathts.js",
|
|
11
|
-
"types": "./build/mathts.d.ts"
|
|
12
|
-
},
|
|
13
|
-
"./wasm": {
|
|
14
|
-
"import": "./build/mathts.wasm"
|
|
15
|
-
},
|
|
16
|
-
"./debug": {
|
|
17
|
-
"import": "./build/mathts-debug.wasm"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"build/",
|
|
22
|
-
"src/bindings/"
|
|
23
|
-
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"asbuild:debug": "asc src/index.ts --target debug",
|
|
26
|
-
"asbuild:release": "asc src/index.ts --target release",
|
|
27
|
-
"asbuild": "bun run asbuild:debug && bun run asbuild:release && bun run gen:manifest",
|
|
28
|
-
"gen:manifest": "node scripts/gen-wasm-manifest.mjs",
|
|
29
|
-
"build:bindings": "tsc -p tsconfig.bindings.json",
|
|
30
|
-
"build": "bun run asbuild && bun run build:bindings",
|
|
31
|
-
"clean": "rm -rf build/",
|
|
32
|
-
"test": "node tests/run.js && node tests/special-numtheory.test.mjs && node tests/polynomial.test.mjs && node tests/signal.test.mjs && node tests/linalg.test.mjs && node tests/curvefit.test.mjs && node tests/optimization.test.mjs && node tests/approx.test.mjs && node tests/tensor.test.mjs && node tests/phase2-kernels.test.mjs && bun run test:diff",
|
|
33
|
-
"test:diff": "node tests/diff-special.test.mjs && node tests/diff-decomposition.test.mjs",
|
|
34
|
-
"coverage:matrix": "python -X utf8 tests/audit/coverage_matrix.py",
|
|
35
|
-
"golden:gen": "python -X utf8 tests/golden/generate_goldens.py",
|
|
36
|
-
"benchmark": "node --experimental-wasm-simd benchmarks/run.js"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@assemblyscript/loader": "^0.28.20",
|
|
40
|
-
"assemblyscript": "^0.28.20",
|
|
41
|
-
"typescript": "^7.0.2"
|
|
42
|
-
},
|
|
43
|
-
"keywords": [
|
|
44
|
-
"math",
|
|
45
|
-
"wasm",
|
|
46
|
-
"webassembly",
|
|
47
|
-
"assemblyscript",
|
|
48
|
-
"numerical",
|
|
49
|
-
"matrix",
|
|
50
|
-
"linear-algebra",
|
|
51
|
-
"simd"
|
|
52
|
-
],
|
|
53
|
-
"author": "Daniel Simon Jr.",
|
|
54
|
-
"license": "MIT",
|
|
55
|
-
"repository": {
|
|
56
|
-
"type": "git",
|
|
57
|
-
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
58
|
-
"directory": "assembly"
|
|
59
|
-
},
|
|
60
|
-
"bugs": {
|
|
61
|
-
"url": "https://github.com/danielsimonjr/MathTS/issues"
|
|
62
|
-
},
|
|
63
|
-
"publishConfig": {
|
|
64
|
-
"access": "public"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@danielsimonjr/mathts-wasm",
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "MathTS WebAssembly module - high-performance numerical computing",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "build/mathts.js",
|
|
7
|
+
"types": "build/mathts.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./build/mathts.js",
|
|
11
|
+
"types": "./build/mathts.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./wasm": {
|
|
14
|
+
"import": "./build/mathts.wasm"
|
|
15
|
+
},
|
|
16
|
+
"./debug": {
|
|
17
|
+
"import": "./build/mathts-debug.wasm"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"build/",
|
|
22
|
+
"src/bindings/"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"asbuild:debug": "asc src/index.ts --target debug",
|
|
26
|
+
"asbuild:release": "asc src/index.ts --target release",
|
|
27
|
+
"asbuild": "bun run asbuild:debug && bun run asbuild:release && bun run gen:manifest",
|
|
28
|
+
"gen:manifest": "node scripts/gen-wasm-manifest.mjs",
|
|
29
|
+
"build:bindings": "tsc -p tsconfig.bindings.json",
|
|
30
|
+
"build": "bun run asbuild && bun run build:bindings",
|
|
31
|
+
"clean": "rm -rf build/",
|
|
32
|
+
"test": "node tests/run.js && node tests/special-numtheory.test.mjs && node tests/polynomial.test.mjs && node tests/signal.test.mjs && node tests/linalg.test.mjs && node tests/curvefit.test.mjs && node tests/optimization.test.mjs && node tests/approx.test.mjs && node tests/tensor.test.mjs && node tests/phase2-kernels.test.mjs && bun run test:diff",
|
|
33
|
+
"test:diff": "node tests/diff-special.test.mjs && node tests/diff-decomposition.test.mjs",
|
|
34
|
+
"coverage:matrix": "python -X utf8 tests/audit/coverage_matrix.py",
|
|
35
|
+
"golden:gen": "python -X utf8 tests/golden/generate_goldens.py",
|
|
36
|
+
"benchmark": "node --experimental-wasm-simd benchmarks/run.js"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@assemblyscript/loader": "^0.28.20",
|
|
40
|
+
"assemblyscript": "^0.28.20",
|
|
41
|
+
"typescript": "^7.0.2"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"math",
|
|
45
|
+
"wasm",
|
|
46
|
+
"webassembly",
|
|
47
|
+
"assemblyscript",
|
|
48
|
+
"numerical",
|
|
49
|
+
"matrix",
|
|
50
|
+
"linear-algebra",
|
|
51
|
+
"simd"
|
|
52
|
+
],
|
|
53
|
+
"author": "Daniel Simon Jr.",
|
|
54
|
+
"license": "MIT",
|
|
55
|
+
"repository": {
|
|
56
|
+
"type": "git",
|
|
57
|
+
"url": "git+https://github.com/danielsimonjr/MathTS.git",
|
|
58
|
+
"directory": "assembly"
|
|
59
|
+
},
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/danielsimonjr/MathTS/issues"
|
|
62
|
+
},
|
|
63
|
+
"publishConfig": {
|
|
64
|
+
"access": "public"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/src/bindings/index.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* MathTS WASM Bindings
|
|
3
|
-
*
|
|
4
|
-
* High-level TypeScript interface for the MathTS WASM module.
|
|
5
|
-
* Handles memory management and provides a clean API.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export { MathTSWasm, loadWasm, loadWasmSync } from './wasm-loader.js';
|
|
9
|
-
export type { MathTSWasmExports, MathTSWasmInstance } from './wasm-loader.js';
|
|
1
|
+
/**
|
|
2
|
+
* MathTS WASM Bindings
|
|
3
|
+
*
|
|
4
|
+
* High-level TypeScript interface for the MathTS WASM module.
|
|
5
|
+
* Handles memory management and provides a clean API.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export { MathTSWasm, loadWasm, loadWasmSync } from './wasm-loader.js';
|
|
9
|
+
export type { MathTSWasmExports, MathTSWasmInstance } from './wasm-loader.js';
|