num-complex icon indicating copy to clipboard operation
num-complex copied to clipboard

Complex numbers for Rust

Results 45 num-complex issues
Sort by recently updated
recently updated
newest added

Closes #146 . This adds functions `div_add` and trait `DivAdd`. Tests are also added.

Going through the tests I found a couple places where the conj() test was misspelled. There was also a problem with the acosh test, where the zero sign of the...

Fused multiply-add was added for complex numbers in #37, based on the Julia implementation: muladd(z::Complex, w::Complex, x::Complex) = Complex(muladd(real(z), real(w), real(x)) - imag(z)*imag(w), # TODO: use mulsub given #15985 muladd(real(z),...

#### Proposal I propose adding `fma_mul` and `fma_div` methods to the `Complex` type. These methods would leverage fused multiply-add (FMA) operations for the calculation. #### Motivation Using FMA can offer...

Includes `From` for infallible construction from real numbers, and various operator traits against the real field.