Weighted 2-norm of a vector. More...
Public Member Functions | |
| WeightedNorm2 (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 | |
| MPIComm | comm_ |
| Scalar | val_ |
Weighted 2-norm of a vector.
Definition at line 308 of file PlayaVectorFunctorsImpl.hpp.
| PlayaFunctors::WeightedNorm2< Scalar >::WeightedNorm2 | ( | const MPIComm & | comm | ) | [inline] |
Definition at line 311 of file PlayaVectorFunctorsImpl.hpp.
| std::string PlayaFunctors::WeightedNorm2< Scalar >::description | ( | ) | const [inline] |
Definition at line 332 of file PlayaVectorFunctorsImpl.hpp.
| void PlayaFunctors::WeightedNorm2< Scalar >::postProc | ( | ) | const [inline, virtual] |
Callback for any postprocessing step (for example, MPI all-reduce)
Implements PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 319 of file PlayaVectorFunctorsImpl.hpp.
References Playa::MPIComm::allReduce(), PlayaFunctors::ReductionFunctorBase< Scalar >::comm(), Playa::MPIDataType::doubleType(), Playa::MPIOp::sumOp(), and PlayaFunctors::WeightedNorm2< Scalar >::val_.
| Scalar PlayaFunctors::WeightedNorm2< Scalar >::result | ( | ) | const [inline] |
Definition at line 326 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::WeightedNorm2< Scalar >::val_.
| void PlayaFunctors::WeightedNorm2< Scalar >::step | ( | int | i, |
| const Scalar & | x, | ||
| const Scalar & | y | ||
| ) | const [inline] |
Definition at line 314 of file PlayaVectorFunctorsImpl.hpp.
References PlayaFunctors::WeightedNorm2< Scalar >::val_.
MPIComm PlayaFunctors::WeightedNorm2< Scalar >::comm_ [private] |
Reimplemented from PlayaFunctors::ReductionFunctorBase< Scalar >.
Definition at line 335 of file PlayaVectorFunctorsImpl.hpp.
Scalar PlayaFunctors::WeightedNorm2< Scalar >::val_ [mutable, private] |
Definition at line 336 of file PlayaVectorFunctorsImpl.hpp.
Referenced by PlayaFunctors::WeightedNorm2< Scalar >::postProc(), PlayaFunctors::WeightedNorm2< Scalar >::result(), and PlayaFunctors::WeightedNorm2< Scalar >::step().