Safe Haskell | None |
---|---|

Language | Haskell2010 |

# Documentation

class MVector v a => MMatrix m v a where Source #

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

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

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

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

Create a mutable matrix without initialization

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