mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
various minor updates of some unit tests
This commit is contained in:
parent
6a4e94f349
commit
9b256d997e
@ -139,6 +139,7 @@ void test_cholesky()
|
||||
{
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST( cholesky(Matrix<double,1,1>()) );
|
||||
CALL_SUBTEST( cholesky(MatrixXd(1,1)) );
|
||||
CALL_SUBTEST( cholesky(Matrix2d()) );
|
||||
CALL_SUBTEST( cholesky(Matrix3f()) );
|
||||
CALL_SUBTEST( cholesky(Matrix4d()) );
|
||||
|
@ -63,6 +63,13 @@ template<typename BoxType> void alignedbox(const BoxType& _box)
|
||||
VERIFY_IS_APPROX(hp1f.template cast<Scalar>(),b0);
|
||||
AlignedBox<Scalar,Dim> hp1d = b0.template cast<Scalar>();
|
||||
VERIFY_IS_APPROX(hp1d.template cast<Scalar>(),b0);
|
||||
|
||||
// alignment -- make sure there is no memory alignment assertion
|
||||
BoxType *bp0 = new BoxType(dim);
|
||||
BoxType *bp1 = new BoxType(dim);
|
||||
bp0->extend(*bp1);
|
||||
delete bp0;
|
||||
delete bp1;
|
||||
}
|
||||
|
||||
void test_geo_alignedbox()
|
||||
|
@ -121,8 +121,8 @@ template<typename Scalar> void lines()
|
||||
VERIFY_IS_APPROX(result, center);
|
||||
|
||||
// check conversions between two types of lines
|
||||
CoeffsType converted_coeffs(HLine(PLine(line_u)).coeffs());
|
||||
converted_coeffs *= line_u.coeffs()(0)/converted_coeffs(0);
|
||||
CoeffsType converted_coeffs = HLine(PLine(line_u)).coeffs();
|
||||
converted_coeffs *= (line_u.coeffs()[0])/(converted_coeffs[0]);
|
||||
VERIFY(line_u.coeffs().isApprox(converted_coeffs));
|
||||
}
|
||||
}
|
||||
|
@ -157,16 +157,17 @@ void test_qr()
|
||||
// CALL_SUBTEST( qr(MatrixXf(12,8)) );
|
||||
// CALL_SUBTEST( qr(MatrixXcd(5,5)) );
|
||||
// CALL_SUBTEST( qr(MatrixXcd(7,3)) );
|
||||
CALL_SUBTEST( qr(MatrixXf(47,47)) );
|
||||
}
|
||||
|
||||
for(int i = 0; i < g_repeat; i++) {
|
||||
CALL_SUBTEST( qr_non_invertible<MatrixXf>() );
|
||||
// CALL_SUBTEST( qr_non_invertible<MatrixXd>() );
|
||||
CALL_SUBTEST( qr_non_invertible<MatrixXd>() );
|
||||
// TODO fix issue with complex
|
||||
// CALL_SUBTEST( qr_non_invertible<MatrixXcf>() );
|
||||
// CALL_SUBTEST( qr_non_invertible<MatrixXcd>() );
|
||||
// CALL_SUBTEST( qr_invertible<MatrixXf>() );
|
||||
// CALL_SUBTEST( qr_invertible<MatrixXd>() );
|
||||
CALL_SUBTEST( qr_invertible<MatrixXf>() );
|
||||
CALL_SUBTEST( qr_invertible<MatrixXd>() );
|
||||
// TODO fix issue with complex
|
||||
// CALL_SUBTEST( qr_invertible<MatrixXcf>() );
|
||||
// CALL_SUBTEST( qr_invertible<MatrixXcd>() );
|
||||
|
Loading…
Reference in New Issue
Block a user