jalla-0.2.0.1: Higher level functions for linear algebra. Wraps BLAS and LAPACKE.

Safe HaskellNone
LanguageHaskell98

Numeric.Jalla.Vector

Contents

Description

 

Synopsis

Data Types

data Vector e Source

Vector is the CVector type that is used in Jalla. Somehow Haddock does not want to create documentation for the class instances of Vector, I try to figure it out.

Constructors

Vector 

Fields

vecP :: !(ForeignPtr e)
 
vecInc :: !Index
 
vecLength :: !Index
 

Instances

BlasOps e => VectorScalar Vector e Source 
BlasOps e => VectorVector Vector e Source 
BlasOps e => CVector Vector e Source

CVector instance for Vector.

BlasOps e => GVector Vector e Source 
(BlasOps e, Eq e) => Eq (Vector e) Source 
(BlasOps e, Num e, Fractional e) => Floating (Vector e) Source

An instance of Vector for Floating, for convenience. Some of these don't make much sense in some situations, but having the trigonometric functions and the like around can be pretty handy. The functions work element-wise.

(BlasOps e, Num e, Fractional e) => Fractional (Vector e) Source 
(BlasOps e, Num e) => Num (Vector e) Source

Num instance for a Vector. The operations are all element-wise. There may be the occasional error by wrongly assuming that (*) returns the inner product, which it doesn't. This instance is basically only provided to get the + and - operators. Note that this will not work with sum, since that assumes it can start with a "0".

(BlasOps e, Show e) => Show (Vector e) Source 
BlasOps e => Indexable (Vector e) Index e Source