Base class for reduction functors. More...
Public Member Functions | |
| ReductionFunctorBase (const MPIComm &comm) | |
| virtual void | postProc () const =0 |
Protected Member Functions | |
| const MPIComm & | comm () const |
Private Attributes | |
| MPIComm | comm_ |
Base class for reduction functors.
Definition at line 80 of file PlayaVectorFunctorsDecl.hpp.
| PlayaFunctors::ReductionFunctorBase< Scalar >::ReductionFunctorBase | ( | const MPIComm & | comm | ) | [inline] |
Construct with a communicator
Definition at line 84 of file PlayaVectorFunctorsDecl.hpp.
| const MPIComm& PlayaFunctors::ReductionFunctorBase< Scalar >::comm | ( | ) | const [inline, protected] |
Return the MPI communicator
Definition at line 95 of file PlayaVectorFunctorsDecl.hpp.
References PlayaFunctors::ReductionFunctorBase< Scalar >::comm_.
Referenced by PlayaFunctors::BoundedMinLocFunctor< Scalar >::postProc(), PlayaFunctors::BoundedMaxLocFunctor< Scalar >::postProc(), PlayaFunctors::Norm2Dist< Scalar >::postProc(), PlayaFunctors::Norm2< Scalar >::postProc(), PlayaFunctors::Norm1Dist< Scalar >::postProc(), PlayaFunctors::WeightedNorm2< Scalar >::postProc(), PlayaFunctors::NormInfDist< Scalar >::postProc(), PlayaFunctors::Norm1< Scalar >::postProc(), PlayaFunctors::NormInf< Scalar >::postProc(), PlayaFunctors::DotProduct< Scalar >::postProc(), PlayaFunctors::Min< Scalar >::postProc(), and PlayaFunctors::Max< Scalar >::postProc().
| virtual void PlayaFunctors::ReductionFunctorBase< Scalar >::postProc | ( | ) | const [pure virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implemented in PlayaFunctors::Max< Scalar >, PlayaFunctors::Min< Scalar >, PlayaFunctors::DotProduct< Scalar >, PlayaFunctors::NormInf< Scalar >, PlayaFunctors::Norm1< Scalar >, PlayaFunctors::NormInfDist< Scalar >, PlayaFunctors::WeightedNorm2< Scalar >, PlayaFunctors::Norm1Dist< Scalar >, PlayaFunctors::Norm2< Scalar >, PlayaFunctors::Norm2Dist< Scalar >, PlayaFunctors::BoundedMaxLocFunctor< Scalar >, and PlayaFunctors::BoundedMinLocFunctor< Scalar >.
MPIComm PlayaFunctors::ReductionFunctorBase< Scalar >::comm_ [private] |
Reimplemented in PlayaFunctors::WeightedNorm2< Scalar >, PlayaFunctors::BoundedMaxLocFunctor< Scalar >, and PlayaFunctors::BoundedMinLocFunctor< Scalar >.
Definition at line 98 of file PlayaVectorFunctorsDecl.hpp.
Referenced by PlayaFunctors::ReductionFunctorBase< Scalar >::comm().