From fe0827495ab34749b8896bbebc0ff9fcc661c13b Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Feb 2010 10:52:28 +0100 Subject: * move dummy_precision and epsilon to NumTraits * make NumTraits inherits std::numeric_limits --- test/prec_inverse_4x4.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/prec_inverse_4x4.cpp') diff --git a/test/prec_inverse_4x4.cpp b/test/prec_inverse_4x4.cpp index e1b05aa0d..59ccbbcaf 100644 --- a/test/prec_inverse_4x4.cpp +++ b/test/prec_inverse_4x4.cpp @@ -35,7 +35,7 @@ template void inverse_permutation_4x4() { MatrixType m = PermutationMatrix<4>(indices); MatrixType inv = m.inverse(); - double error = double( (m*inv-MatrixType::Identity()).norm() / epsilon() ); + double error = double( (m*inv-MatrixType::Identity()).norm() / NumTraits::epsilon() ); VERIFY(error == 0.0); std::next_permutation(indices.data(),indices.data()+4); } @@ -53,9 +53,9 @@ template void inverse_general_4x4(int repeat) do { m = MatrixType::Random(); absdet = ei_abs(m.determinant()); - } while(absdet < epsilon()); + } while(absdet < NumTraits::epsilon()); MatrixType inv = m.inverse(); - double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon() ); + double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / NumTraits::epsilon() ); error_sum += error; error_max = std::max(error_max, error); } -- cgit v1.2.3