repa-algorithms-1.1.0.0: Algorithms using the Repa array library.

Data.Array.Repa.Algorithms.Complex

Description

Strict complex doubles.

Synopsis

Documentation

type Complex = Double :*: DoubleSource

Strict complex doubles.

mag :: Complex -> DoubleSource

Take the magnitude of a complex number.

arg :: Complex -> DoubleSource

Take the argument (phase) of a complex number, in the range [-pi .. pi].

data a :*: b

Strict pair

Constructors

!a :*: !b 

Instances

(Eq a, Eq b) => Eq (:*: a b) 
(Ord a, Ord b) => Ord (:*: a b) 
(Read a, Read b) => Read (:*: a b) 
(Show a, Show b) => Show (:*: a b) 
(HS a, HS b) => HS (:*: a b) 
(Elt a, Elt b) => Elt (:*: a b) 
(IOElt a, IOElt b) => IOElt (:*: a b) 
(DT a, DT b) => DT (:*: a b) 
(UA a, UA b) => UA (:*: a b) 
(UIO a, UIO b) => UIO (:*: a b)