diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-01-23 11:02:35 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-01-23 11:02:35 -0800 |
commit | e0d13ead906cf053af30ee2ae8dcc45713377f82 (patch) | |
tree | cf6a3a46102d70dd66ef1a282836ac1228aaa917 /test/array_cwise.cpp | |
parent | c35965b381cba0b43195517d13085128b907c7a4 (diff) |
Replace std::isnan with numext::isnan for c++03
Diffstat (limited to 'test/array_cwise.cpp')
-rw-r--r-- | test/array_cwise.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/array_cwise.cpp b/test/array_cwise.cpp index 6ea504c09..4c6055c19 100644 --- a/test/array_cwise.cpp +++ b/test/array_cwise.cpp @@ -54,7 +54,7 @@ void pow_test() { for (int j = 0; j < num_cases; ++j) { Scalar a = actual(i, j); Scalar e = expected(i, j); - bool fail = !(a==e) && !internal::isApprox(a, e, tol) && !((std::isnan)(a) && (std::isnan)(e)); + bool fail = !(a==e) && !internal::isApprox(a, e, tol) && !((numext::isnan)(a) && (numext::isnan)(e)); all_pass &= !fail; if (fail) { std::cout << "pow(" << x(i,j) << "," << y(i,j) << ") = " << a << " != " << e << std::endl; |