An open API service indexing awesome lists of open source software.

https://github.com/planeshifter/svd

singular value decomposition via emscripten
https://github.com/planeshifter/svd

Last synced: 8 months ago
JSON representation

singular value decomposition via emscripten

Awesome Lists containing this project

README

          

# SVD

```
var svd = require("./svd.js").svd

svd([[1,2],[3,4]])
```

Output:
```
{ u:
[ [ 0.9145142436027527, 0.4045535922050476 ],
[ -0.4045535922050476, 0.9145142436027527 ] ],
v:
[ [ -0.8174155950546265, 0.5760484337806702 ],
[ 0.5760484337806702, 0.8174155950546265 ] ],
w: [ 0.36596617102622986, 5.4649858474731445 ],
r: 1 }
```