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

Function runit_NumericMatrix_column

inst/tinytest/cpp/Matrix.cpp:149–152  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

147
148// [[Rcpp::export]]
149double runit_NumericMatrix_column( NumericMatrix m ){
150 NumericMatrix::Column col = m.column(0) ;
151 return std::accumulate( col.begin(), col.end(), 0.0 ) ;
152}
153
154// [[Rcpp::export]]
155double runit_NumericMatrix_column_const( const NumericMatrix m ){

Callers

nothing calls this directly

Calls 3

columnMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected