ml-sparse-matrix
v2.1.0
Published
Sparse matrix library
Downloads
5,091
Keywords
Readme
sparse-matrix
Sparse matrix library.
Installation
$ npm i ml-sparse-matrix
Usage
import { SparseMatrix } from 'ml-sparse-matrix';
const matrix1 = new SparseMatrix([[1, 2], [3, 4]]);
const matrix2 = new SparseMatrix([[0, 5], [6, 7]]);
const product = matrix1.kroneckerProduct(matrix2);