This package extends sparse matrix and vector classes from the Matrix package by providing:
Methods and operators that work natively on CSR formats (compressed sparse row, a.k.a.
RsparseMatrix
) such as slicing/sub-setting, assignment,rbind()
, mathematical operators for CSR and COO such as addition orsqrt()
, and methods such asdiag()
;Multi-threaded matrix multiplication and cross-product for many
<sparse, dense>
types, including thefloat32
type fromfloat
;Coercion methods between pairs of classes which are not present in
Matrix
, such as fromdgCMatrix
tongRMatrix
, as well as convenience conversion functions;Utility functions for sparse matrices such as sorting the indices or removing zero-valued entries;
Fast transposes that work by outputting in the opposite storage format;
Faster replacements for many
Matrix
methods for all sparse types, such as slicing and elementwise multiplication.Convenience functions for sparse objects, such as
mapSparse
or a shortershow
method.