matrix-inversion

0.2.2 • Public • Published

matrix-inversion

General-Purpose Matrix Inversion Library in Javascript. Inverses 2x2, 3x3, 4x4... any NxN matrices quickly.

See the main repo for more details.

Install

npm i matrix-inversion

Currently support in ESM imports only.

Usage

import { invert } from 'matrix-inversion';
console.log(invert([[1, 4, 5], [3, 2, 4], [3, 1, 3]]))
// returns: [[-2, 7, -6], [-3, 12, -11], [3, -11, 10]]
import { determinant } from 'matrix-inversion';
console.log(determinant([[1, 2], [3, 4]]))
// returns: -2

Release Notes

0.2.1
  • First release

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i matrix-inversion

    Weekly Downloads

    1

    Version

    0.2.2

    License

    ISC

    Unpacked Size

    6.02 kB

    Total Files

    6

    Last publish

    Collaborators

    • willnode