aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported
diff options
context:
space:
mode:
authorGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-22 19:13:02 +0800
committerGravatar Chen-Pang He <jdh8@ms63.hinet.net>2012-09-22 19:13:02 +0800
commitd7b1049cab438b75576f2c98254684c8a3352666 (patch)
tree24ef5955923371ba923dab12585d82634b05dc1f /unsupported
parentdd8034bd1c414d7b2058d020203f5c82dc5b54b6 (diff)
Fix my typo in MatrixPowerBase.h, no effect on the flow.
Diffstat (limited to 'unsupported')
-rw-r--r--unsupported/Eigen/src/MatrixFunctions/MatrixPowerBase.h6
1 files 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<T>(0.5), tmp);
@@ -101,7 +101,7 @@ inline int matrix_power_get_pade_degree(long double normIminusT)
}
} // namespace internal
-template<typename MatrixType, int UpLo = Upper> class MatrixPowerTriangularAtomic
+template<typename MatrixType, int UpLo=Upper> class MatrixPowerTriangularAtomic
{
private:
typedef typename MatrixType::Scalar Scalar;