Clang-format tests, examples, libraries, benchmarks, etc.

This commit is contained in:
Antonio Sánchez
2023-12-05 21:22:55 +00:00
committed by Rasmus Munk Larsen
parent 3252ecc7a4
commit 46e9cdb7fe
876 changed files with 33453 additions and 37795 deletions

View File

@@ -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> >());
}