I'd like to do a bit of matrix/vector arithmetic in JavaScript, and was wondering if any browsers or other JS implementations actually have support for vectorized operations, for instance for quickly summing the entries of two Arrays (or summing, or whatever). Even if that currently doesn't mean it compiles down to vectorized operations, at least some language support would be nice for when it does get implemented - I'd take the existence of functions or syntax to support it as a step in the right direction. (Understandably, "vectorization javascript" searches are pretty much all about graphics and SVG.)
views:
31answers:
1
A:
I googled for "math vector javascript library" and I came up with http://sylvester.jcoglan.com/ and http://blog.vlad1.com/2010/02/05/mjs-simple-vector-and-matrix-math-for-js/. Does this help?
bogdanvursu
2010-06-03 10:48:47
No, not really. My question was whether any JS implementations (V8, Spidermonkey, Tracemonkey, Squirrelfish and so on) had support for vectorized operations, natively. mjs and sylvester are just linear algebra libraries - which is cool and all, but that's essentially what I want to write myself. I want to see if any of the JS implementations support vectorized operations so I could do it in a non-boneheaded way.
agnoster
2010-07-02 10:46:05