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

Function runit_SubMatrix

inst/tinytest/cpp/Matrix.cpp:249–259  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

247
248// [[Rcpp::export]]
249NumericMatrix runit_SubMatrix( ){
250 NumericMatrix xx(4, 5);
251 xx(0,0) = 3;
252 xx(0,1) = 4;
253 xx(0,2) = 5;
254 xx(1,_) = xx(0,_);
255 xx(_,3) = xx(_,2);
256 SubMatrix<REALSXP> yy = xx( Range(0,2), Range(0,3) ) ;
257 NumericMatrix res = yy ;
258 return res;
259}
260
261// [[Rcpp::export]]
262void runit_rownames_colnames_proxy(

Callers

nothing calls this directly

Calls 1

RangeClass · 0.50

Tested by

no test coverage detected