pub fn modulus_squared<'a, T: Float>(arr: &'a mut [Complex<T>])
Computes |x|^2 for each complex value x in arr. This function modifies arr in place and leaves the complex component zero.
arr