Belos  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members
Belos::Iteration< ScalarType, MV, OP > Class Template Referenceabstract

#include <BelosIteration.hpp>

Inheritance diagram for Belos::Iteration< ScalarType, MV, OP >:
Inheritance graph
[legend]

Public Member Functions

Constructors/Destructor
 Iteration ()
 Default Constructor. More...
 
virtual ~Iteration ()
 Destructor. More...
 
Solver methods
virtual void iterate ()=0
 This method performs linear solver iterations until the status test indicates the need to stop or an error occurs (in which case, an std::exception is thrown). More...
 
virtual void initialize ()=0
 Initialize the solver with the initial vectors from the linear problem or random data. More...
 
Status methods
virtual int getNumIters () const =0
 Get the current iteration count. More...
 
virtual void resetNumIters (int iter=0)=0
 Reset the iteration count to iter. More...
 
virtual Teuchos::RCP< const MV > getNativeResiduals (std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > *norms) const =0
 Get the residuals native to the solver. More...
 
virtual Teuchos::RCP< MV > getCurrentUpdate () const =0
 Get the current update to the linear system. More...
 
Accessor methods
virtual const LinearProblem
< ScalarType, MV, OP > & 
getProblem () const =0
 Get a constant reference to the linear problem. More...
 
virtual int getBlockSize () const =0
 Get the blocksize to be used by the iterative solver in solving this linear problem. More...
 
virtual void setBlockSize (int blockSize)=0
 Set the blocksize to be used by the iterative solver in solving this linear problem. More...
 
virtual bool isInitialized ()=0
 States whether the solver has been initialized or not. More...
 

Detailed Description

template<class ScalarType, class MV, class OP>
class Belos::Iteration< ScalarType, MV, OP >

Definition at line 41 of file BelosIteration.hpp.

Constructor & Destructor Documentation

template<class ScalarType, class MV, class OP>
Belos::Iteration< ScalarType, MV, OP >::Iteration ( )
inline

Default Constructor.

Definition at line 49 of file BelosIteration.hpp.

template<class ScalarType, class MV, class OP>
virtual Belos::Iteration< ScalarType, MV, OP >::~Iteration ( )
inlinevirtual

Destructor.

Definition at line 52 of file BelosIteration.hpp.

Member Function Documentation

template<class ScalarType, class MV, class OP>
virtual void Belos::Iteration< ScalarType, MV, OP >::iterate ( )
pure virtual
template<class ScalarType, class MV, class OP>
virtual void Belos::Iteration< ScalarType, MV, OP >::initialize ( )
pure virtual
template<class ScalarType, class MV, class OP>
virtual int Belos::Iteration< ScalarType, MV, OP >::getNumIters ( ) const
pure virtual
template<class ScalarType, class MV, class OP>
virtual void Belos::Iteration< ScalarType, MV, OP >::resetNumIters ( int  iter = 0)
pure virtual
template<class ScalarType, class MV, class OP>
virtual Teuchos::RCP<const MV> Belos::Iteration< ScalarType, MV, OP >::getNativeResiduals ( std::vector< typename Teuchos::ScalarTraits< ScalarType >::magnitudeType > *  norms) const
pure virtual

Get the residuals native to the solver.

Returns
A multivector with blockSize vectors containing the native residuals, else the native residual norm is returned.
template<class ScalarType, class MV, class OP>
virtual Teuchos::RCP<MV> Belos::Iteration< ScalarType, MV, OP >::getCurrentUpdate ( ) const
pure virtual
template<class ScalarType, class MV, class OP>
virtual const LinearProblem<ScalarType,MV,OP>& Belos::Iteration< ScalarType, MV, OP >::getProblem ( ) const
pure virtual
template<class ScalarType, class MV, class OP>
virtual int Belos::Iteration< ScalarType, MV, OP >::getBlockSize ( ) const
pure virtual
template<class ScalarType, class MV, class OP>
virtual void Belos::Iteration< ScalarType, MV, OP >::setBlockSize ( int  blockSize)
pure virtual
template<class ScalarType, class MV, class OP>
virtual bool Belos::Iteration< ScalarType, MV, OP >::isInitialized ( )
pure virtual

The documentation for this class was generated from the following file:

Generated on Fri Dec 20 2024 09:24:50 for Belos by doxygen 1.8.5