diff options
Diffstat (limited to 'src/mathfunc.cpp')
-rw-r--r-- | src/mathfunc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mathfunc.cpp b/src/mathfunc.cpp index 908a52d..d3804dd 100644 --- a/src/mathfunc.cpp +++ b/src/mathfunc.cpp @@ -58,7 +58,7 @@ using namespace std; bool has_nan(const vector<double> v) { for (const auto& e: v) { - if (std::isnan(e)) + if (is_nan(e)) return true; } return false; |