matrixy
v1.1.1
Published
A general-purpose matrix library capable of LU-decomposition and solving equations of the form Ax=b.
Downloads
144
Maintainers
Readme
A general-purpose matrix library for NodeJS capable of LU-decomposition and solving equations of the form Ax=b.
Quick Intro
There are two main APIs in Matrixy:
- arrays - works with 2D arrays
- matrixy - works with Matrices (wrapped 2D arrays)
{Matrixy, Arrays} = require 'matrixy'
# Arrays API
{add} = Arrays
fours = [[4, 4]]
fives = [[5, 5]]
result = add fours, fives
# Matrixy API
{createMatrix, plus} = Matrixy
fours = createMatrix [[4, 4]]
fives = createMatrix [[5, 5]]
result = fours plus fives
Background blog post on the ideas behind the design of the matrixy API.