https://github.com/cran/cutpointr
Tip revision: d461e559d4a76b7fcbd728470ca12cce56d3ffab authored by Christian Thiele on 19 June 2020, 11:00:06 UTC
version 1.0.32
version 1.0.32
Tip revision: d461e55
any_inf.cpp
#include <Rcpp.h>
using namespace Rcpp;
// [[Rcpp::export]]
bool any_inf(NumericVector x) {
int len = x.size();
for(int i=0; i<len; i++){
if (!(std::isfinite(x[i]))) return true;
}
return false;
}