LAMA
|
Norm is a abstract functor to calculate the norms for the passed values. More...
#include <Norm.hpp>
Public Member Functions | |
Norm () | |
Constructs a empty norm object. | |
virtual | ~Norm () |
Destroys this. | |
Scalar | operator() (const Scalar &scalar) const |
Calculates the norm of the passed Scalar. | |
Scalar | operator() (const Vector &vector) const |
Calculates the norm of the passed Vector. | |
virtual Scalar | apply (const Scalar &scalar) const =0 |
Calculates the norm of the passed Scalar. | |
virtual Scalar | apply (const Vector &vector) const =0 |
Calculates the norm of the passed Vector. |
Norm is a abstract functor to calculate the norms for the passed values.
The Functor Norm is mainly used by the stopping criteria ResidualThreshold and ResidualStagnation, to allow a to customize the Norms for these stopping criteria.
lama::Norm::Norm | ( | ) |
Constructs a empty norm object.
lama::Norm::~Norm | ( | ) | [virtual] |
Destroys this.
virtual Scalar lama::Norm::apply | ( | const Scalar & | scalar | ) | const [pure virtual] |
Calculates the norm of the passed Scalar.
[in] | scalar | the Scalar to caluclate the norm for. |
Implemented in lama::L2Norm, lama::L1Norm, and lama::MaxNorm.
Referenced by operator()().
virtual Scalar lama::Norm::apply | ( | const Vector & | vector | ) | const [pure virtual] |
Calculates the norm of the passed Vector.
[in] | vector | the Vector to caluclate the norm for. |
Implemented in lama::L2Norm, lama::L1Norm, and lama::MaxNorm.