sarah-quinones/faer-rs

A specialized Diagonal type?

safasofuoglu opened this issue · 2 comments

I'm frequently using matrix-diagonal and diagonal-diagonal multiplication (which is a component-wise vector mul). Since populating a matrix with a diagonal does lead to wasted performance, I'm using a modified copy of div_by_s I found in faer source.

Does it make sense to flesh out a Diagonal type?

it would be nice to have such a type, but i need to figure out a way to handle all the combinations of operators that scales well.

included in v0.14.0