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

Function runit_GenericMatrix_column_const

inst/tinytest/cpp/Matrix.cpp:204–213  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

202
203// [[Rcpp::export]]
204IntegerVector runit_GenericMatrix_column_const( const GenericMatrix m ){
205 GenericMatrix::ConstColumn col = m.column(0) ;
206 IntegerVector out( col.size() ) ;
207 std::transform(
208 col.begin(), col.end(),
209 out.begin(),
210 unary_call<SEXP,int>( Function("length" ) )
211 ) ;
212 return wrap(out) ;
213}
214
215// [[Rcpp::export]]
216List runit_Row_Column_sugar( NumericMatrix x){

Callers

nothing calls this directly

Calls 6

FunctionClass · 0.85
columnMethod · 0.80
wrapFunction · 0.50
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected