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.
This commit is contained in:
Rasmus Munk Larsen
2020-09-18 17:38:58 +00:00
parent 14022f5eb5
commit e55182ac09
8 changed files with 99 additions and 132 deletions

View File

@@ -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>() ));
}