vatrix

matrix tools

vatrix

#UNDER HEAVY DEVELOPMENT. NOT FINISHED and NOT USABLE (yet :)

vectors, matrices and vatrices. :D

inspiration WildLinAlg26: Change of basis and Taylor coefficient vectors

There isn't a good, performant vectorn, matrixn library for javascript. And I need it. There is of course matrixjs, but to be hones I do not like to much recursive implementations and it uses floats, which I am not a fan of.

Support

The goal is to have a conviently usable general vector tool. This means that some of the functions can take arguments with various types.

I've decided not to check for arguments which doesn't make sense (like providing numbers instead of arrays to vectorAddition()). If you get exceptions complaining about something related to arrays, chances are you've given a number somewhere where it doesn't make sense.

var vatrix = require('vatrix');
 
vatrix.vectorMultiply([1,3,5,7,11,13], 13); //[13,39,65,91,143,169] 
 
 

For more examples, see tests/vatrix-test.js.

npm install vatrix

Download src/delve.js, and include it as a script tag.