Sparse Matrix
Creation
Diagonal matrix
Identity matrix
Permutation matrix
Super- or sub- diagonal matrix
Element insertion
fromList
toList
Lookup
Sub-matrices
Extract i'th row
Extract j'th column
Predicates
Matrix data and metadata
Non-zero elements in a row
Bandwidth bounds (min, max)
Matrix stacking
Misc. SpMatrix operations
Sparsify : remove almost-0 elements (|x| < eps)
Value rounding
Primitive algebra operations
Matrix row swap
Matrix transpose
Multiply matrix by a scalar
Trace
Frobenius norm
Matrix-matrix product
Matrix-matrix product, sparsified
Sparsified matrix products of two matrices
Partial inner product