dimforge / nalgebra

Linear algebra library for Rust.
https://nalgebra.org
Apache License 2.0
4.05k stars 485 forks source link

Please implement matrix operations between complex float and float number matrices #1452

Closed seanxnie closed 1 month ago

seanxnie commented 1 month ago

Hi, there, Scalars, for example, Complex<f64> numbers can perform math operations with f64. Is it possible to implement such operations in algebra::base::Matrix? Thanks.

sebcrozet commented 1 month ago

Hi! This is currently not planned. Supporting multiplication between Matrix<T1, ...> and Matrix<T2, ...> would introduce a significant amount of complexity in the generics. I’d recommend converting your value based on f64 to Complex<f64> before running the operation.