Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
Sparse matrix represented by a finite map from index to an element.
Instances
Mutable version of
, but the same.IMMatrix
Instances
DecidableZero a => MMatrix MIMMatrix a Source # | |
Defined in Algebra.Matrix.IntMap basicUnsafeNew :: PrimMonad m => Size -> Size -> m (MIMMatrix (PrimState m) a) Source # basicInitialise :: PrimMonad m => MIMMatrix (PrimState m) a -> m () Source # basicRowCount :: MIMMatrix s a -> Size Source # basicColumnCount :: MIMMatrix s a -> Size Source # unsafeGetRow :: PrimMonad m => Index -> MIMMatrix (PrimState m) a -> m (Row MIMMatrix a) Source # unsafeGetColumn :: PrimMonad m => Index -> MIMMatrix (PrimState m) a -> m (Column MIMMatrix a) Source # unsafeFill :: PrimMonad m => Size -> Size -> a -> m (MIMMatrix (PrimState m) a) Source # unsafeFromRow :: PrimMonad m => Row MIMMatrix a -> m (MIMMatrix (PrimState m) a) Source # unsafeFromRows :: PrimMonad m => [Row MIMMatrix a] -> m (MIMMatrix (PrimState m) a) Source # unsafeFromColumn :: PrimMonad m => Column MIMMatrix a -> m (MIMMatrix (PrimState m) a) Source # unsafeFromColumns :: PrimMonad m => [Column MIMMatrix a] -> m (MIMMatrix (PrimState m) a) Source # unsafeCopy :: PrimMonad m => MIMMatrix (PrimState m) a -> MIMMatrix (PrimState m) a -> m () Source # unsafeRead :: PrimMonad m => MIMMatrix (PrimState m) a -> Index -> Index -> m a Source # unsafeWrite :: PrimMonad m => MIMMatrix (PrimState m) a -> Index -> Index -> a -> m () Source # basicSet :: PrimMonad m => MIMMatrix (PrimState m) a -> a -> m () Source # basicUnsafeIMapRowM :: PrimMonad m => MIMMatrix (PrimState m) a -> Index -> (Index -> a -> m a) -> m () Source # basicUnsafeIMapRow :: PrimMonad m => MIMMatrix (PrimState m) a -> Index -> (Index -> a -> a) -> m () Source # basicUnsafeSwapRows :: PrimMonad m => MIMMatrix (PrimState m) a -> Index -> Index -> m () Source # unsafeScaleRow :: (PrimMonad m, Commutative a) => MIMMatrix (PrimState m) a -> Index -> a -> m () Source # unsafeGenerate :: PrimMonad m => Size -> Size -> (Index -> Index -> a) -> m (MIMMatrix (PrimState m) a) Source # unsafeGenerateM :: PrimMonad m => Size -> Size -> (Index -> Index -> m a) -> m (MIMMatrix (PrimState m) a) Source # toRows :: PrimMonad m => MIMMatrix (PrimState m) a -> m [Row MIMMatrix a] Source # toColumns :: PrimMonad m => MIMMatrix (PrimState m) a -> m [Column MIMMatrix a] Source # combineRows :: (Semiring a, Commutative a, PrimMonad m) => Index -> a -> Index -> MIMMatrix (PrimState m) a -> m () Source # | |
type Row MIMMatrix Source # | |
Defined in Algebra.Matrix.IntMap | |
type Column MIMMatrix Source # | |
Defined in Algebra.Matrix.IntMap |