num-complex
num-complex copied to clipboard
Complex numbers for Rust
I'm using num-complex = version 0.4.6, and these kinds of operations is not yet supported: `let mut var = T::one(); var += T::one(); var -= T::one(); var *= T::one(); var...
I noticed that the square root implementation in num-complex uses conversion trough polar coordinates to compute complex squre roots. Usually the algorithm from https://dl.acm.org/doi/abs/10.1145/363717.363780 is used to compute the complex...
Right now, the sum for Complex floats do not auto-vectorize. This uses an intermediate data type during sum to vectorize the sum. There is no unsafe, and on my computer...
Fixes issue #123
!!! Breaking Change Bump rand from 0.8 to 0.9 Close #143
Will likely need a major version bump as I believe rkyv 0.8 is backwards incompatible with rkyv 0.7. closes #132
In generic complex code it is common to have to convert real values into `T: ComplexFloat`. For this, I find the following trait very handy: ```rust pub trait IntoComplex {...