MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_GMRESSolver_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// MueLu: A package for multigrid based preconditioning
4//
5// Copyright 2012 NTESS and the MueLu contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef MUELU_GMRESSOLVER_DECL_HPP
11#define MUELU_GMRESSOLVER_DECL_HPP
12
13#include <Xpetra_CrsMatrixFactory_fwd.hpp>
14#include <Xpetra_CrsMatrixWrap_fwd.hpp>
15#include <Xpetra_Matrix_fwd.hpp>
16
17#include "MueLu_ConfigDefs.hpp"
18#include "MueLu_SolverBase.hpp"
21
22namespace MueLu {
23
39template <class Scalar = DefaultScalar,
42 class Node = DefaultNode>
43class GMRESSolver : public SolverBase<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
44#undef MUELU_GMRESSOLVER_SHORT
46
47 public:
49
50
54 GMRESSolver(size_t Its);
55
57
59
60
62 void Iterate(const Matrix& A, const Constraint& C, const Matrix& P0, RCP<Matrix>& P) const;
63
65
66 private:
67 void givapp(SC* c, SC* s, SC* v, int k) const;
68
69 private:
70 size_t nIts_;
71};
72
73} // namespace MueLu
74
75#define MUELU_GMRESSOLVER_SHORT
76#endif // MUELU_GMRESSOLVER_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Constraint space information for the potential prolongator.
Implements conjugate gradient algorithm for energy-minimization.
void givapp(SC *c, SC *s, SC *v, int k) const
size_t nIts_
Number of performed iterations.
void Iterate(const Matrix &A, const Constraint &C, const Matrix &P0, RCP< Matrix > &P) const
Iterate.
Base class for energy-minimization iterative solvers.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar