This package browser is in early development. Mind the rough edges.

r-matrixextra 0.1.15

Extra methods for sparse matrices

This package extends sparse matrix and vector classes from the Matrix package by providing:

  1. 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 or sqrt(), and methods such as diag();

  2. Multi-threaded matrix multiplication and cross-product for many <sparse, dense> types, including the float32 type from float;

  3. Coercion methods between pairs of classes which are not present in Matrix, such as from dgCMatrix to ngRMatrix, as well as convenience conversion functions;

  4. Utility functions for sparse matrices such as sorting the indices or removing zero-valued entries;

  5. Fast transposes that work by outputting in the opposite storage format;

  6. Faster replacements for many Matrix methods for all sparse types, such as slicing and elementwise multiplication.

  7. Convenience functions for sparse objects, such as mapSparse or a shorter show method.

Installation

Install r-matrixextra 0.1.15 as follows:

guix install r-matrixextra@0.1.15

Or install the latest version:

guix install r-matrixextra

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.