matrices-0.5.0: native matrix based on vector

Safe HaskellNone
LanguageHaskell2010

Data.Matrix.Unboxed.Mutable

Contents

Synopsis

Mutable Matrix

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

takeRow :: Context a => MMatrix s a -> Int -> MVector s a Source #

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

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

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

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

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

Create a mutable matrix without initialization

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