10#ifndef BELOS_CG_STOCHASTIC_ITERATION_HPP
11#define BELOS_CG_STOCHASTIC_ITERATION_HPP
31 template <
class ScalarType,
class MV>
35 Teuchos::RCP<const MV>
R;
38 Teuchos::RCP<const MV>
Z;
41 Teuchos::RCP<const MV>
P;
44 Teuchos::RCP<const MV>
AP;
47 Teuchos::RCP<const MV>
Y;
54template<
class ScalarType,
class MV,
class OP>
Pure virtual base class which augments the basic interface for a conjugate gradient linear solver ite...
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.
Alternative run-time polymorphic interface for operators.
virtual StochasticCGIterationState< ScalarType, MV > getState() const =0
Get the current state of the linear solver.
virtual void initializeCG(StochasticCGIterationState< ScalarType, MV > &newstate)=0
Initialize the solver to an iterate, providing a complete state.
Structure to contain pointers to CGIteration state variables.
Teuchos::RCP< const MV > Y
The current stochastic recurrence vector.
Teuchos::RCP< const MV > AP
The matrix A applied to current decent direction vector.
Teuchos::RCP< const MV > P
The current decent direction vector.
Teuchos::RCP< const MV > Z
The current preconditioned residual.
Teuchos::RCP< const MV > R
The current residual.
StochasticCGIterationState()