LAMA
|
L2Norm is a functor specialization of Norm that calculates the l2 norm for the passed values. More...
#include <L2Norm.hpp>
Public Member Functions | |
L2Norm () | |
Constructs a L2Norm functor. | |
virtual | ~L2Norm () |
Destroys this L2Norm functor. | |
virtual Scalar | apply (const Scalar &scalar) const |
calculates the l2 norm of the passed Scalar. | |
virtual Scalar | apply (const Vector &vector) const |
calculates the l2 norm of the passed Vector. | |
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. |
Constructs a L2Norm functor.
lama::L2Norm::~L2Norm | ( | ) | [virtual] |
Destroys this L2Norm functor.
Scalar lama::L2Norm::apply | ( | const Scalar & | scalar | ) | const [virtual] |
calculates the l2 norm of the passed Scalar.
[in] | scalar | the Scalar to calculate the l2 norm of. |
Implements lama::Norm.
References lama::l2Norm().
Scalar lama::L2Norm::apply | ( | const Vector & | vector | ) | const [virtual] |
calculates the l2 norm of the passed Vector.
[in] | vector | the Vector to calculate the l2 norm of. |
Implements lama::Norm.
References lama::l2Norm().
Calculates the norm of the passed Scalar.
To call this is equivalent to call apply with the same argument.
[in] | scalar | the Scalar to caluclate the norm for. |
References lama::Norm::apply().
Calculates the norm of the passed Vector.
To call this is equivalent to call apply with the same argument.
[in] | vector | the Vector to caluclate the norm for. |
References lama::Norm::apply().