Skip to content

PatrickJS/vatrix

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

vectors, matrices and vatrices. :D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%