00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef HxUpoNorm2Sqr_h
00011 #define HxUpoNorm2Sqr_h
00012
00013 #include "HxTagList.h"
00014 #include "HxClassName.h"
00015
00016
00019 template<class DstValT, class SrcValT>
00020 class HxUpoNorm2Sqr
00021 {
00022 public:
00024 HxUpoNorm2Sqr(HxTagList&)
00025 {}
00026
00028 DstValT doIt(const SrcValT& x)
00029 { return (x*x).sum(); }
00030
00032 static HxString className()
00033 { return HxString("norm2sqr"); }
00034 };
00035
00036 #endif