mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix bug #314:
- remove most of the metaprogramming kung fu in MathFunctions.h (only keep functions that differs from the std) - remove the overloads for array expression that were in the std namespace
This commit is contained in:
@@ -3194,7 +3194,7 @@ namespace std
|
||||
}
|
||||
}
|
||||
|
||||
inline static mpfr::mpreal min(mp_prec_t precision = mpfr::mpreal::get_default_prec())
|
||||
inline static mpfr::mpreal (min)(mp_prec_t precision = mpfr::mpreal::get_default_prec())
|
||||
{
|
||||
// min = 1/2*2^emin = 2^(emin-1)
|
||||
return mpfr::mpreal(1, precision) << mpfr::mpreal::get_emin()-1;
|
||||
@@ -3205,7 +3205,7 @@ namespace std
|
||||
return (-(max)(precision));
|
||||
}
|
||||
|
||||
inline static mpfr::mpreal max(mp_prec_t precision = mpfr::mpreal::get_default_prec())
|
||||
inline static mpfr::mpreal (max)(mp_prec_t precision = mpfr::mpreal::get_default_prec())
|
||||
{
|
||||
// max = (1-eps)*2^emax, eps is machine epsilon
|
||||
return (mpfr::mpreal(1, precision) - epsilon(precision)) << mpfr::mpreal::get_emax();
|
||||
|
||||
Reference in New Issue
Block a user