accelerate-fft-0.14.0.0: FFT using the Accelerate library

Data.Array.Accelerate.Math.Complex

Synopsis

# Documentation

data Complex a

Constructors

 !a :+ !a

Instances

 Typeable1 Complex (Lift Exp a, Elt (Plain a)) => Lift Exp (Complex a) Elt a => Unlift Exp (Complex (Exp a)) (RealFloat a, Unbox a) => Vector Vector (Complex a) (RealFloat a, Unbox a) => MVector MVector (Complex a) Eq a => Eq (Complex a) (Elt a, IsFloating a, RealFloat a) => Floating (Exp (Complex a)) RealFloat a => Floating (Complex a) (Elt a, IsFloating a) => Fractional (Exp (Complex a)) RealFloat a => Fractional (Complex a) Data a => Data (Complex a) (Elt a, IsFloating a) => Num (Exp (Complex a)) RealFloat a => Num (Complex a) Read a => Read (Complex a) Show a => Show (Complex a) IsTuple (Complex a) Elt a => Elt (Complex a) (RealFloat a, Unbox a) => Unbox (Complex a)

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
```