matrixy

A general-purpose matrix library capable of LU-decomposition and solving equations of the form Ax=b.

Usage no npm install needed!

<script type="module">
  import matrixy from 'https://cdn.skypack.dev/matrixy';
</script>

README

Build Status npm Dependency Status devDependency Status

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

API Docs are in the wiki.

Background blog post on the ideas behind the design of the matrixy API.