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

Function runit_no_init_matrix

inst/tinytest/cpp/Matrix.cpp:274–280  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

272
273// [[Rcpp::export]]
274NumericMatrix runit_no_init_matrix() {
275 NumericMatrix x = no_init(2, 2);
276 for (int i = 0; i < 4; i++) {
277 x[i] = i;
278 }
279 return x;
280}
281
282// [[Rcpp::export]]
283NumericMatrix runit_no_init_matrix_ctor() {

Callers

nothing calls this directly

Calls 1

no_initFunction · 0.85

Tested by

no test coverage detected