Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Contains some types used by Jalla, including some BLAS/LAPACK related ones.
- class (Num e, Floating e, Show e) => Field1 e where
- type FieldScalar e :: *
- class BLASEnum e be where
- class LAPACKEEnum e le where
- toLapacke :: e -> le
- fromLapacke :: le -> e
- type Index = Int
- type Shape = (Index, Index)
- type IndexPair = (Index, Index)
- rowCountTrans :: Transpose -> Shape -> Index
- colCountTrans :: Transpose -> Shape -> Index
- shapeTrans :: Transpose -> Shape -> Shape
- diagIndices :: Shape -> Index -> [IndexPair]
- data Order
- data Transpose
- data UpLo
- module Data.Complex
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
.
type FieldScalar e :: * Source
BLAS And LAPACK
class LAPACKEEnum e le where 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.
:: 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
module Data.Complex