From 0b44893b4eb6cf7a2ae48574e78addacd0451c02 Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sun, 27 Feb 2011 23:20:45 -0500 Subject: fix umeyama test --- test/umeyama.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/umeyama.cpp') diff --git a/test/umeyama.cpp b/test/umeyama.cpp index abbb1fc7f..af1acdf82 100644 --- a/test/umeyama.cpp +++ b/test/umeyama.cpp @@ -130,9 +130,8 @@ void run_test(int dim, int num_elements) MatrixX cR_t_umeyama = umeyama(src.block(0,0,dim,num_elements), dst.block(0,0,dim,num_elements)); - const Scalar error = ( cR_t_umeyama*src - dst ).array().square().sum(); - - VERIFY(error < Scalar(10)*std::numeric_limits::epsilon()); + const Scalar error = ( cR_t_umeyama*src - dst ).norm() / dst.norm(); + VERIFY(error < Scalar(40)*std::numeric_limits::epsilon()); } template -- cgit v1.2.3