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

Function runit_sapply_lambda

inst/tinytest/cpp/sugar.cpp:378–381  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

376
377// [[Rcpp::export]]
378NumericVector runit_sapply_lambda(NumericVector xx){
379 NumericVector res = sapply(xx, [](double x) { return x*x; });
380 return res;
381}
382
383// [[Rcpp::export]]
384LogicalVector runit_sapply_square( NumericVector xx){

Callers

nothing calls this directly

Calls 1

sapplyFunction · 0.50

Tested by

no test coverage detected