https://github.com/thomwright/matrixy
A CoffeeScript matrix library
https://github.com/thomwright/matrixy
Last synced: 2 months ago
JSON representation
A CoffeeScript matrix library
- Host: GitHub
- URL: https://github.com/thomwright/matrixy
- Owner: ThomWright
- License: mit
- Created: 2014-08-05T22:00:30.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-12-26T20:12:33.000Z (over 9 years ago)
- Last Synced: 2025-02-18T18:02:09.779Z (3 months ago)
- Language: CoffeeScript
- Homepage:
- Size: 186 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/ThomWright/matrixy)
[](https://www.npmjs.com/package/matrixy)
[](https://david-dm.org/ThomWright/matrixy)
[](https://david-dm.org/ThomWright/matrixy#info=devDependencies)
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)```coffeescript
{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.](https://github.com/ThomWright/matrixy/wiki)
[Background blog post on the ideas behind the design of the *matrixy* API.](http://thomwright.co.uk/2014/08/23/beautiful-apis-coffeescript/)