MueLu
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
MueLu_SteepestDescentSolver_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_STEEPESTDESCENTSOLVER_DECL_HPP
11
#define MUELU_STEEPESTDESCENTSOLVER_DECL_HPP
12
13
#include <Xpetra_Matrix_fwd.hpp>
14
#include <Xpetra_CrsMatrixWrap_fwd.hpp>
15
#include <Xpetra_CrsMatrixFactory_fwd.hpp>
16
17
#include "
MueLu_ConfigDefs.hpp
"
18
#include "
MueLu_Utilities_fwd.hpp
"
19
#include "
MueLu_SolverBase.hpp
"
20
#include "
MueLu_Constraint_fwd.hpp
"
21
22
namespace
MueLu
{
23
28
29
template
<
class
Scalar
=
DefaultScalar
,
30
class
LocalOrdinal
=
DefaultLocalOrdinal
,
31
class
GlobalOrdinal
=
DefaultGlobalOrdinal
,
32
class
Node
=
DefaultNode
>
33
class
SteepestDescentSolver
:
public
SolverBase
<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
34
#undef MUELU_STEEPESTDESCENTSOLVER_SHORT
35
#include "
MueLu_UseShortNames.hpp
"
36
37
public
:
39
40
45
SteepestDescentSolver
(
size_t
Its, SC StepLength = Teuchos::ScalarTraits<Scalar>::one());
46
48
50
51
53
void
Iterate
(
const
Matrix& A,
const
Constraint
& C,
const
Matrix& P0, RCP<Matrix>& P)
const
;
54
56
57
private
:
58
size_t
nIts_
;
59
SC
stepLength_
;
60
};
61
62
}
// namespace MueLu
63
64
#define MUELU_STEEPESTDESCENTSOLVER_SHORT
65
#endif
// MUELU_STEEPESTDESCENTSOLVER_DECL_HPP
MueLu_ConfigDefs.hpp
MueLu_Constraint_fwd.hpp
MueLu_SolverBase.hpp
LocalOrdinal
MueLu::DefaultLocalOrdinal LocalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:13
Scalar
MueLu::DefaultScalar Scalar
Definition
MueLu_UseDefaultTypes.hpp:12
GlobalOrdinal
MueLu::DefaultGlobalOrdinal GlobalOrdinal
Definition
MueLu_UseDefaultTypes.hpp:14
Node
MueLu::DefaultNode Node
Definition
MueLu_UseDefaultTypes.hpp:15
MueLu_UseShortNames.hpp
MueLu_Utilities_fwd.hpp
MueLu::Constraint
Constraint space information for the potential prolongator.
Definition
MueLu_Constraint_decl.hpp:69
MueLu::SteepestDescentSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::nIts_
size_t nIts_
Definition
MueLu_SteepestDescentSolver_decl.hpp:58
MueLu::SteepestDescentSolver::Iterate
void Iterate(const Matrix &A, const Constraint &C, const Matrix &P0, RCP< Matrix > &P) const
Iterate.
Definition
MueLu_SteepestDescentSolver_def.hpp:33
MueLu::SteepestDescentSolver::SolverBase
MueLu::SolverBase< Scalar, LocalOrdinal, GlobalOrdinal, Node > SolverBase
MueLu::SteepestDescentSolver::SteepestDescentSolver
SteepestDescentSolver(size_t Its, SC StepLength=Teuchos::ScalarTraits< Scalar >::one())
Definition
MueLu_SteepestDescentSolver_def.hpp:28
MueLu::SteepestDescentSolver< Scalar, LocalOrdinal, GlobalOrdinal, Node >::stepLength_
SC stepLength_
Definition
MueLu_SteepestDescentSolver_decl.hpp:59
MueLu
Namespace for MueLu classes and methods.
Definition
MueLu_BrickAggregationFactory_decl.hpp:42
MueLu::DefaultNode
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Definition
MueLu_Details_DefaultTypes.hpp:32
MueLu::DefaultGlobalOrdinal
int DefaultGlobalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:29
MueLu::DefaultLocalOrdinal
int DefaultLocalOrdinal
Definition
MueLu_Details_DefaultTypes.hpp:22
MueLu::DefaultScalar
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar
Definition
MueLu_Details_DefaultTypes.hpp:20
src
Transfers
Energy-Minimization
Solvers
MueLu_SteepestDescentSolver_decl.hpp
Generated by
1.17.0