GitHub - bluemathsoft/bm-linalg: Linear Algebra in TypeScript

1 min read Original article ↗

@bluemath/linalg

Linear Algebra submodule of BlueMath library

NPM packageDocsTestsInteractive Shell

  • Implemented on top of LAPACK library, compiled to Javascript using Emscripten.
  • Solving of linear equation systems (LU decomposition, Least Square)
  • Matrix decomposition operations (SVD, Cholesky, QR)
  • Standard matrix properties (Rank, Determinant, Inverse)

Usage

npm install @bluemath/linalg
import {det} from '@bluemath/linalg'
import {arr} from '@bluemath/common'

let A = arr([
    [3,4,5],
    [0,3,4],
    [1,3,5]
]);
console.log('Determinant',det(A));

Alternatively,

import {arr,linalg} from 'bluemath'

let A = arr([
    [3,4,5],
    [0,3,4],
    [1,3,5]
]);
console.log('Determinant',linalg.det(A));