CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Square.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_Sqare_h
2 #define PhysicsTools_Utilities_Sqare_h
5 
6 namespace funct {
7 
8  template<typename F> struct Square {
9  typedef typename Power<F, Numerical<2> >::type type;
10  };
11 
12  template<typename F>
13  typename Square<F>::type sqr(const F& f) {
14  return pow(f, num<2>());
15  }
16 
17 }
18 #endif
double f[11][100]
Power< F, Numerical< 2 > >::type type
Definition: Square.h:9
Square< F >::type sqr(const F &f)
Definition: Square.h:13
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:281
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40