numbl 0.0.7 → 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 CHANGED
@@ -1,12 +1,12 @@
1
1
  # Numbl
2
2
 
3
- Numbl lets you run MATLAB-compatible code in the browser and on the command line. It works by compiling `.m` source code to JavaScript and executing it directly. In the browser, all execution happens locally no code is sent to a remote server.
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. Performance is currently very slow compared to MATLAB — we intend to improve this over time, with the goal of reaching performance comparable to desktop MATLAB and as fast as possible in the browser.
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 does not include LAPACK support, so linear algebra operations (matrix inverse, SVD, eigenvalues, etc.) will use a slower pure JavaScript fallback.
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. This links to your system's LAPACK/OpenBLAS library and is significantly faster than the pure JavaScript fallback.
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 --info # check native addon status
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\")"