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

Function matrix_scalar_plus3

inst/tinytest/cpp/Matrix.cpp:341–345  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

339
340// [[Rcpp::export]]
341NumericMatrix matrix_scalar_plus3(const NumericMatrix & x, double y) {
342 NumericMatrix z(x.rows(), x.cols());
343 z = x + y;
344 return x;
345}
346
347// [[Rcpp::export]]
348NumericMatrix matrix_scalar_plus4(const NumericMatrix & x, double y) {

Callers

nothing calls this directly

Calls 2

rowsMethod · 0.45
colsMethod · 0.45

Tested by

no test coverage detected