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


DR.SC documentation built on May 29, 2024, 2:12 a.m.