Methods
zero :: a
:: a typeCtrl KGHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27
Modulematrices-0.5.0Haskell2010
zero :: a(Zero a, Vector v a) => Matrix CSR v aDefined in matrices-0.5.0 · Data.Matrix.Sparse.GenericEq (v a) => Eq (CSR v a)Defined in matrices-0.5.0 · Data.Matrix.Sparse.GenericRead (v a) => Read (CSR v a)Defined in matrices-0.5.0 · Data.Matrix.Sparse.GenericShow (v a) => Show (CSR v a)Defined in matrices-0.5.0 · Data.Matrix.Sparse.GenericGeneric (CSR v a)Defined in matrices-0.5.0 · Data.Matrix.Sparse.Generictype Rep (CSR v a) = D1 ('MetaData "CSR"
"Data.Matrix.Sparse.Generic"
"matrices-0.5.0-IxyXCJl9oI0FwE9r0oI58j"
'False) (C1 ('MetaCons "CSR"
'PrefixI 'False) ((S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 Int)) :*: (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (v a)) :*: (S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Vector Int)) :*: S1 ('MetaSel 'Nothing 'NoSourceUnpackedness 'SourceStrict 'DecidedUnpack) (Rec0 (Vector Int))))))Defined in matrices-0.5.0 · Data.Matrix.Sparse.Generictype Mutable CSR = MMatrixDefined in matrices-0.5.0 · Data.Matrix.Sparse.Genericmutable sparse matrix not implemented
Derived methods
Return the number of rows
Return the number of columns
Indexing
Extract a row.
Extract a row.
Extract the diagonal. Default algorithm is O(min(m,n) * O(unsafeIndex)).
Construct CSR from ascending association list. Items must be sorted first by row index, and then by column index.
O(m*n) Matrix construction
O(m*n) Create matrix from list of lists, it doesn't check if the list of list is a valid matrix
O(m*n) Create matrix from rows
Default algorithm is O((m*n) * O(unsafeIndex)).
O(m) Return the rows
O(m*n) Return the columns
O(m*n) Create a list by concatenating rows
O(m*n) List of lists