PlayaFunctors::Norm2< Scalar > Class Template Reference

Euclidean norm of a vector. More...

Inheritance diagram for PlayaFunctors::Norm2< Scalar >:

PlayaFunctors::ReductionFunctorBase< Scalar >

List of all members.

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_


Detailed Description

template<class Scalar>
class PlayaFunctors::Norm2< Scalar >

Euclidean norm of a vector.

Definition at line 239 of file PlayaVectorFunctorsImpl.hpp.


Constructor & Destructor Documentation

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

Definition at line 242 of file PlayaVectorFunctorsImpl.hpp.


Member Function Documentation

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

Definition at line 263 of file PlayaVectorFunctorsImpl.hpp.

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

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

Definition at line 257 of file PlayaVectorFunctorsImpl.hpp.

References PlayaFunctors::Norm2< Scalar >::val_.

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

Definition at line 245 of file PlayaVectorFunctorsImpl.hpp.

References PlayaFunctors::Norm2< Scalar >::val_.


Member Data Documentation

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

Site Contact