tatami_r
R bindings to tatami matrices
|
Parse sparse matrices from block processing. More...
Go to the source code of this file.
Functions | |
template<class Function_ > | |
void | tatami_r::parse_SVT_SparseMatrix (Rcpp::RObject matrix, Function_ fun) |
Parse sparse matrices from block processing.
void tatami_r::parse_SVT_SparseMatrix | ( | Rcpp::RObject | matrix, |
Function_ | fun ) |
Parse the contents of a SVT_SparseMatrix
from the DelayedArray package. This accounts for different versions of the class definition, different types of the values, and the presence of lacunar leaf nodes.
Function_ | Function to be applied at each leaf node. |
matrix | The SVT_SparseMatrix object. |
fun | Function to apply to each leaf node, accepting four arguments:
fun may not be called for all c - if leaf nodes do not contain any data, they will be skipped. |