Stability | experimental |
---|---|
Maintainer | Patrick Perry <patperry@stanford.edu> |
Type classes for elements with BLAS support.
Base element type class
class (AEq e, Storable e, Fractional e) => Elem e whereSource
The base class for elements.
Get the complex conjugate of a value.
Get the magnitude of a value.
Get the l1 norm of a value.
Convert a double to an element.
maybeToReal :: e -> Maybe DoubleSource
Try to coerce a value to a double. This will fail unless the
complex part is zero (according to a comparison by (~==)
).
BLAS element types
Re-export of Complex from Data.Complex
module Data.Complex