PlayaFunctors::BoundedMaxLocFunctor< Scalar > Class Template Reference

Find maximum element below an upper bound, returning value and location. More...

Inheritance diagram for PlayaFunctors::BoundedMaxLocFunctor< Scalar >:

PlayaFunctors::ReductionFunctorBase< Scalar >

List of all members.

Public Member Functions

 BoundedMaxLocFunctor (const MPIComm &comm, const Scalar &bound, int baseGNI)
void step (int i, const Scalar &x) const
void postProc () const
IndexedValue< Scalar > result () const
std::string description () const

Private Attributes

MPIComm comm_
IndexedValue< Scalar > max_
Scalar bound_
int baseGNI_


Detailed Description

template<class Scalar>
class PlayaFunctors::BoundedMaxLocFunctor< Scalar >

Find maximum element below an upper bound, returning value and location.

Definition at line 171 of file PlayaVectorOpsImpl.hpp.


Constructor & Destructor Documentation

template<class Scalar >
PlayaFunctors::BoundedMaxLocFunctor< Scalar >::BoundedMaxLocFunctor ( const MPIComm comm,
const Scalar &  bound,
int  baseGNI 
) [inline]


Member Function Documentation

template<class Scalar >
std::string PlayaFunctors::BoundedMaxLocFunctor< Scalar >::description (  )  const [inline]

Definition at line 213 of file PlayaVectorOpsImpl.hpp.

template<class Scalar >
void PlayaFunctors::BoundedMaxLocFunctor< Scalar >::postProc (  )  const [inline, virtual]

template<class Scalar >
IndexedValue<Scalar> PlayaFunctors::BoundedMaxLocFunctor< Scalar >::result (  )  const [inline]

template<class Scalar >
void PlayaFunctors::BoundedMaxLocFunctor< Scalar >::step ( int  i,
const Scalar &  x 
) const [inline]


Member Data Documentation

template<class Scalar >
int PlayaFunctors::BoundedMaxLocFunctor< Scalar >::baseGNI_ [private]

template<class Scalar >
Scalar PlayaFunctors::BoundedMaxLocFunctor< Scalar >::bound_ [private]

template<class Scalar >
MPIComm PlayaFunctors::BoundedMaxLocFunctor< Scalar >::comm_ [private]

Reimplemented from PlayaFunctors::ReductionFunctorBase< Scalar >.

Definition at line 216 of file PlayaVectorOpsImpl.hpp.

template<class Scalar >
IndexedValue<Scalar> PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_ [mutable, private]

Site Contact