mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user