You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, you are correct. Some of the algorithms that are optimized for sparse matrices do not guarantee the index array will be sorted at the end. The getValueIndex() operation was developed for the first Sparse Matrix implementation where none of those algorithms existed. There is no other option than assuming a non sorted index array. As always, Sparse Matrices are not good seeking a specific item they excel iterating and performing matrix wise operations.
I will provide a fix soon...
rjbaucells
added a commit
to rjbaucells/mathjs
that referenced
this issue
Sep 3, 2015
Hello, I use math.js for multiplication of sparse matrices. For example, I have this matrix and I want multiply it by yourself:
After, I have the sparse matrix, but elements in index array (for one row) are not sorted. And method _getValueIndex works wrong.
And I have this:
The text was updated successfully, but these errors were encountered: