From 75dab1ce5e31d942edce1fabb28cc07685736dbd Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Fri, 26 Jul 2013 15:13:54 +0200 Subject: [PATCH] Fixed floating point warning. Fixed evaluation of matrix_exp_computeUV. --- unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h | 2 +- unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h index 54f07b27c..d67ded7ba 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixExponential.h @@ -258,7 +258,7 @@ struct matrix_exp_computeUV { #if LDBL_MANT_DIG == 53 // double precision - matrix_exp_computeUV(arg, U, V, squarings); + matrix_exp_computeUV::run(arg, U, V, squarings); #else diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h index 12e28793d..a948f2347 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixFunction.h @@ -18,7 +18,7 @@ namespace Eigen { namespace internal { /** \brief Maximum distance allowed between eigenvalues to be considered "close". */ -static const float matrix_function_separation = 0.1; +static const float matrix_function_separation = 0.1f; /** \ingroup MatrixFunctions_Module * \class MatrixFunctionAtomic