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

Function runit_NumericMatrix_column_const

inst/tinytest/cpp/Matrix.cpp:155–158  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

153
154// [[Rcpp::export]]
155double runit_NumericMatrix_column_const( const NumericMatrix m ){
156 NumericMatrix::ConstColumn col = m.column(0) ;
157 return std::accumulate( col.begin(), col.end(), 0.0 ) ;
158}
159
160// [[Rcpp::export]]
161NumericMatrix runit_NumericMatrix_cumsum( NumericMatrix input ){

Callers

nothing calls this directly

Calls 3

columnMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected