From 9642fd7a937942037a3ea0d3c51b799be197782f Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Wed, 23 Mar 2016 15:37:45 +0100 Subject: Replace all M_PI by EIGEN_PI and add a check to the testsuite. --- unsupported/test/matrix_power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/test/matrix_power.cpp') diff --git a/unsupported/test/matrix_power.cpp b/unsupported/test/matrix_power.cpp index baf183d12..8e104ed1e 100644 --- a/unsupported/test/matrix_power.cpp +++ b/unsupported/test/matrix_power.cpp @@ -24,7 +24,7 @@ void test2dRotation(double tol) s = std::sin(angle); B << c, s, -s, c; - C = Apow(std::ldexp(angle,1) / M_PI); + C = Apow(std::ldexp(angle,1) / EIGEN_PI); std::cout << "test2dRotation: i = " << i << " error powerm = " << relerr(C,B) << '\n'; VERIFY(C.isApprox(B, tol)); } -- cgit v1.2.3