LAMA
|
00001 00033 #ifndef LAMA_L2NORM_HPP_ 00034 #define LAMA_L2NORM_HPP_ 00035 00036 // for dll_import 00037 #include <lama/config.hpp> 00038 00039 // base classes 00040 #include <lama/norm/Norm.hpp> 00041 00042 namespace lama 00043 { 00044 00049 class LAMA_DLL_IMPORTEXPORT L2Norm: public lama::Norm 00050 { 00051 public: 00055 L2Norm(); 00056 00060 virtual ~L2Norm(); 00061 00069 virtual Scalar apply( const Scalar& scalar ) const; 00070 00078 virtual Scalar apply( const Vector& vector ) const; 00079 }; 00080 00081 00089 LAMA_DLL_IMPORTEXPORT Scalar l2Norm( const Scalar& scalar ); 00090 00098 LAMA_DLL_IMPORTEXPORT Scalar l2Norm( const Vector& vector ); 00099 00100 } 00101 00102 #endif // LAMA_L2NORM_HPP_