JSPM

  • Created
  • Published
  • Downloads 1049
  • Score
    100M100P100Q115016F
  • License MIT

A high performance linear algebra library written in Javascript.

Package Exports

  • vectorious

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vectorious) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vectorious

NPM

travis code climate test coverage

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.1.0.js"></script>
<script>
  // e.g. var vector = new vectorious.Vector()
</script>

Documentation

Matrix
Vector

Examples

Solve linear systems of equations

Benchmarks

The following benchmarks compare Vectorious 4.1.0 with these three popular matrix/vector libraries:

The graphs show operations per second on the vertical (y) axis.

Vector Matrix
Vector.random(1048576) Matrix.random(512, 512)
Vector operations Matrix operations