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

A linear algebra library, written in TypeScript and accelerated with C++ bindings to BLAS.
Usage
In node.js
# with BLAS bindings
$ npm install vectorious
# or, if you don't want BLAS bindings
$ npm install vectorious --no-optionalimport { Matrix, Vector } from 'vectorious';
Matrix.random(2, 2);
/*
Matrix {
shape: [ 2, 2 ],
data:
Float64Array [
0.7041265660588281,
0.6186458305857421,
0.032954109874604454,
0.5198025534810546 ],
type: [Function: Float64Array] }
*/
Vector.random(4, -5, 5, Int8Array);
/*
Vector {
type: [Function: Int8Array],
data: Int8Array [ -2, 2, 2, -1 ],
length: 4 }
*/Will use your local BLAS copy (if any). Some notes for different operating systems:
- OSX - by default included in the Accelerate framework
- Debian/Ubuntu - different options, easiest is to
apt-get install libblas-dev - Windows - https://icl.cs.utk.edu/lapack-for-windows/
In browser
Download a release and use it like this:
<script src="vectorious.min.js"></script>Or if you prefer to use a CDN:
<script src="https://cdnjs.cloudflare.com/ajax/libs/vectorious/4.8.1/vectorious.min.js"></script><script>
var A = new Matrix([[1], [2], [3]]),
B = new Matrix([[1, 3, 5]]),
C = A.multiply(B);
console.log('C:', C.toArray());
/* C: [
[1, 3, 5],
[2, 6, 10],
[3, 9, 15]
] */
</script>Examples
Basic
Machine learning
Documentation
The documentation is located in the wiki section of this repository.
Benchmarks
Internal benchmarks are located in the wiki section of this repository.
Contributors
This project exists thanks to all the people who contribute. [Contribute].
Backers
Thank you to all our backers! 🙏 [Become a backer]
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]