RVLAlg::Diff2ThresholdTerminator< Scalar > Class Template Reference

Terminator which takes two vectors and a tolerance. More...

#include <vectorterm.hh>

Inheritance diagram for RVLAlg::Diff2ThresholdTerminator< Scalar >:

RVLAlg::Terminator List of all members.

Public Types

typedef ScalarFieldTraits<
Scalar >::AbsType 
NormRetType

Public Member Functions

 Diff2ThresholdTerminator (Vector< Scalar > &tx, Vector< Scalar > &ty, NormRetType ttol)
virtual bool query ()

Protected Attributes

Vector< Scalar > & x
Vector< Scalar > & y
NormRetType tol

Detailed Description

template<class Scalar>
class RVLAlg::Diff2ThresholdTerminator< Scalar >

Terminator which takes two vectors and a tolerance.

STOP: $\|\|x - y\|\|^{2} < tol$

note: this is slightly cheaper than finding $\|\|x - y\|\| < tol$

Definition at line 224 of file vectorterm.hh.


Member Typedef Documentation

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

Definition at line 226 of file vectorterm.hh.


Constructor & Destructor Documentation

template<class Scalar>
RVLAlg::Diff2ThresholdTerminator< Scalar >::Diff2ThresholdTerminator ( Vector< Scalar > &  tx,
Vector< Scalar > &  ty,
NormRetType  ttol 
)

Definition at line 228 of file vectorterm.hh.

References RVLAlg::Diff2ThresholdTerminator< Scalar >::x, and RVLAlg::Diff2ThresholdTerminator< Scalar >::y.


Member Function Documentation

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

Implements RVLAlg::Terminator.

Definition at line 236 of file vectorterm.hh.

References RVLAlg::Diff2ThresholdTerminator< Scalar >::tol, RVLAlg::Diff2ThresholdTerminator< Scalar >::x, and RVLAlg::Diff2ThresholdTerminator< Scalar >::y.


Member Data Documentation

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

Definition at line 243 of file vectorterm.hh.

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

template<class Scalar>
Vector<Scalar>& RVLAlg::Diff2ThresholdTerminator< Scalar >::y [protected]

Definition at line 244 of file vectorterm.hh.

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

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

Definition at line 245 of file vectorterm.hh.

Referenced by RVLAlg::Diff2ThresholdTerminator< 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