Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data SymMMatrix v s a = SymMMatrix !Int !(v s a)
- dim :: MMatrix m v a => m v s a -> (Int, Int)
- write :: (PrimMonad s, MMatrix m v a) => m v (PrimState s) a -> (Int, Int) -> a -> s ()
- unsafeWrite :: (MMatrix m v a, PrimMonad s) => m v (PrimState s) a -> (Int, Int) -> a -> s ()
- read :: (PrimMonad s, MMatrix m v a) => m v (PrimState s) a -> (Int, Int) -> s a
- unsafeRead :: (MMatrix m v a, PrimMonad s) => m v (PrimState s) a -> (Int, Int) -> s a
- new :: (MMatrix m v a, PrimMonad s) => (Int, Int) -> s (m v (PrimState s) a)
- replicate :: (MMatrix m v a, PrimMonad s) => (Int, Int) -> a -> s (m v (PrimState s) a)
Mutable Matrix
data SymMMatrix v s a Source #
mutable matrix
SymMMatrix !Int !(v s a) |
Instances
MVector v a => MMatrix SymMMatrix v a Source # | |
Defined in Data.Matrix.Symmetric.Generic.Mutable 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 # |
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 #