numbl 0.0.22 → 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 +2 -3
- package/binding.gyp +6 -4
- package/dist-cli/cli.js +33457 -30228
- package/native/elemwise.cpp +168 -0
- package/native/lapack_chol.cpp +1 -1
- package/native/lapack_eig.cpp +1 -1
- package/native/lapack_fft.cpp +1 -1
- package/native/lapack_fft_batch.cpp +1 -1
- package/native/lapack_inv.cpp +1 -1
- package/native/lapack_linsolve.cpp +1 -1
- package/native/lapack_lu.cpp +1 -1
- package/native/lapack_matmul.cpp +1 -1
- package/native/lapack_matmul_complex.cpp +110 -0
- package/native/lapack_qr.cpp +213 -1
- package/native/lapack_qz.cpp +1 -1
- package/native/lapack_svd.cpp +1 -1
- package/native/{lapack_addon.cpp → numbl_addon.cpp} +34 -3
- package/native/{lapack_common.h → numbl_addon_common.h} +20 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -50,7 +50,6 @@ Commands:
|
|
|
50
50
|
build-addon Build native LAPACK addon
|
|
51
51
|
info Print machine-readable info (JSON)
|
|
52
52
|
list-builtins List available built-in functions
|
|
53
|
-
mip <subcommand> Package manager (install, uninstall, list, avail, info)
|
|
54
53
|
(no command) Start interactive REPL
|
|
55
54
|
|
|
56
55
|
Global options:
|
|
@@ -62,7 +61,7 @@ Options (for REPL):
|
|
|
62
61
|
--plot-port <port> Set plot server port (implies --plot)
|
|
63
62
|
|
|
64
63
|
Options (for run and eval):
|
|
65
|
-
--dump-js <file> Write
|
|
64
|
+
--dump-js <file> Write JIT-generated JavaScript to file
|
|
66
65
|
--dump-ast Print AST as JSON
|
|
67
66
|
--verbose Detailed logging to stderr
|
|
68
67
|
--stream NDJSON output mode
|
|
@@ -70,7 +69,7 @@ Options (for run and eval):
|
|
|
70
69
|
--plot Enable plot server
|
|
71
70
|
--plot-port <port> Set plot server port (implies --plot)
|
|
72
71
|
--add-script-path Add the script's directory to the workspace (run only)
|
|
73
|
-
--
|
|
72
|
+
--opt <level> Optimization level (0=none, 1=JIT scalar functions; default: 1)
|
|
74
73
|
|
|
75
74
|
Environment variables:
|
|
76
75
|
NUMBL_PATH Extra workspace directories (separated by :)
|
package/binding.gyp
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"targets": [
|
|
3
3
|
{
|
|
4
|
-
"target_name": "
|
|
4
|
+
"target_name": "numbl_addon",
|
|
5
5
|
"sources": [
|
|
6
|
-
"native/
|
|
6
|
+
"native/numbl_addon.cpp",
|
|
7
7
|
"native/lapack_inv.cpp",
|
|
8
8
|
"native/lapack_qr.cpp",
|
|
9
9
|
"native/lapack_lu.cpp",
|
|
10
10
|
"native/lapack_svd.cpp",
|
|
11
11
|
"native/lapack_matmul.cpp",
|
|
12
|
+
"native/lapack_matmul_complex.cpp",
|
|
12
13
|
"native/lapack_linsolve.cpp",
|
|
13
14
|
"native/lapack_eig.cpp",
|
|
14
15
|
"native/lapack_chol.cpp",
|
|
15
16
|
"native/lapack_qz.cpp",
|
|
16
17
|
"native/lapack_fft.cpp",
|
|
17
|
-
"native/lapack_fft_batch.cpp"
|
|
18
|
+
"native/lapack_fft_batch.cpp",
|
|
19
|
+
"native/elemwise.cpp"
|
|
18
20
|
],
|
|
19
21
|
"include_dirs": [
|
|
20
22
|
"<!@(node -p \"require('node-addon-api').include\")",
|
|
@@ -29,7 +31,7 @@
|
|
|
29
31
|
"<!@(pkg-config --libs fftw3 2>/dev/null || echo '-lfftw3')",
|
|
30
32
|
"<!@(pkg-config --libs-only-L fftw3 2>/dev/null | sed 's/-L/-Wl,-rpath,/g' || true)"
|
|
31
33
|
],
|
|
32
|
-
"cflags_cc": [ "-std=c++17", "-
|
|
34
|
+
"cflags_cc": [ "-std=c++17", "-O3", "-march=native" ]
|
|
33
35
|
}
|
|
34
36
|
]
|
|
35
37
|
}
|