Euclidean norm of a vector. More...
Public Member Functions | |
| Norm2 (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_ |
Euclidean norm of a vector.
Definition at line 276 of file PlayaVectorFunctorsImpl.hpp.
| PlayaFunctors::Norm2< Scalar >::Norm2 | ( | const MPIComm & | comm | ) | [inline] |
Definition at line 279 of file PlayaVectorFunctorsImpl.hpp.
| std::string PlayaFunctors::Norm2< Scalar >::description | ( | ) | const [inline] |
Definition at line 300 of file PlayaVectorFunctorsImpl.hpp.
| void PlayaFunctors::Norm2< Scalar >::postProc | ( | ) | const [inline, virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 287 of file PlayaVectorFunctorsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleType(), Playa::MPIOp::sumOp(), and PlayaFunctors::Norm2< Scalar >::val_.
| Scalar PlayaFunctors::Norm2< Scalar >::result | ( | ) | const [inline] |
Definition at line 294 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::Norm2< Scalar >::val_.
| void PlayaFunctors::Norm2< Scalar >::step | ( | int | i, |
| const Scalar & | x | ||
| ) | const [inline] |
Definition at line 282 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::Norm2< Scalar >::val_.
Scalar PlayaFunctors::Norm2< Scalar >::val_ [mutable, private] |
Definition at line 303 of file PlayaVectorFunctorsImpl.hpp.
Referenced by PlayaFunctors::Norm2< Scalar >::postProc(), PlayaFunctors::Norm2< Scalar >::result(), and PlayaFunctors::Norm2< Scalar >::step().