Infinity norm of a vector. More...
Public Member Functions | |
| NormInf (const MPIComm &comm) | |
| void | step (int i, const Scalar &x) const |
| void | postProc () const |
| Scalar | result () const |
| std::string | description () const |
Private Attributes | |
| Scalar | val_ |
Infinity norm of a vector.
Definition at line 373 of file PlayaVectorFunctorsImpl.hpp.
| PlayaFunctors::NormInf< Scalar >::NormInf | ( | const MPIComm & | comm | ) | [inline] |
Definition at line 376 of file PlayaVectorFunctorsImpl.hpp.
| std::string PlayaFunctors::NormInf< Scalar >::description | ( | ) | const [inline] |
Definition at line 398 of file PlayaVectorFunctorsImpl.hpp.
| void PlayaFunctors::NormInf< Scalar >::postProc | ( | ) | const [inline, virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 385 of file PlayaVectorFunctorsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleType(), Playa::MPIOp::maxOp(), and PlayaFunctors::NormInf< Scalar >::val_.
| Scalar PlayaFunctors::NormInf< Scalar >::result | ( | ) | const [inline] |
Definition at line 392 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::NormInf< Scalar >::val_.
| void PlayaFunctors::NormInf< Scalar >::step | ( | int | i, |
| const Scalar & | x | ||
| ) | const [inline] |
Definition at line 379 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::NormInf< Scalar >::val_.
Scalar PlayaFunctors::NormInf< Scalar >::val_ [mutable, private] |
Definition at line 401 of file PlayaVectorFunctorsImpl.hpp.
Referenced by PlayaFunctors::NormInf< Scalar >::postProc(), PlayaFunctors::NormInf< Scalar >::result(), and PlayaFunctors::NormInf< Scalar >::step().