sparsemat / sprs

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

Implement MulAssign and DivAssign #227

Closed mulimoen closed 3 years ago

mulimoen commented 3 years ago

This implements MulAssign and DivAssign for matrices and vectors.

The MulAssign could be expressed as scale, but it's nice to have multiple options. DivAssign might be less efficient than doing inversion of rhs then scaling, altough some cases migh benefit from direct division.

The impls are quite broad, but this should not be a problem as sparse inplace vector-vector multiplication is probably not very efficient.

(The first commit removes a deprecated type)

vbarrielle commented 3 years ago

All good, thanks!

Nice catch noticing that deprecated type