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

Function runit_GenericMatrix_row

inst/tinytest/cpp/Matrix.cpp:127–135  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

125
126// [[Rcpp::export]]
127IntegerVector runit_GenericMatrix_row( GenericMatrix m ){
128 GenericMatrix::Row first_row = m.row(0) ;
129 IntegerVector out( first_row.size() ) ;
130 std::transform(
131 first_row.begin(), first_row.end(),
132 out.begin(),
133 unary_call<SEXP,int>( Function("length" ) ) ) ;
134 return out ;
135}
136
137// [[Rcpp::export]]
138IntegerVector runit_GenericMatrix_row_const( const GenericMatrix 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