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

Function runit_NumericMatrix_row_const

inst/tinytest/cpp/Matrix.cpp:103–106  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

101
102// [[Rcpp::export]]
103double runit_NumericMatrix_row_const( const NumericMatrix m){
104 NumericMatrix::ConstRow first_row = m.row(0) ;
105 return std::accumulate( first_row.begin(), first_row.end(), 0.0 ) ;
106}
107
108// [[Rcpp::export]]
109std::string runit_CharacterMatrix_row( CharacterMatrix m ){

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected