sarah-quinones / faer-rs

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

implement `core::ops::Sub` for `Mat<T>` #7

Closed sarah-quinones closed 1 year ago

sarah-quinones commented 1 year ago

implement subtraction for Mat<T>

the traits core::ops::Sub<Mat<T>> and core::ops::Sub<&Mat<T>> should be implemented for Mat<T> and &Mat<T>

T should satisfy the trait ComplexField for those operations to be implementable. Mat::with_dims could be used, with a closure that takes two elements and subtracts them

sarah-quinones commented 1 year ago

fixed by #15