Infinity-norm distance between two vectors. More...
Public Member Functions | |
| NormInfDist (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_ |
Infinity-norm distance between two vectors.
Definition at line 331 of file PlayaVectorOpsImpl.hpp.
| PlayaFunctors::NormInfDist< Scalar >::NormInfDist | ( | const MPIComm & | comm | ) | [inline] |
Definition at line 334 of file PlayaVectorOpsImpl.hpp.
| std::string PlayaFunctors::NormInfDist< Scalar >::description | ( | ) | const [inline] |
Definition at line 356 of file PlayaVectorOpsImpl.hpp.
| void PlayaFunctors::NormInfDist< Scalar >::postProc | ( | ) | const [inline, virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 343 of file PlayaVectorOpsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleType(), Playa::MPIOp::maxOp(), and PlayaFunctors::NormInfDist< Scalar >::val_.
| Scalar PlayaFunctors::NormInfDist< Scalar >::result | ( | ) | const [inline] |
Definition at line 350 of file PlayaVectorOpsImpl.hpp.
References PlayaFunctors::NormInfDist< Scalar >::val_.
| void PlayaFunctors::NormInfDist< Scalar >::step | ( | int | i, |
| const Scalar & | x, | ||
| const Scalar & | y | ||
| ) | const [inline] |
Definition at line 337 of file PlayaVectorOpsImpl.hpp.
References PlayaFunctors::NormInfDist< Scalar >::val_.
Scalar PlayaFunctors::NormInfDist< Scalar >::val_ [mutable, private] |
Definition at line 359 of file PlayaVectorOpsImpl.hpp.
Referenced by PlayaFunctors::NormInfDist< Scalar >::postProc(), PlayaFunctors::NormInfDist< Scalar >::result(), and PlayaFunctors::NormInfDist< Scalar >::step().