Public Member Functions | |
DotProduct (const MPIComm &comm) | |
void | step (int i, const Scalar &x, const Scalar &y) const |
void | postProc () const |
Scalar | result () const |
std::string | description () const |
Private Attributes | |
Scalar | val_ |
Definition at line 369 of file PlayaVectorFunctorsImpl.hpp.
PlayaFunctors::DotProduct< Scalar >::DotProduct | ( | const MPIComm & | comm | ) | [inline] |
Definition at line 372 of file PlayaVectorFunctorsImpl.hpp.
std::string PlayaFunctors::DotProduct< Scalar >::description | ( | ) | const [inline] |
Definition at line 393 of file PlayaVectorFunctorsImpl.hpp.
void PlayaFunctors::DotProduct< Scalar >::postProc | ( | ) | const [inline, virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 380 of file PlayaVectorFunctorsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleType(), Playa::MPIOp::sumOp(), and PlayaFunctors::DotProduct< Scalar >::val_.
Scalar PlayaFunctors::DotProduct< Scalar >::result | ( | ) | const [inline] |
Definition at line 387 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::DotProduct< Scalar >::val_.
void PlayaFunctors::DotProduct< Scalar >::step | ( | int | i, | |
const Scalar & | x, | |||
const Scalar & | y | |||
) | const [inline] |
Definition at line 375 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::DotProduct< Scalar >::val_.
Scalar PlayaFunctors::DotProduct< Scalar >::val_ [mutable, private] |
Definition at line 396 of file PlayaVectorFunctorsImpl.hpp.
Referenced by PlayaFunctors::DotProduct< Scalar >::postProc(), PlayaFunctors::DotProduct< Scalar >::result(), and PlayaFunctors::DotProduct< Scalar >::step().