sarah-ek / faer-rs

Linear algebra foundation for the Rust programming language
https://faer-rs.github.io
MIT License
1.8k stars 58 forks source link

Moved division to ComplexField and implemented Div for missing types. #150

Open TileHalo opened 1 week ago

TileHalo commented 1 week ago

More specificially, implemented Div<Scale<RhsE>> for Scale<LhsE> and similarly DivAssign.

Closes #149 .

sarah-ek commented 1 week ago

we don't really want the faer_div function. could you replace x.faer_div(y) with x * y.faer_inv()?

TileHalo commented 1 week ago

Sure, will do.

Edit: I guess the faer_div in RealField should be retained?

sarah-ek commented 1 week ago

yeah