numbl 0.0.12 → 0.0.13
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 +4 -40
- package/dist-cli/cli.js +21016 -19596
- package/dist-plot-viewer/assets/index-T0rky3bg.js +4426 -0
- package/dist-plot-viewer/index.html +1 -1
- package/native/lapack_lu.cpp +0 -4
- package/native/lapack_qz.cpp +1 -1
- package/package.json +6 -9
- package/dist-plot-viewer/assets/index-By8VqbFA.js +0 -4057
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>numbl - Figures</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-T0rky3bg.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="root"></div>
|
package/native/lapack_lu.cpp
CHANGED
|
@@ -62,8 +62,6 @@ Napi::Value Lu(const Napi::CallbackInfo& info) {
|
|
|
62
62
|
.ThrowAsJavaScriptException();
|
|
63
63
|
return env.Null();
|
|
64
64
|
}
|
|
65
|
-
// info_val > 0 means U(info_val,info_val) is zero (singular) — still return result like MATLAB
|
|
66
|
-
|
|
67
65
|
auto LU_arr = Napi::Float64Array::New(env, static_cast<size_t>(m * n));
|
|
68
66
|
std::memcpy(LU_arr.Data(), a.data(), m * n * sizeof(double));
|
|
69
67
|
|
|
@@ -136,8 +134,6 @@ Napi::Value LuComplex(const Napi::CallbackInfo& info) {
|
|
|
136
134
|
.ThrowAsJavaScriptException();
|
|
137
135
|
return env.Null();
|
|
138
136
|
}
|
|
139
|
-
// info_val > 0 means U(info_val,info_val) is zero (singular) — still return result like MATLAB
|
|
140
|
-
|
|
141
137
|
auto LURe_arr = Napi::Float64Array::New(env, static_cast<size_t>(m * n));
|
|
142
138
|
auto LUIm_arr = Napi::Float64Array::New(env, static_cast<size_t>(m * n));
|
|
143
139
|
for (int i = 0; i < m * n; ++i) {
|
package/native/lapack_qz.cpp
CHANGED
|
@@ -316,7 +316,7 @@ Napi::Value QzComplex(const Napi::CallbackInfo& info) {
|
|
|
316
316
|
result.Set("QRe", qRe);
|
|
317
317
|
result.Set("QIm", qIm);
|
|
318
318
|
|
|
319
|
-
// Z = VSR (no transpose
|
|
319
|
+
// Z = VSR (no transpose)
|
|
320
320
|
auto zRe = Napi::Float64Array::New(env, nn);
|
|
321
321
|
auto zIm = Napi::Float64Array::New(env, nn);
|
|
322
322
|
for (int i = 0; i < n * n; ++i) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "numbl",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"description": "Run .m source files in the browser and on the command line by compiling to JavaScript",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/flatironinstitute/numbl.git"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"compiler",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"build:plot-viewer": "vite build --config vite.plot-viewer.config.ts",
|
|
34
34
|
"bundle:stdlib": "tsx scripts/bundle-stdlib.ts",
|
|
35
35
|
"build:web": "npm run bundle:stdlib && tsc -b && vite build",
|
|
36
|
-
"build:cli": "esbuild src/cli.ts --bundle --platform=node --format=esm --outfile=dist-cli/cli.js --packages=external --loader:.wasm=file",
|
|
36
|
+
"build:cli": "npm run bundle:stdlib && esbuild src/cli.ts --bundle --platform=node --format=esm --outfile=dist-cli/cli.js --packages=external --loader:.wasm=file",
|
|
37
37
|
"build:server": "esbuild server/execution-service.ts --bundle --platform=node --format=esm --outfile=server/dist/execution-service.js --packages=external",
|
|
38
38
|
"server:dev": "node --env-file=server/.env node_modules/.bin/tsx server/execution-service.ts",
|
|
39
39
|
"server:start": "node --env-file=server/.env server/dist/execution-service.js",
|
|
@@ -47,13 +47,12 @@
|
|
|
47
47
|
"test:float32": "NUMBL_USE_FLOAT32=true vitest run",
|
|
48
48
|
"test:float64": "NUMBL_USE_FLOAT32=false vitest run",
|
|
49
49
|
"test:coverage": "vitest run --coverage",
|
|
50
|
-
"test:
|
|
51
|
-
"test:lapack": "vitest run --config vitest.lapack.config.ts",
|
|
52
|
-
"test:scripts": "bash test_scripts/run_all.sh",
|
|
50
|
+
"test:scripts": "git submodule update --init --remote numbl_test_scripts && bash numbl_test_scripts/run_all.sh",
|
|
53
51
|
"prepublishOnly": "npm run build:cli && npm run build:plot-viewer",
|
|
54
52
|
"prepare": "husky"
|
|
55
53
|
},
|
|
56
54
|
"dependencies": {
|
|
55
|
+
"fflate": "^0.8.2",
|
|
57
56
|
"node-addon-api": "^8.3.0",
|
|
58
57
|
"pako": "^2.1.0",
|
|
59
58
|
"three": "^0.183.2"
|
|
@@ -74,7 +73,6 @@
|
|
|
74
73
|
"@types/three": "^0.183.1",
|
|
75
74
|
"@vitejs/plugin-react": "^5.1.1",
|
|
76
75
|
"@vitest/coverage-v8": "^4.0.18",
|
|
77
|
-
"@webgpu/types": "^0.1.69",
|
|
78
76
|
"@xterm/addon-fit": "^0.11.0",
|
|
79
77
|
"@xterm/xterm": "^6.0.0",
|
|
80
78
|
"cors": "^2.8.5",
|
|
@@ -98,8 +96,7 @@
|
|
|
98
96
|
"typescript-eslint": "^8.46.4",
|
|
99
97
|
"vite": "^7.2.4",
|
|
100
98
|
"vite-plugin-wasm": "^3.5.0",
|
|
101
|
-
"vitest": "^4.0.18"
|
|
102
|
-
"webgpu": "^0.3.8"
|
|
99
|
+
"vitest": "^4.0.18"
|
|
103
100
|
},
|
|
104
101
|
"lint-staged": {
|
|
105
102
|
"*.{js,jsx,ts,tsx,json,css,md}": "prettier --write"
|