MueLu Version of the Day
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"
19#include "MueLu_SolverBase.hpp"
21
22namespace MueLu {
23
29template <class Scalar = DefaultScalar,
32 class Node = DefaultNode>
33class SteepestDescentSolver : public SolverBase<Scalar, LocalOrdinal, GlobalOrdinal, Node> {
34#undef MUELU_STEEPESTDESCENTSOLVER_SHORT
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_;
60};
61
62} // namespace MueLu
63
64#define MUELU_STEEPESTDESCENTSOLVER_SHORT
65#endif // MUELU_STEEPESTDESCENTSOLVER_DECL_HPP
MueLu::DefaultLocalOrdinal LocalOrdinal
MueLu::DefaultScalar Scalar
MueLu::DefaultGlobalOrdinal GlobalOrdinal
MueLu::DefaultNode Node
Constraint space information for the potential prolongator.
Base class for energy-minimization iterative solvers.
Implements steepest descent algorithm for energy-minimization.
size_t nIts_
Number of performed iterations.
void Iterate(const Matrix &A, const Constraint &C, const Matrix &P0, RCP< Matrix > &P) const
Iterate.
Namespace for MueLu classes and methods.
Tpetra::KokkosClassic::DefaultNode::DefaultNodeType DefaultNode
Tpetra::Details::DefaultTypes::scalar_type DefaultScalar