Fix bugs, docs, and structure in unsupported/ public headers

libeigen/eigen!2254

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
This commit is contained in:
Rasmus Munk Larsen
2026-03-29 17:06:40 -07:00
parent bd276fbb28
commit 255f522e2e
17 changed files with 69 additions and 50 deletions

View File

@@ -15,12 +15,14 @@
#include "../../Eigen/Core"
#include <mpreal.h>
#include "../../Eigen/src/Core/util/DisableStupidWarnings.h"
namespace Eigen {
/**
* \defgroup MPRealSupport_Module MPFRC++ Support module
* \code
* #include <Eigen/MPRealSupport>
* #include <unsupported/Eigen/MPRealSupport>
* \endcode
*
* This module provides support for multi precision floating point numbers
@@ -35,7 +37,7 @@ namespace Eigen {
*
\code
#include <iostream>
#include <Eigen/MPRealSupport>
#include <unsupported/Eigen/MPRealSupport>
#include <Eigen/LU>
using namespace mpfr;
using namespace Eigen;
@@ -95,7 +97,7 @@ struct NumTraits<mpfr::mpreal> : GenericNumTraits<mpfr::mpreal> {
return std::numeric_limits<Real>::digits10(Precision);
}
static inline int digits10(const Real& x) { return std::numeric_limits<Real>::digits10(x); }
static inline int max_digits10(long Precision = mpfr::mpreal::get_default_prec()) {
return std::numeric_limits<Real>::max_digits10(Precision);
}
@@ -211,4 +213,6 @@ struct gebp_kernel<mpfr::mpreal, mpfr::mpreal, Index, DataMapper, 1, 1, Conjugat
} // end namespace internal
} // namespace Eigen
#include "../../Eigen/src/Core/util/ReenableStupidWarnings.h"
#endif // EIGEN_MPREALSUPPORT_MODULE_H