accelerate-fft-0.13.0.0: FFT using the Accelerate library
Data.Array.Accelerate.Math.Complex
Synopsis
type Complex a = (a, a)Source
magnitude :: (Elt a, IsFloating a) => Exp (Complex a) -> Exp aSource
Non-negative magnitude of a complex number
phase :: (Elt a, IsFloating a) => Exp (Complex a) -> Exp aSource
The phase of a complex number, in the range (-pi, pi]. If the magnitude is zero, then so is the phase.
real :: Elt a => Exp (Complex a) -> Exp aSource
Return the real part of a complex number
imag :: Elt a => Exp (Complex a) -> Exp aSource
Return the imaginary part of a complex number
conj :: (Elt a, IsNum a) => Exp (Complex a) -> Exp (Complex a)Source
Return the complex conjugate of a complex number, defined as
conj(Z) = X - iY