blas-0.4.1: Bindings to the BLAS librarySource codeContentsIndex
BLAS.Elem.Base
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Description
Synopsis
class (Storable e, Fractional e) => Elem e where
conj :: e -> e
norm :: e -> Double
norm1 :: e -> Double
fromReal :: Double -> e
toReal :: e -> Double
Documentation
class (Storable e, Fractional e) => Elem e whereSource
The base class for elements.
Methods
conj :: e -> eSource
Take the complex conjugate of a value. For real values this is equal to id.
norm :: e -> DoubleSource
Get the magnitude of a value.
norm1 :: e -> DoubleSource
Get the l1 norm of a value.
fromReal :: Double -> eSource
Convert a double to an element
toReal :: e -> DoubleSource
Coerce an element to a double
show/hide Instances
Produced by Haddock version 2.3.0