From a76fbbf39777827200455477a9e3557b6063913f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 6 Nov 2012 15:25:50 +0100 Subject: Fix bug #314: - remove most of the metaprogramming kung fu in MathFunctions.h (only keep functions that differs from the std) - remove the overloads for array expression that were in the std namespace --- test/umeyama.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/umeyama.cpp') diff --git a/test/umeyama.cpp b/test/umeyama.cpp index b6c9be3a5..972a280c3 100644 --- a/test/umeyama.cpp +++ b/test/umeyama.cpp @@ -93,13 +93,14 @@ Eigen::Matrix randMatrixSpecialUnitary(int si template void run_test(int dim, int num_elements) { + using std::abs; typedef typename internal::traits::Scalar Scalar; typedef Matrix MatrixX; typedef Matrix VectorX; // MUST be positive because in any other case det(cR_t) may become negative for // odd dimensions! - const Scalar c = internal::abs(internal::random()); + const Scalar c = abs(internal::random()); MatrixX R = randMatrixSpecialUnitary(dim); VectorX t = Scalar(50)*VectorX::Random(dim,1); @@ -122,6 +123,7 @@ void run_test(int dim, int num_elements) template void run_fixed_size_test(int num_elements) { + using std::abs; typedef Matrix MatrixX; typedef Matrix HomMatrix; typedef Matrix FixedMatrix; @@ -131,7 +133,7 @@ void run_fixed_size_test(int num_elements) // MUST be positive because in any other case det(cR_t) may become negative for // odd dimensions! - const Scalar c = internal::abs(internal::random()); + const Scalar c = abs(internal::random()); FixedMatrix R = randMatrixSpecialUnitary(dim); FixedVector t = Scalar(50)*FixedVector::Random(dim,1); -- cgit v1.2.3