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

Function runit_GenericMatrix_row_const

inst/tinytest/cpp/Matrix.cpp:138–146  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

136
137// [[Rcpp::export]]
138IntegerVector runit_GenericMatrix_row_const( const GenericMatrix m ){
139 GenericMatrix::ConstRow first_row = m.row(0) ;
140 IntegerVector out( first_row.size() ) ;
141 std::transform(
142 first_row.begin(), first_row.end(),
143 out.begin(),
144 unary_call<SEXP,int>( Function("length" ) ) ) ;
145 return out ;
146}
147
148// [[Rcpp::export]]
149double runit_NumericMatrix_column( NumericMatrix m ){

Callers

nothing calls this directly

Calls 5

FunctionClass · 0.85
rowMethod · 0.80
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected