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

Function runit_NumericMatrix_row

inst/tinytest/cpp/Matrix.cpp:97–100  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

95
96// [[Rcpp::export]]
97double runit_NumericMatrix_row( NumericMatrix m){
98 NumericMatrix::Row first_row = m.row(0) ;
99 return std::accumulate( first_row.begin(), first_row.end(), 0.0 ) ;
100}
101
102// [[Rcpp::export]]
103double runit_NumericMatrix_row_const( const NumericMatrix m){

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected