diff options
author | Chen-Pang He <jdh8@ms63.hinet.net> | 2013-07-10 02:53:15 +0800 |
---|---|---|
committer | Chen-Pang He <jdh8@ms63.hinet.net> | 2013-07-10 02:53:15 +0800 |
commit | 639d03d900e844171af0cc3b98dfa98eca79dad5 (patch) | |
tree | 857884bf07e0696cbefce2a6bd4dd0adfd90b3db /unsupported/test/matrix_power.cpp | |
parent | d204bb57d04e1d106c33790407ee4727e0f9816b (diff) |
These casts are unnecessary because isApprox already casts them.
Diffstat (limited to 'unsupported/test/matrix_power.cpp')
-rw-r--r-- | unsupported/test/matrix_power.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/test/matrix_power.cpp b/unsupported/test/matrix_power.cpp index 38b16fba9..8d53ec94f 100644 --- a/unsupported/test/matrix_power.cpp +++ b/unsupported/test/matrix_power.cpp @@ -26,7 +26,7 @@ void test2dRotation(double tol) C = Apow(std::ldexp(angle,1) / M_PI); std::cout << "test2dRotation: i = " << i << " error powerm = " << relerr(C,B) << '\n'; - VERIFY(C.isApprox(B, static_cast<T>(tol))); + VERIFY(C.isApprox(B, tol)); } } @@ -48,7 +48,7 @@ void test2dHyperbolicRotation(double tol) C = Apow(angle); std::cout << "test2dHyperbolicRotation: i = " << i << " error powerm = " << relerr(C,B) << '\n'; - VERIFY(C.isApprox(B, static_cast<T>(tol))); + VERIFY(C.isApprox(B, tol)); } } @@ -70,15 +70,15 @@ void testExponentLaws(const MatrixType& m, double tol) m4 = mpow(x+y); m5.noalias() = m2 * m3; - VERIFY(m4.isApprox(m5, static_cast<RealScalar>(tol))); + VERIFY(m4.isApprox(m5, tol)); m4 = mpow(x*y); m5 = m2.pow(y); - VERIFY(m4.isApprox(m5, static_cast<RealScalar>(tol))); + VERIFY(m4.isApprox(m5, tol)); m4 = (std::abs(x) * m1).pow(y); m5 = std::pow(std::abs(x), y) * m3; - VERIFY(m4.isApprox(m5, static_cast<RealScalar>(tol))); + VERIFY(m4.isApprox(m5, tol)); } } |