Belos Version of the Day
Loading...
Searching...
No Matches
BelosGCRODRIteration.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Belos: Block Linear Solvers Package
4//
5// Copyright 2004-2016 NTESS and the Belos contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef BELOS_GCRODR_ITERATION_HPP
11#define BELOS_GCRODR_ITERATION_HPP
12
16
17#include "BelosConfigDefs.hpp"
18#include "BelosTypes.hpp"
19#include "BelosIteration.hpp"
20
21namespace Belos {
22
23template <class ScalarType, class MV, class DM>
24struct GCRODRIterState;
25
33template<class ScalarType, class MV, class OP, class DM = DefaultDenseMatrix<int, ScalarType> >
34class GCRODRIteration : virtual public Iteration<ScalarType,MV,OP,DM> {
35public:
36 virtual ~GCRODRIteration() {}
37
38 using Iteration<ScalarType,MV,OP,DM>::initialize;
39 virtual void initialize(GCRODRIterState<ScalarType,MV,DM>& newstate) = 0;
40
42
43 virtual void updateLSQR(int dim = -1) = 0;
44
45 virtual int getCurSubspaceDim() const = 0;
46
47 virtual int getMaxSubspaceDim() const = 0;
48
49 virtual void setSize(int recycledBlocks, int numBlocks) = 0;
50};
51
52} // namespace Belos
53
54#endif // BELOS_GCRODR_ITERATION_HPP
Belos header file which uses auto-configuration information to include necessary C++ headers.
Pure virtual base class which describes the basic interface to the linear solver iteration.
Collection of types and exceptions used within the Belos solvers.
Common base interface for GCRODRIter and FGCRODRIter.
virtual int getMaxSubspaceDim() const =0
virtual void setSize(int recycledBlocks, int numBlocks)=0
virtual void initialize(GCRODRIterState< ScalarType, MV, DM > &newstate)=0
virtual int getCurSubspaceDim() const =0
virtual GCRODRIterState< ScalarType, MV, DM > getState() const =0
virtual void updateLSQR(int dim=-1)=0
virtual void initialize()=0
Initialize the solver with the initial vectors from the linear problem or random data.
Iteration()
Default Constructor.
Structure to contain pointers to GCRODRIter state variables.

Generated for Belos by doxygen 1.15.0