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

Function runit_diff_ifelse

inst/tinytest/cpp/sugar.cpp:154–157  ·  view source on GitHub ↗

[[Rcpp::export]]

Source from the content-addressed store, hash-verified

152
153// [[Rcpp::export]]
154NumericVector runit_diff_ifelse( LogicalVector pred, NumericVector xx, NumericVector yy){
155 NumericVector res = ifelse( pred, diff(xx), diff(yy) );
156 return res ;
157}
158
159// [[Rcpp::export]]
160List runit_exp( NumericVector xx, IntegerVector yy ){

Callers

nothing calls this directly

Calls 2

ifelseFunction · 0.85
diffFunction · 0.85

Tested by

no test coverage detected