mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Clean up one compilation error and two warnings.
This commit is contained in:
parent
1403cea087
commit
bdb0e9fcd0
@ -143,9 +143,16 @@ std::ostream & ei_print_matrix(std::ostream & s, const Derived& _m, const IOForm
|
|||||||
}
|
}
|
||||||
else if(fmt.precision == FullPrecision)
|
else if(fmt.precision == FullPrecision)
|
||||||
{
|
{
|
||||||
explicit_precision = NumTraits<Scalar>::HasFloatingPoint
|
if (NumTraits<Scalar>::HasFloatingPoint)
|
||||||
? std::ceil(-ei_log(epsilon<Scalar>())/ei_log(10.0))
|
{
|
||||||
: 0;
|
typedef typename NumTraits<Scalar>::Real RealScalar;
|
||||||
|
RealScalar explicit_precision_fp = std::ceil(-ei_log(epsilon<Scalar>())/ei_log(10.0));
|
||||||
|
explicit_precision = static_cast<std::streamsize>(explicit_precision_fp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
explicit_precision = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -219,6 +219,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
option(EIGEN_COVERAGE_TESTING "Enable/disable gcov" OFF)
|
option(EIGEN_COVERAGE_TESTING "Enable/disable gcov" OFF)
|
||||||
if(EIGEN_COVERAGE_TESTING)
|
if(EIGEN_COVERAGE_TESTING)
|
||||||
set(COVERAGE_FLAGS "-fprofile-arcs -ftest-coverage")
|
set(COVERAGE_FLAGS "-fprofile-arcs -ftest-coverage")
|
||||||
|
set(CTEST_CUSTOM_COVERAGE_EXCLUDE "/test/")
|
||||||
else(EIGEN_COVERAGE_TESTING)
|
else(EIGEN_COVERAGE_TESTING)
|
||||||
set(COVERAGE_FLAGS "")
|
set(COVERAGE_FLAGS "")
|
||||||
endif(EIGEN_COVERAGE_TESTING)
|
endif(EIGEN_COVERAGE_TESTING)
|
||||||
|
@ -64,7 +64,8 @@ template<typename _Scalar> class AlignedVector3
|
|||||||
CoeffType m_coeffs;
|
CoeffType m_coeffs;
|
||||||
public:
|
public:
|
||||||
|
|
||||||
EIGEN_GENERIC_PUBLIC_INTERFACE(AlignedVector3)
|
typedef MatrixBase<AlignedVector3<_Scalar> > Base;
|
||||||
|
EIGEN_DENSE_PUBLIC_INTERFACE(AlignedVector3)
|
||||||
using Base::operator*;
|
using Base::operator*;
|
||||||
|
|
||||||
inline int rows() const { return 3; }
|
inline int rows() const { return 3; }
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
#ifndef EIGEN_AUTODIFF_MODULE
|
#ifndef EIGEN_AUTODIFF_MODULE
|
||||||
#define EIGEN_AUTODIFF_MODULE
|
#define EIGEN_AUTODIFF_MODULE
|
||||||
|
|
||||||
#include <Eigen/Array>
|
|
||||||
|
|
||||||
namespace Eigen {
|
namespace Eigen {
|
||||||
|
|
||||||
/** \ingroup Unsupported_modules
|
/** \ingroup Unsupported_modules
|
||||||
|
Loading…
x
Reference in New Issue
Block a user