RVLAlg::CountingNormTable< Scalar > Class Template Reference

This terminator behaves like a combined CountTerminator and NormTerminator, with the added side effect of printing an iteration table with the current value of the norm of the vector. More...

#include <ioterm.hh>

Inheritance diagram for RVLAlg::CountingNormTable< Scalar >:

RVLAlg::CountTerminator RVLAlg::Terminator List of all members.

Public Types

typedef ScalarFieldTraits<
Scalar >::AbsType 
NormRetType

Public Member Functions

 CountingNormTable (int maxcount, const Vector< Scalar > &_x, NormRetType _tol, bool _doit=true, ostream &_out=cout)
bool query ()

Protected Attributes

bool doit
ostream & out
const Vector< Scalar > & x
NormRetType tol

Detailed Description

template<class Scalar>
class RVLAlg::CountingNormTable< Scalar >

This terminator behaves like a combined CountTerminator and NormTerminator, with the added side effect of printing an iteration table with the current value of the norm of the vector.

Definition at line 455 of file ioterm.hh.


Member Typedef Documentation

template<class Scalar>
typedef ScalarFieldTraits<Scalar>::AbsType RVLAlg::CountingNormTable< Scalar >::NormRetType

Definition at line 457 of file ioterm.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVLAlg::CountingNormTable< Scalar >::CountingNormTable ( int  maxcount,
const Vector< Scalar > &  _x,
NormRetType  _tol,
bool  _doit = true,
ostream &  _out = cout 
)

Definition at line 459 of file ioterm.hh.

References RVLAlg::CountingNormTable< Scalar >::doit, and RVLAlg::CountingNormTable< Scalar >::out.


Member Function Documentation

template<class Scalar>
bool RVLAlg::CountingNormTable< Scalar >::query (  )  [virtual]

Reimplemented from RVLAlg::CountTerminator.

Definition at line 471 of file ioterm.hh.

References RVLAlg::CountingNormTable< Scalar >::doit, RVLAlg::CountTerminator::getCount(), RVLAlg::CountingNormTable< Scalar >::out, RVLAlg::CountTerminator::query(), RVLAlg::CountingNormTable< Scalar >::tol, and RVLAlg::CountingNormTable< Scalar >::x.


Member Data Documentation

template<class Scalar>
bool RVLAlg::CountingNormTable< Scalar >::doit [protected]

Definition at line 494 of file ioterm.hh.

Referenced by RVLAlg::CountingNormTable< Scalar >::CountingNormTable(), and RVLAlg::CountingNormTable< Scalar >::query().

template<class Scalar>
ostream& RVLAlg::CountingNormTable< Scalar >::out [protected]

Definition at line 495 of file ioterm.hh.

Referenced by RVLAlg::CountingNormTable< Scalar >::CountingNormTable(), and RVLAlg::CountingNormTable< Scalar >::query().

template<class Scalar>
const Vector<Scalar>& RVLAlg::CountingNormTable< Scalar >::x [protected]

Definition at line 496 of file ioterm.hh.

Referenced by RVLAlg::CountingNormTable< Scalar >::query().

template<class Scalar>
NormRetType RVLAlg::CountingNormTable< Scalar >::tol [protected]

Definition at line 497 of file ioterm.hh.

Referenced by RVLAlg::CountingNormTable< Scalar >::query().


The documentation for this class was generated from the following file:
Generated on 5 Jan 2017 for RvlAlg by  doxygen 1.4.7