Find maximum element below an upper bound, returning value and location. More...
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_ |
Find maximum element below an upper bound, returning value and location.
Definition at line 208 of file PlayaVectorOpsImpl.hpp.
| PlayaFunctors::BoundedMaxLocFunctor< Scalar >::BoundedMaxLocFunctor | ( | const MPIComm & | comm, |
| const Scalar & | bound, | ||
| int | baseGNI | ||
| ) | [inline] |
Definition at line 212 of file PlayaVectorOpsImpl.hpp.
References PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_.
| std::string PlayaFunctors::BoundedMaxLocFunctor< Scalar >::description | ( | ) | const [inline] |
Definition at line 250 of file PlayaVectorOpsImpl.hpp.
| void PlayaFunctors::BoundedMaxLocFunctor< Scalar >::postProc | ( | ) | const [inline, virtual] |
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 232 of file PlayaVectorOpsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::BoundedMaxLocFunctor< Scalar >::baseGNI_, PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleIntPairType(), PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_, and Playa::MPIOp::minlocOp().
| IndexedValue<Scalar> PlayaFunctors::BoundedMaxLocFunctor< Scalar >::result | ( | ) | const [inline] |
Definition at line 244 of file PlayaVectorOpsImpl.hpp.
References PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_.
| void PlayaFunctors::BoundedMaxLocFunctor< Scalar >::step | ( | int | i, |
| const Scalar & | x | ||
| ) | const [inline] |
Definition at line 222 of file PlayaVectorOpsImpl.hpp.
References PlayaFunctors::BoundedMaxLocFunctor< Scalar >::bound_, and PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_.
int PlayaFunctors::BoundedMaxLocFunctor< Scalar >::baseGNI_ [private] |
Definition at line 256 of file PlayaVectorOpsImpl.hpp.
Referenced by PlayaFunctors::BoundedMaxLocFunctor< Scalar >::postProc().
Scalar PlayaFunctors::BoundedMaxLocFunctor< Scalar >::bound_ [private] |
Definition at line 255 of file PlayaVectorOpsImpl.hpp.
Referenced by PlayaFunctors::BoundedMaxLocFunctor< Scalar >::step().
MPIComm PlayaFunctors::BoundedMaxLocFunctor< Scalar >::comm_ [private] |
Reimplemented from PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 253 of file PlayaVectorOpsImpl.hpp.
IndexedValue<Scalar> PlayaFunctors::BoundedMaxLocFunctor< Scalar >::max_ [mutable, private] |
Definition at line 254 of file PlayaVectorOpsImpl.hpp.
Referenced by PlayaFunctors::BoundedMaxLocFunctor< Scalar >::BoundedMaxLocFunctor(), PlayaFunctors::BoundedMaxLocFunctor< Scalar >::postProc(), PlayaFunctors::BoundedMaxLocFunctor< Scalar >::result(), and PlayaFunctors::BoundedMaxLocFunctor< Scalar >::step().