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

Function runit_no_init_matrix_ctor

inst/tinytest/cpp/Matrix.cpp:283–289  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

281
282// [[Rcpp::export]]
283NumericMatrix runit_no_init_matrix_ctor() {
284 NumericMatrix x(no_init(2, 2));
285 for (int i = 0; i < 4; i++) {
286 x[i] = i;
287 }
288 return x;
289}
290
291// [[Rcpp::export]]
292int runit_no_init_matrix_ctor_nrow() {

Callers

nothing calls this directly

Calls 1

no_initFunction · 0.85

Tested by

no test coverage detected