matrices-0.5.0: native matrix based on vector

Safe HaskellNone
LanguageHaskell2010

Data.Matrix.Symmetric.Generic.Mutable

Contents

Synopsis

Mutable Matrix

data SymMMatrix v s a Source #

mutable matrix

Constructors

SymMMatrix !Int !(v s a) 
Instances
MVector v a => MMatrix SymMMatrix v a Source # 
Instance details

Defined in Data.Matrix.Symmetric.Generic.Mutable

Methods

dim :: SymMMatrix v s a -> (Int, Int) Source #

unsafeRead :: PrimMonad s => SymMMatrix v (PrimState s) a -> (Int, Int) -> s a Source #

unsafeWrite :: PrimMonad s => SymMMatrix v (PrimState s) a -> (Int, Int) -> a -> s () Source #

new :: PrimMonad s => (Int, Int) -> s (SymMMatrix v (PrimState s) a) Source #

replicate :: PrimMonad s => (Int, Int) -> a -> s (SymMMatrix v (PrimState s) a) Source #

dim :: MMatrix m v a => m v s a -> (Int, Int) Source #

write :: (PrimMonad s, MMatrix m v a) => m v (PrimState s) a -> (Int, Int) -> a -> s () Source #

Derived methods

unsafeWrite :: (MMatrix m v a, PrimMonad s) => m v (PrimState s) a -> (Int, Int) -> a -> s () Source #

read :: (PrimMonad s, MMatrix m v a) => m v (PrimState s) a -> (Int, Int) -> s a Source #

unsafeRead :: (MMatrix m v a, PrimMonad s) => m v (PrimState s) a -> (Int, Int) -> s a Source #

new :: (MMatrix m v a, PrimMonad s) => (Int, Int) -> s (m v (PrimState s) a) Source #

Create a mutable matrix without initialization

replicate :: (MMatrix m v a, PrimMonad s) => (Int, Int) -> a -> s (m v (PrimState s) a) Source #