mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-09 07:00:27 +08:00
forward port slight changes in the 4x4 inverse test
This commit is contained in:
parent
684d76eba3
commit
1e2bcba5e4
@ -79,7 +79,7 @@ template<typename MatrixType> void inverse_general_4x4(int repeat)
|
||||
do {
|
||||
m = MatrixType::Random();
|
||||
absdet = ei_abs(m.determinant());
|
||||
} while(absdet < 2*epsilon<Scalar>() );
|
||||
} while(absdet < 10 * epsilon<Scalar>());
|
||||
MatrixType inv = m.inverse();
|
||||
double error = double( (m*inv-MatrixType::Identity()).norm() * absdet / epsilon<Scalar>() );
|
||||
error_sum += error;
|
||||
@ -90,7 +90,7 @@ template<typename MatrixType> void inverse_general_4x4(int repeat)
|
||||
EIGEN_DEBUG_VAR(error_avg);
|
||||
EIGEN_DEBUG_VAR(error_max);
|
||||
VERIFY(error_avg < (NumTraits<Scalar>::IsComplex ? 8.4 : 1.4) );
|
||||
VERIFY(error_max < (NumTraits<Scalar>::IsComplex ? 150.0 : 75.) );
|
||||
VERIFY(error_max < (NumTraits<Scalar>::IsComplex ? 160.0 : 75.) );
|
||||
}
|
||||
|
||||
void test_prec_inverse_4x4()
|
||||
|
Loading…
Reference in New Issue
Block a user