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::Add` for `Mat<T>` #6

Closed sarah-quinones closed 1 year ago

sarah-quinones commented 1 year ago

implement addition for Mat<T>

the traits core::ops::Add<Mat<T>> and core::ops::Add<&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 adds them

sarah-quinones commented 1 year ago

fixed by #14