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

Function matrix_scalar_plus4

inst/tinytest/cpp/Matrix.cpp:348–352  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

346
347// [[Rcpp::export]]
348NumericMatrix matrix_scalar_plus4(const NumericMatrix & x, double y) {
349 NumericMatrix z(x.rows(), x.cols());
350 z = y + x;
351 return x;
352}
353
354// [[Rcpp::export]]
355NumericMatrix matrix_scalar_divide(const NumericMatrix & x, double y) {

Callers

nothing calls this directly

Calls 2

rowsMethod · 0.45
colsMethod · 0.45

Tested by

no test coverage detected