From d7b1049cab438b75576f2c98254684c8a3352666 Mon Sep 17 00:00:00 2001 From: Chen-Pang He Date: Sat, 22 Sep 2012 19:13:02 +0800 Subject: [PATCH] Fix my typo in MatrixPowerBase.h, no effect on the flow. --- unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h index eac43fa52..0a18fe1c1 100644 --- a/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h +++ b/unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h @@ -38,8 +38,8 @@ inline int binary_powering_cost(T p, int* squarings) { int applyings=0, tmp; - if (frexp(p, squarings) != 0.5); - --*squarings; + frexp(p, squarings); + --*squarings; while (std::frexp(p, &tmp), tmp > 0) { p -= std::ldexp(static_cast(0.5), tmp); @@ -101,7 +101,7 @@ inline int matrix_power_get_pade_degree(long double normIminusT) } } // namespace internal -template class MatrixPowerTriangularAtomic +template class MatrixPowerTriangularAtomic { private: typedef typename MatrixType::Scalar Scalar;