Safe Haskell | None |
---|---|
Language | Haskell98 |
- data MMatrix s = MMatrix {}
- type IOMatrix = MMatrix RealWorld
- type STMatrix s = MMatrix s
- new :: PrimMonad m => Int -> Int -> m (MMatrix (PrimState m))
- set :: PrimMonad m => MMatrix (PrimState m) -> Double -> m ()
- read :: PrimMonad m => MMatrix (PrimState m) -> Int -> Int -> m Double
- write :: PrimMonad m => MMatrix (PrimState m) -> Int -> Int -> Double -> m ()
Documentation
Mutable matrix. You can modify elements
new :: PrimMonad m => Int -> Int -> m (MMatrix (PrimState m)) Source
Creates a mutable matrix of the given dimension. Elements are initialized with 0.
set :: PrimMonad m => MMatrix (PrimState m) -> Double -> m () Source
Set all elements of the matrix to the given value