mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -11,21 +11,20 @@
|
||||
#include "../../test/sparse_solver.h"
|
||||
#include <Eigen/IterativeSolvers>
|
||||
|
||||
template<typename T> void test_bicgstabl_T()
|
||||
{
|
||||
template <typename T>
|
||||
void test_bicgstabl_T() {
|
||||
BiCGSTABL<SparseMatrix<T>, DiagonalPreconditioner<T> > bicgstabl_colmajor_diag;
|
||||
BiCGSTABL<SparseMatrix<T>, IncompleteLUT<T> > bicgstabl_colmajor_ilut;
|
||||
BiCGSTABL<SparseMatrix<T>, IncompleteLUT<T> > bicgstabl_colmajor_ilut;
|
||||
|
||||
//This does not change the tolerance of the test, only the tolerance of the solver.
|
||||
bicgstabl_colmajor_diag.setTolerance(NumTraits<T>::epsilon()*20);
|
||||
bicgstabl_colmajor_ilut.setTolerance(NumTraits<T>::epsilon()*20);
|
||||
// This does not change the tolerance of the test, only the tolerance of the solver.
|
||||
bicgstabl_colmajor_diag.setTolerance(NumTraits<T>::epsilon() * 20);
|
||||
bicgstabl_colmajor_ilut.setTolerance(NumTraits<T>::epsilon() * 20);
|
||||
|
||||
CALL_SUBTEST( check_sparse_square_solving(bicgstabl_colmajor_diag) );
|
||||
CALL_SUBTEST( check_sparse_square_solving(bicgstabl_colmajor_ilut) );
|
||||
CALL_SUBTEST(check_sparse_square_solving(bicgstabl_colmajor_diag));
|
||||
CALL_SUBTEST(check_sparse_square_solving(bicgstabl_colmajor_ilut));
|
||||
}
|
||||
|
||||
EIGEN_DECLARE_TEST(bicgstabl)
|
||||
{
|
||||
EIGEN_DECLARE_TEST(bicgstabl) {
|
||||
CALL_SUBTEST_1(test_bicgstabl_T<double>());
|
||||
CALL_SUBTEST_2(test_bicgstabl_T<std::complex<double> >());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user