diff options
author | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-09-18 17:38:58 +0000 |
---|---|---|
committer | Rasmus Munk Larsen <rmlarsen@google.com> | 2020-09-18 17:38:58 +0000 |
commit | e55182ac09885d7558adf75e9e230b051a721c18 (patch) | |
tree | 308a5297ef1f1632ebed05c982f98ba6942345b3 /test/boostmultiprec.cpp | |
parent | 14022f5eb5304e23ebe10284f07bb1387570dc5e (diff) |
Get rid of initialization logic for blueNorm by making the computed constants static const or constexpr.
Move macro definition EIGEN_CONSTEXPR to Core and make all methods in NumTraits constexpr when EIGEN_HASH_CONSTEXPR is 1.
Diffstat (limited to 'test/boostmultiprec.cpp')
-rw-r--r-- | test/boostmultiprec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/boostmultiprec.cpp b/test/boostmultiprec.cpp index 1d1441ae2..9acbb5a11 100644 --- a/test/boostmultiprec.cpp +++ b/test/boostmultiprec.cpp @@ -78,7 +78,7 @@ typedef mp::number<mp::cpp_dec_float<100>, mp::et_on> Real; namespace Eigen { template<> struct NumTraits<Real> : GenericNumTraits<Real> { - static inline Real dummy_precision() { return 1e-50; } + static EIGEN_CONSTEXPR inline Real dummy_precision() { return 1e-50; } }; template<typename T1,typename T2,typename T3,typename T4,typename T5> @@ -205,4 +205,3 @@ EIGEN_DECLARE_TEST(boostmultiprec) CALL_SUBTEST_11(( test_simplicial_cholesky_T<Real,int>() )); } - |