MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / colSums

Function colSums

inst/include/Rcpp/sugar/functions/rowSums.h:932–938  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930
931template <int RTYPE, bool NA, typename T>
932inline typename sugar::detail::ColSumsReturn<RTYPE>::type
933colSums(const MatrixBase<RTYPE, NA, T>& x, bool na_rm = false) {
934 if (!na_rm) {
935 return sugar::ColSumsImpl<RTYPE, NA, T, false>(x);
936 }
937 return sugar::ColSumsImpl<RTYPE, NA, T, true>(x);
938}
939
940template <int RTYPE, bool NA, typename T>
941inline typename sugar::detail::RowMeansReturn<RTYPE>::type

Callers 4

dbl_col_sumsFunction · 0.85
int_col_sumsFunction · 0.85
lgl_col_sumsFunction · 0.85
cx_col_sumsFunction · 0.85

Tested by

no test coverage detected