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

Safe HaskellNone

Data.Array.Repa.Algorithms.Complex

Description

Strict complex doubles.

Synopsis

Documentation

type Complex = (Double, Double)Source

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].