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

Safe HaskellSafe
LanguageHaskell98

Numeric.Jalla.IMM

Description

 

Synopsis

Documentation

class Ix i => IMM m i o e | m -> o, m -> i, m -> e where Source

Indexable objects modification monad class. Monads in this type class are used to modify and create indexable objects such as matrices or vectors. This is to provide a common interface for such 'modification monads'.

Methods

setElem :: i -> e -> m () Source

setElems :: [(i, e)] -> m () Source

fill :: e -> m () Source

getElem :: i -> m e Source

Instances

(BlasOps e, CVector vec e) => IMM (VMM s vec e) Index (vec e) e Source 
(BlasOps e, CMatrix mat e) => IMM (MMM s mat e) IndexPair (mat e) e Source