mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
The method for replacing a subset in a sparse matrix is changed in order to take into account the indexes used as arguments, solving an issue where non-consecutive indexes would give a different result compared to the one given when using a dense matrix. Unit tests are added for this issue and 2 other tests are changed in order to correctly display the result of this operation. Co-authored-by: Jos de Jong <wjosdejong@gmail.com>