sparsemat / sprs

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

Slice friendly binop #251

Closed mulimoen closed 3 years ago

mulimoen commented 3 years ago

The binop methods was determining whether to transpose or not based on is_standard_layout. These checks are replaced with fastest and slowest axis instead, closer matching the semantics wanted. This makes matrix slices cheaper to work with during addition and multiplication as we don't have to transpose a CSR into CSC unnecessarily

mulimoen commented 3 years ago

Rebased and green CI