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

@@ -696,6 +696,12 @@
#endif // EIGEN_HAS_CONSTEXPR
#if EIGEN_HAS_CONSTEXPR
#define EIGEN_CONSTEXPR constexpr
#else
#define EIGEN_CONSTEXPR
#endif
// Does the compiler support C++11 math?
// Let's be conservative and enable the default C++11 implementation only if we are sure it exists
#ifndef EIGEN_HAS_CXX11_MATH