sparsemat / sprs

sparse linear algebra library for rust
Apache License 2.0
386 stars 45 forks source link

make some small improvements in the utils:sort_indices_data_slices #217

Closed cxzheng closed 4 years ago

cxzheng commented 4 years ago

Just improved the utils::sort_indices_data_slices a bit, while I'm using this crate (very nice crate!) The change includes 1) the removal of the explicit bound check using iterators, and 2) a quick test to verify my changes.

vbarrielle commented 4 years ago

Thanks for noticing and fixing the issue, @cxzheng ! And thanks @mulimoen for reviewing and pointing out that itertools was not necessary.