CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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>
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
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