diff options
author | 2015-12-24 21:28:18 -0800 | |
---|---|---|
committer | 2015-12-24 21:28:18 -0800 | |
commit | 14897600b77ce8400780f0f34a7bb3661ce5db62 (patch) | |
tree | b3badcf3dd88d21ca22afe9ff903d5676135ad3e /test | |
parent | cef81c908422f2519e0402c36959de047d0b0e1c (diff) |
Protect digamma tests behind a EIGEN_HAS_C99_MATH check.
Diffstat (limited to 'test')
-rw-r--r-- | test/array.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/array.cpp b/test/array.cpp index 9366b73fd..96aef31c7 100644 --- a/test/array.cpp +++ b/test/array.cpp @@ -312,6 +312,7 @@ template<typename ArrayType> void array_real(const ArrayType& m) VERIFY_IS_APPROX(s1/m1, s1 * m1.inverse()); // check special functions (comparing against numpy implementation) +#ifdef EIGEN_HAS_C99_MATH if (!NumTraits<Scalar>::IsComplex) { VERIFY_IS_APPROX(numext::digamma(Scalar(1)), RealScalar(-0.5772156649015329)); VERIFY_IS_APPROX(numext::digamma(Scalar(1.5)), RealScalar(0.03648997397857645)); @@ -323,6 +324,7 @@ template<typename ArrayType> void array_real(const ArrayType& m) VERIFY_IS_EQUAL(numext::digamma(Scalar(-1)), std::numeric_limits<RealScalar>::infinity()); } +#endif // EIGEN_HAS_C99_MATH // check inplace transpose m3 = m1; |