Vectorious is a high performance linear algebra library. It is written in JavaScript using nBLAS for single- and double-precision C++ bindings to CBLAS. In the future the goal is to also include C++ bindings to LAPACK. With native fallbacks, it can be used without the bindings in supported browsers.
$ npm install vectorious
$ npm test
$ npm run benchmark
To enjoy the full performance of vectorious, you will need to have BLAS installed
on your system. It is by default included in the OSX Accelerate framework. On Ubuntu/Debian you can e.g. use libblas (apt-get libblas-dev
). If you use Windows, you can install LAPACK.
Browser
Download a release and use it like this:
<script src="vectorious-4.0.0.js"></script>
<script>
// e.g. var vector = new vectorious.Vector()
</script>