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

Safe HaskellSafe
LanguageHaskell98

Numeric.Jalla.Types

Contents

Description

Contains some types used by Jalla, including some BLAS/LAPACK related ones.

Synopsis

Classes

class (Num e, Floating e, Show e) => Field1 e Source

Defines a scalar type for each field type. Those are Complex CFloat and CFloat, as well as Complex CDouble and CDouble.

Associated Types

type FieldScalar e :: * Source

BLAS And LAPACK

class BLASEnum e be where Source

Methods

toBlas :: e -> be Source

fromBlas :: be -> e Source

class LAPACKEEnum e le where Source

Methods

toLapacke :: e -> le Source

fromLapacke :: le -> e Source

Indexing

rowCountTrans :: Transpose -> Shape -> Index Source

Row count of a matrix with given transposedness and shape.

colCountTrans :: Transpose -> Shape -> Index Source

Column count of a matrix with given transposedness and shape.

shapeTrans :: Transpose -> Shape -> Shape Source

Shape of a matrix with given transposedness and shape.

diagIndices Source

Arguments

:: Shape

The shape of the matrix (rows,columns)

-> Index

The index of the diagonal -- 0: main diagonal; lower diagonals;0: upper diagonals

-> [IndexPair]

Index list. Empty if there is no such diagonal.

Generate indices of a diagonal in a matrix of given shape.

Information About Matrices And Storage

data Order Source

Constructors

RowMajor 
ColumnMajor 

data UpLo Source

Constructors

Up 
Lo