coerce-methods-SparseM function

Sparse Matrix Coercion from and to those from package SparseM

Sparse Matrix Coercion from and to those from package SparseM

Methods for coercion from and to sparse matrices from package SparseM

are provided here, for ease of porting functionality to the Matrix package, and comparing functionality of the two packages. All these work via the usual as(., "<class>")

coercion,

as(from, Class)

methods

Methods

  • from = "matrix.csr", to = "dgRMatrix": ...
  • from = "matrix.csc", to = "dgCMatrix": ...
  • from = "matrix.coo", to = "dgTMatrix": ...
  • from = "dgRMatrix", to = "matrix.csr": ...
  • from = "dgCMatrix", to = "matrix.csc": ...
  • from = "dgTMatrix", to = "matrix.coo": ...
  • from = "Matrix", to = "matrix.csr": ...
  • from = "matrix.csr", to = "dgCMatrix": ...
  • from = "matrix.coo", to = "dgCMatrix": ...
  • from = "matrix.csr", to = "Matrix": ...
  • from = "matrix.csc", to = "Matrix": ...
  • from = "matrix.coo", to = "Matrix": ...

See Also

The documentation in CRAN package list("SparseM"), such as SparseM.ontology, and one important class, matrix.csr.

  • Maintainer: Martin Maechler
  • License: GPL (>= 2) | file LICENCE
  • Last published: 2025-03-11