Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A vector, matrix and geometry math library for JavaScript
JavaScript PHP
Branch: master
Pull request Compare This branch is 3 commits ahead, 36 commits behind jcoglan:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
site
src
test
README.md
Rakefile

README.md

SYLVESTER

What's this?

It's a pure javascript library for vector and matrix math!

What's this fork about?

All I did was add generation of a commonjs module---that is, one which should work in node.js, like so:

node> var m = require('./sylvester-common');
node> var a= m.$M([[1,2],[3,4]]);
node> var x=m.$V([1,1]);
node> a.multiply(x)
[3, 7]

Awesome!

Does this mean I can write numerical methods in javascript now?

Sort of. Well, the short answer is:

yes.

The long answer is:

yes, but it's in pure javascript, which is bound to be slow for large problems, meaning that if performance is a concern then you should use something else (I recommend numpy) for simple matrix math. On the other hand, if you want something you can use in a web browser, or you want to use node.js and aren't worried about hardware-intensive calculating, then maybe Sylvester is for you!

Who originally wrote it?

This guy. He seems to mostly rock client-side javascript with a healthy serving of ruby, but there's a lot of neat stuff in this repo! Check it out!

Something went wrong with that request. Please try again.