3 ms·
This branch adds slicing and broadcasting as in numpy: https://github.com/orangeduck/numeric https://github.com/orangeduck/numeric There are a few known bugs i
by yig 12y ago
This branch adds slicing and broadcasting as in numpy: https://github.com/orangeduck/numeric https://github.com/orangeduck/numeric
There are a few known bugs in mainline numericjs (including one in the eigen decomposition when there are repeated eigenvalues). The author of numericjs is active in the Google group, but hasn't had time to work on it in the last few years. Hence the third-party, not integrated orangeduck branch.
This project, when I started using it 5 or 6 years ago, was the one that made me realize just how fast JavaScript has become. This project also demonstrates how desperately JavaScript needs operator overloading. When I used numericjs for a homework assignment recently, I considered writing a sweetjs macro for my students but didn't get around to it. I would be grateful if someone else did!
- rawnlq 12y agoTo add another datapoint, I remember using numericjs a few months ago and the parts I used were pretty buggy (iirc singular value decomposition for nonsquare matrices didn't work). It is also oddly missing common stuff like cross product which I thought I would find in a matrix/vector library. Its implementation of "dot" is kind of nice though. Without worry about the type, it does multiplying a scalar to a matrix, a matrix with a matrix, a matrix with a vector, and a vector with a vector, etc all correctly.