From 4716040703be1ee906439385d20475dcddad5ce3 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Mon, 25 Oct 2010 10:15:22 -0400 Subject: bug #86 : use internal:: namespace instead of ei_ prefix --- test/umeyama.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/umeyama.cpp') diff --git a/test/umeyama.cpp b/test/umeyama.cpp index 6c710bc88..abbb1fc7f 100644 --- a/test/umeyama.cpp +++ b/test/umeyama.cpp @@ -82,7 +82,7 @@ Eigen::Matrix randMatrixUnitary(int size) } if (max_tries == 0) - ei_assert(false && "randMatrixUnitary: Could not construct unitary matrix!"); + eigen_assert(false && "randMatrixUnitary: Could not construct unitary matrix!"); return Q; } @@ -100,7 +100,7 @@ Eigen::Matrix randMatrixSpecialUnitary(int si MatrixType Q = randMatrixUnitary(size); // tweak the first column to make the determinant be 1 - Q.col(0) *= ei_conj(Q.determinant()); + Q.col(0) *= internal::conj(Q.determinant()); return Q; } @@ -108,13 +108,13 @@ Eigen::Matrix randMatrixSpecialUnitary(int si template void run_test(int dim, int num_elements) { - typedef typename ei_traits::Scalar Scalar; + 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 = ei_abs(ei_random()); + const Scalar c = internal::abs(internal::random()); MatrixX R = randMatrixSpecialUnitary(dim); VectorX t = Scalar(50)*VectorX::Random(dim,1); @@ -147,7 +147,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 = ei_abs(ei_random()); + const Scalar c = internal::abs(internal::random()); FixedMatrix R = randMatrixSpecialUnitary(dim); FixedVector t = Scalar(50)*FixedVector::Random(dim,1); @@ -175,7 +175,7 @@ void test_umeyama() { for (int i=0; i(40,500); + const int num_elements = internal::random(40,500); // works also for dimensions bigger than 3... for (int dim=2; dim<8; ++dim) -- cgit v1.2.3