CMS 3D CMS Logo

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>
9  struct Square {
10  typedef typename Power<F, Numerical<2> >::type type;
11  };
12 
13  template <typename F>
14  typename Square<F>::type sqr(const F& f) {
15  return pow(f, num<2>());
16  }
17 
18 } // namespace funct
19 #endif
Definition: Abs.h:5
double f[11][100]
Power< F, Numerical< 2 > >::type type
Definition: Square.h:10
Square< F >::type sqr(const F &f)
Definition: Square.h:14
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:29