New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a small bug with new types.SparseMatrix() #489

merged 1 commit into from Oct 28, 2015


None yet
2 participants

Retsam commented Oct 25, 2015

Fixes an issue with new types.SparseMatrix(); currently the size defaults to [0], which causes some odd issues, which are fixed by defaulting the size to [0, 0]. For example:

var m = new math.types.SparseMatrix();
m.resize([2, 2]);
m.set([1, 1], 42);
m.get([1, 1]); //Currently returns 0, rather than 42 as expected

This comment has been minimized.


josdejong commented Oct 28, 2015

Thanks @Retsam

josdejong added a commit that referenced this pull request Oct 28, 2015

Merge pull request #489 from Retsam/SparseMatrixBug
Fix a small bug with new types.SparseMatrix()

@josdejong josdejong merged commit 0ee119f into josdejong:develop Oct 28, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment