npm.io
3.1.0 • Published 1 year ago

ml-sparse-matrix

Licence
MIT
Version
3.1.0
Deps
1
Size
133 kB
Vulns
0
Weekly
0
Stars
5

ml-sparse-matrix

NPM version coverage status npm download

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);

API Documentation

License

MIT