#include <vectorterm.hh>
Inheritance diagram for RVLAlg::BallProjTerminator< Scalar >:
Public Types | |
typedef ScalarFieldTraits< Scalar >::AbsType | NormRetType |
Public Member Functions | |
BallProjTerminator (Vector< Scalar > &ty, NormRetType _maxstep, ostream &_str=cout) | |
virtual bool | query () |
Protected Attributes | |
Vector< Scalar > & | y |
NormRetType | maxstep |
bool | queryres |
ostream & | str |
Returns false if
Returns true otherwise, and projects x onto the ball of radius r centered at 0, that is, replaces x by
Special case of DiffBallProjTerminator with x0=0.
In order to avoid possible false positive return due to roundoff when query() is called repeatedly on the same data, scale by slightly smaller factor than returned by floating point division.
Definition at line 421 of file vectorterm.hh.
typedef ScalarFieldTraits<Scalar>::AbsType RVLAlg::BallProjTerminator< Scalar >::NormRetType |
Definition at line 423 of file vectorterm.hh.
RVLAlg::BallProjTerminator< Scalar >::BallProjTerminator | ( | Vector< Scalar > & | ty, | |
NormRetType | _maxstep, | |||
ostream & | _str = cout | |||
) |
Definition at line 425 of file vectorterm.hh.
virtual bool RVLAlg::BallProjTerminator< Scalar >::query | ( | ) | [virtual] |
Implements RVLAlg::Terminator.
Definition at line 429 of file vectorterm.hh.
References RVLAlg::BallProjTerminator< Scalar >::maxstep, ProtectedDivision(), RVLAlg::BallProjTerminator< Scalar >::queryres, RVLAlg::BallProjTerminator< Scalar >::str, and RVLAlg::BallProjTerminator< Scalar >::y.
Vector<Scalar>& RVLAlg::BallProjTerminator< Scalar >::y [protected] |
Definition at line 451 of file vectorterm.hh.
Referenced by RVLAlg::BallProjTerminator< Scalar >::query().
NormRetType RVLAlg::BallProjTerminator< Scalar >::maxstep [protected] |
Definition at line 452 of file vectorterm.hh.
Referenced by RVLAlg::BallProjTerminator< Scalar >::query().
bool RVLAlg::BallProjTerminator< Scalar >::queryres [mutable, protected] |
Definition at line 453 of file vectorterm.hh.
Referenced by RVLAlg::BallProjTerminator< Scalar >::query().
ostream& RVLAlg::BallProjTerminator< Scalar >::str [protected] |
Definition at line 454 of file vectorterm.hh.
Referenced by RVLAlg::BallProjTerminator< Scalar >::query().