12 #include "../../test/sparse_solver.h" 13 #include <Eigen/IterativeSolvers> 18 MINRES<SparseMatrix<T>,
Lower, IdentityPreconditioner > minres_colmajor_lower_I;
19 MINRES<SparseMatrix<T>,
Upper, IdentityPreconditioner > minres_colmajor_upper_I;
22 MINRES<SparseMatrix<T>,
Lower, DiagonalPreconditioner<T> > minres_colmajor_lower_diag;
23 MINRES<SparseMatrix<T>,
Upper, DiagonalPreconditioner<T> > minres_colmajor_upper_diag;
24 MINRES<SparseMatrix<T>, Lower|
Upper, DiagonalPreconditioner<T> > minres_colmajor_uplo_diag;
27 CALL_SUBTEST( check_sparse_spd_solving(minres_colmajor_lower_I) );
28 CALL_SUBTEST( check_sparse_spd_solving(minres_colmajor_upper_I) );
30 CALL_SUBTEST( check_sparse_spd_solving(minres_colmajor_lower_diag) );
31 CALL_SUBTEST( check_sparse_spd_solving(minres_colmajor_upper_diag) );
32 CALL_SUBTEST( check_sparse_spd_solving(minres_colmajor_uplo_diag) );
41 CALL_SUBTEST_1(test_minres_T<double>());