numbl 0.0.8 → 0.0.10
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 +9 -7
- package/binding.gyp +3 -1
- package/dist-cli/cli.js +6035 -1630
- package/native/lapack_addon.cpp +15 -0
- package/native/lapack_chol.cpp +173 -0
- package/native/lapack_common.h +32 -0
- package/native/lapack_lu.cpp +156 -0
- package/native/lapack_qr.cpp +141 -3
- package/native/lapack_svd.cpp +47 -9
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Numbl
|
|
2
2
|
|
|
3
|
-
Numbl
|
|
3
|
+
Numbl is an open-source numerical computing environment that aims to be compatible with Matlab. It works by compiling `.m` source code to JavaScript and executing it directly. It can work in the browser or on the command line.
|
|
4
4
|
|
|
5
|
-
**Early stage project.** Numbl is under active development and new functionality is being added regularly.
|
|
5
|
+
**Early stage project.** Numbl is under active development and new functionality is being added regularly.
|
|
6
6
|
|
|
7
7
|
## Try it in the browser
|
|
8
8
|
|
|
9
|
-
You can try numbl directly in the browser at <https://magland.github.io/numbl> — no installation required. All execution happens locally in your browser. Note that the browser version
|
|
9
|
+
You can try numbl directly in the browser at <https://magland.github.io/numbl> — no installation required. All execution happens locally in your browser. Note that the browser version has limited functionality and is slower than the CLI.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ You can try numbl directly in the browser at <https://magland.github.io/numbl>
|
|
|
14
14
|
npm install -g numbl
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
To enable fast linear algebra (matrix inverse, SVD, eigenvalues, etc.), build the native LAPACK addon
|
|
17
|
+
To enable fast linear algebra (matrix inverse, SVD, eigenvalues, etc.), build the native LAPACK addon:
|
|
18
18
|
|
|
19
19
|
```bash
|
|
20
20
|
# Prerequisites: C++ compiler, libopenblas-dev (or equivalent for your OS)
|
|
@@ -24,10 +24,12 @@ numbl build-addon
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
|
-
numbl script.m # run a .m file
|
|
28
|
-
numbl -e "disp(eye(3))" # run inline code
|
|
29
27
|
numbl # interactive REPL
|
|
30
|
-
numbl
|
|
28
|
+
numbl run script.m # run a .m file
|
|
29
|
+
numbl eval "disp(eye(3))" # evaluate inline code
|
|
30
|
+
numbl info # print info (JSON), including native addon status
|
|
31
|
+
numbl list-builtins # list available built-in functions
|
|
32
|
+
numbl --help # show all commands and options
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
## Try it with Docker
|
package/binding.gyp
CHANGED
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
"native/lapack_addon.cpp",
|
|
7
7
|
"native/lapack_inv.cpp",
|
|
8
8
|
"native/lapack_qr.cpp",
|
|
9
|
+
"native/lapack_lu.cpp",
|
|
9
10
|
"native/lapack_svd.cpp",
|
|
10
11
|
"native/lapack_matmul.cpp",
|
|
11
12
|
"native/lapack_linsolve.cpp",
|
|
12
|
-
"native/lapack_eig.cpp"
|
|
13
|
+
"native/lapack_eig.cpp",
|
|
14
|
+
"native/lapack_chol.cpp"
|
|
13
15
|
],
|
|
14
16
|
"include_dirs": [
|
|
15
17
|
"<!@(node -p \"require('node-addon-api').include\")"
|