LinAlg-magma-0.2.0.0: CUDA-based CUBLAS/MAGMA backend for LinAlg

Safe HaskellNone
LanguageHaskell2010

Numeric.LinAlg.Magma

Synopsis

Documentation

data GArr :: Dim -> * -> * where

An immutable matrix datatype with a transpose flag, so we can avoid unnecessary transposition.

Constructors

Matrix :: !(Mat m n a) -> !(SBool b) -> GArr (M (Flip b m n) (Flip b n m)) a 
Vector :: !(Vec n a) -> GArr (V n) a 

Instances

CNum e => Matr e GArr 
CNum e => Scale Dim e GArr 
CNum e => Num (Vector n e) 
(CNum a, Show a) => Show (Vector n a) 
(CNum a, Eq a) => Eq (Matrix m n a) 
CNum e => Num (Matrix m n e) 
(CNum a, Show a) => Show (Matrix m n a) 

type Matrix m n = GArr (M m n)

type Vector n = GArr (V n)