convertSparse {diffuStats} | R Documentation

## S4 sparse matrix to arma::sp_mat

### Description

Convert an S4 sparse matrix from the `Matrix` package to an arma `sp_mat`.

### Usage

    convertSparse(mat)

### Arguments

`mat` | S4 sparse matrix from the `Matrix`

### Value

an arma::sp_mat object

### Source

http://gallery.rcpp.org/articles/armadillo-sparse-matrix/

[Package diffuStats version 0.104.0 Index]