sp_nz_count_Rcpp: Count column-wise or row-wise non-zero elements of sparse...

View source: R/RcppExports.R

sp_nz_count_RcppR Documentation

Count column-wise or row-wise non-zero elements of sparse matrix

Description

Count column-wise or row-wise non-zero elements of sparse matrix

Usage

sp_nz_count_Rcpp(sp_data, rowNZ = FALSE)

Arguments

sp_data

A sparse matrix

rowNZ

A boolean value, whether to count row-wise non-zero elements

Value

A n x 1 or p x 1 matrix


xzhoulab/SPARK documentation built on Nov. 20, 2022, 2:54 p.m.