Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MSparseMatrix :: MMatrixKind where
- MSparseMatrix :: (SingI r, SingI c) => v s a -> Vector CInt -> Vector CInt -> Vector CInt -> MSparseMatrix r c v s a
Mutable sparse matrix
data MSparseMatrix :: MMatrixKind where Source #
Column-major mutable matrix.
MSparseMatrix | |
|
Instances
MVector v a => MMatrix MSparseMatrix v a Source # | |
Defined in Data.Matrix.Static.Sparse.Mutable dim :: MSparseMatrix r c v s a -> (Int, Int) Source # unsafeRead :: PrimMonad s => MSparseMatrix r c v (PrimState s) a -> (Int, Int) -> s a Source # unsafeWrite :: PrimMonad s => MSparseMatrix r c v (PrimState s) a -> (Int, Int) -> a -> s () Source # unsafeModify :: PrimMonad s => MSparseMatrix r c v (PrimState s) a -> (a -> a) -> (Int, Int) -> s () Source # fill :: PrimMonad s => MSparseMatrix r c v (PrimState s) a -> a -> s () Source # new :: (SingI r, SingI c, PrimMonad s) => s (MSparseMatrix r c v (PrimState s) a) Source # replicate :: (SingI r, SingI c, PrimMonad s) => a -> s (MSparseMatrix r c v (PrimState s) a) Source # |