vatrix

0.0.6 • Public • Published

vatrix

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

vectors, matrices and vatrices. :D

inspiration WildLinAlg26: Change of basis and Taylor coefficient vectors

Why

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

browser support

Example

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.

Scalar multiplication

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.

Install

npm

npm install vatrix

browser

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.6
    1
    • latest

Version History

Package Sidebar

Install

npm i vatrix

Weekly Downloads

6

Version

0.0.6

License

DAFUQ

Last publish

Collaborators

  • ashnur