diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-03-22 16:53:57 -0700 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-03-22 16:53:57 -0700 |
commit | 28e02996df54240d44ead1bf827b867c22a224a9 (patch) | |
tree | 7cfb707fdb6d031598c2a30d160d7cc9279ea3b6 /test/main.h | |
parent | 3d1e857327a3ef5cfa8b65f2204c28bf405731d4 (diff) |
Merged patch 672 from Justin Lebar: Don't use long doubles with cuda
Diffstat (limited to 'test/main.h')
-rw-r--r-- | test/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/main.h b/test/main.h index 2797e8623..e5f1a9ad5 100644 --- a/test/main.h +++ b/test/main.h @@ -331,11 +331,13 @@ inline bool test_isApprox(const std::complex<double>& a, const std::complex<doub inline bool test_isMuchSmallerThan(const std::complex<double>& a, const std::complex<double>& b) { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<double> >()); } +#ifndef EIGEN_TEST_NO_LONGDOUBLE inline bool test_isApprox(const std::complex<long double>& a, const std::complex<long double>& b) { return internal::isApprox(a, b, test_precision<std::complex<long double> >()); } inline bool test_isMuchSmallerThan(const std::complex<long double>& a, const std::complex<long double>& b) { return internal::isMuchSmallerThan(a, b, test_precision<std::complex<long double> >()); } #endif +#endif #ifndef EIGEN_TEST_NO_LONGDOUBLE inline bool test_isApprox(const long double& a, const long double& b) |