https://github.com/cran/cutpointr
Tip revision: 4408233eb8624dea85ecf18e86d50c296165c3f2 authored by Christian Thiele on 13 April 2022, 17:12:29 UTC
version 1.1.2
version 1.1.2
Tip revision: 4408233
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;
}