LAMA
/home/brandes/workspace/LAMA/src/lama/norm/L1Norm.hpp
Go to the documentation of this file.
00001 
00033 #ifndef LAMA_L1NORM_HPP_
00034 #define LAMA_L1NORM_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 
00045 class LAMA_DLL_IMPORTEXPORT L1Norm: public lama::Norm
00046 {
00047 public:
00048     L1Norm();
00049     virtual ~L1Norm();
00050 
00051     virtual Scalar apply( const Scalar& scalar ) const;
00052 
00053     virtual Scalar apply( const Vector& vector ) const;
00054 };
00055 
00056 Scalar l1Norm( const Scalar& scalar );
00057 
00058 Scalar l1Norm( const Vector& vector );
00059 
00060 }
00061 
00062 #endif // LAMA_L1NORM_HPP_