Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
gtsam
3rdparty
Eigen
unsupported
test
dgmres.cpp
Go to the documentation of this file.
1
// This file is part of Eigen, a lightweight C++ template library
2
// for linear algebra.
3
//
4
// Copyright (C) 2011 Gael Guennebaud <g.gael@free.fr>
5
// Copyright (C) 2012 desire Nuentsa <desire.nuentsa_wakam@inria.fr
6
//
7
// This Source Code Form is subject to the terms of the Mozilla
8
// Public License v. 2.0. If a copy of the MPL was not distributed
9
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
10
11
#include "../../test/sparse_solver.h"
12
#include <
Eigen/src/IterativeSolvers/DGMRES.h
>
13
14
template
<
typename
T>
void
test_dgmres_T
()
15
{
16
DGMRES<SparseMatrix<T>
,
DiagonalPreconditioner<T>
> dgmres_colmajor_diag;
17
DGMRES<SparseMatrix<T>
,
IdentityPreconditioner
> dgmres_colmajor_I;
18
DGMRES<SparseMatrix<T>
,
IncompleteLUT<T>
> dgmres_colmajor_ilut;
19
//GMRES<SparseMatrix<T>, SSORPreconditioner<T> > dgmres_colmajor_ssor;
20
21
CALL_SUBTEST
(
check_sparse_square_solving
(dgmres_colmajor_diag) );
22
// CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_I) );
23
CALL_SUBTEST
(
check_sparse_square_solving
(dgmres_colmajor_ilut) );
24
//CALL_SUBTEST( check_sparse_square_solving(dgmres_colmajor_ssor) );
25
}
26
27
void
test_dgmres
()
28
{
29
CALL_SUBTEST_1(test_dgmres_T<double>());
30
CALL_SUBTEST_2(
test_dgmres_T
<std::complex<double> >());
31
}
test_dgmres
void test_dgmres()
Definition:
dgmres.cpp:27
Eigen::DiagonalPreconditioner
A preconditioner based on the digonal entries.
Definition:
BasicPreconditioners.h:36
Eigen::DGMRES
A Restarted GMRES with deflation. This class implements a modification of the GMRES solver for sparse...
Definition:
DGMRES.h:19
DGMRES.h
test_dgmres_T
void test_dgmres_T()
Definition:
dgmres.cpp:14
Eigen::IncompleteLUT
Incomplete LU factorization with dual-threshold strategy.
Definition:
IncompleteLUT.h:99
CALL_SUBTEST
#define CALL_SUBTEST(FUNC)
Definition:
main.h:342
Eigen::IdentityPreconditioner
A naive preconditioner which approximates any matrix as the identity matrix.
Definition:
BasicPreconditioners.h:200
check_sparse_square_solving
void check_sparse_square_solving(Solver &solver, int maxSize=300, int maxRealWorldSize=100000, bool checkDeficient=false)
Definition:
sparse_solver.h:399
gtsam
Author(s):
autogenerated on Sat May 8 2021 02:41:58