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

Function matrix_generic

inst/tinytest/cpp/Matrix.cpp:44–50  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

42
43// [[Rcpp::export]]
44List matrix_generic( GenericMatrix m){
45 List output( m.ncol() ) ;
46 for( size_t i=0 ; i<4; i++){
47 output[i] = m(i,i) ;
48 }
49 return output ;
50}
51
52// [[Rcpp::export]]
53NumericMatrix matrix_opequals(SEXP x) {

Callers

nothing calls this directly

Calls 1

ncolMethod · 0.45

Tested by

no test coverage detected