sp_sums_Rcpp: Calculate column-wise or row-wise sum

View source: R/RcppExports.R

sp_sums_RcppR Documentation

Calculate column-wise or row-wise sum

Description

Calculate column-wise or row-wise sum

Usage

sp_sums_Rcpp(sp_data, rowSums = FALSE)

Arguments

sp_data

A sparse matrix

rowSums

A boolean value, whether to calculate row-wise sum

Value

A n x 1 or p x 1 matrix


feiyoung/DR.SC documentation built on March 23, 2024, 6:31 p.m.