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

Function rowSums

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

Source from the content-addressed store, hash-verified

921
922template <int RTYPE, bool NA, typename T>
923inline typename sugar::detail::RowSumsReturn<RTYPE>::type
924rowSums(const MatrixBase<RTYPE, NA, T>& x, bool na_rm = false) {
925 if (!na_rm) {
926 return sugar::RowSumsImpl<RTYPE, NA, T, false>(x);
927 }
928 return sugar::RowSumsImpl<RTYPE, NA, T, true>(x);
929}
930
931template <int RTYPE, bool NA, typename T>
932inline typename sugar::detail::ColSumsReturn<RTYPE>::type

Callers 4

dbl_row_sumsFunction · 0.85
int_row_sumsFunction · 0.85
lgl_row_sumsFunction · 0.85
cx_row_sumsFunction · 0.85

Tested by

no test coverage detected