num-complex
num-complex copied to clipboard
increment (+=) , decrement(-=), multiply(*=) and divide(/=) operations don't work
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 /= T::one();`
Now, this is easy to resolve if I change the above code to: `let mut var = T::one();
var = var + T::one();
var = var - T::one();
var = var*T::one();
var = var/T::one();`
Still, it'd be nice to have this supported.
Are you using a generic T in your code? What type constraints do you have?
The implementation of these traits requires T: Clone + NumAssign, e.g. AddAssign<T> for Complex<T>.