Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vatrix

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vatrix

matrix tools

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

FAQs

Package last updated on 15 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc