PlayaFunctors::WeightedNorm2< Scalar > Class Template Reference

Weighted 2-norm of a vector. More...

Inheritance diagram for PlayaFunctors::WeightedNorm2< Scalar >:

PlayaFunctors::ReductionFunctorBase< Scalar >

List of all members.

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_


Detailed Description

template<class Scalar>
class PlayaFunctors::WeightedNorm2< Scalar >

Weighted 2-norm of a vector.

Definition at line 271 of file PlayaVectorFunctorsImpl.hpp.


Constructor & Destructor Documentation

template<class Scalar >
PlayaFunctors::WeightedNorm2< Scalar >::WeightedNorm2 ( const MPIComm comm  )  [inline]

Definition at line 274 of file PlayaVectorFunctorsImpl.hpp.


Member Function Documentation

template<class Scalar >
std::string PlayaFunctors::WeightedNorm2< Scalar >::description (  )  const [inline]

Definition at line 295 of file PlayaVectorFunctorsImpl.hpp.

template<class Scalar >
void PlayaFunctors::WeightedNorm2< Scalar >::postProc (  )  const [inline, virtual]

template<class Scalar >
Scalar PlayaFunctors::WeightedNorm2< Scalar >::result (  )  const [inline]

template<class Scalar >
void PlayaFunctors::WeightedNorm2< Scalar >::step ( int  i,
const Scalar &  x,
const Scalar &  y 
) const [inline]


Member Data Documentation

template<class Scalar >
MPIComm PlayaFunctors::WeightedNorm2< Scalar >::comm_ [private]

Reimplemented from PlayaFunctors::ReductionFunctorBase< Scalar >.

Definition at line 298 of file PlayaVectorFunctorsImpl.hpp.

template<class Scalar >
Scalar PlayaFunctors::WeightedNorm2< Scalar >::val_ [mutable, private]

Site Contact