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

Function runit_GenericMatrix_column

inst/tinytest/cpp/Matrix.cpp:192–201  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

190
191// [[Rcpp::export]]
192IntegerVector runit_GenericMatrix_column( GenericMatrix m ){
193 GenericMatrix::Column col = m.column(0) ;
194 IntegerVector out( col.size() ) ;
195 std::transform(
196 col.begin(), col.end(),
197 out.begin(),
198 unary_call<SEXP,int>( Function("length" ) )
199 ) ;
200 return wrap(out) ;
201}
202
203// [[Rcpp::export]]
204IntegerVector runit_GenericMatrix_column_const( const GenericMatrix m ){

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