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

Function runit_sapply_square

inst/tinytest/cpp/sugar.cpp:384–386  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

382
383// [[Rcpp::export]]
384LogicalVector runit_sapply_square( NumericVector xx){
385 return all( sapply( xx * xx , square<double>() ) < 10.0 );
386}
387
388// [[Rcpp::export]]
389List runit_sapply_list( IntegerVector xx){

Callers

nothing calls this directly

Calls 2

allFunction · 0.85
sapplyFunction · 0.50

Tested by

no test coverage detected