mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-11-27 06:30:28 +08:00
fix umeyama test
This commit is contained in:
parent
8cad73072e
commit
0b44893b4e
@ -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<Scalar>::epsilon());
|
||||
const Scalar error = ( cR_t_umeyama*src - dst ).norm() / dst.norm();
|
||||
VERIFY(error < Scalar(40)*std::numeric_limits<Scalar>::epsilon());
|
||||
}
|
||||
|
||||
template<typename Scalar, int Dimension>
|
||||
|
Loading…
Reference in New Issue
Block a user