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
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
Power.h
F
static uInt32 F(BLOWFISH_CTX *ctx, uInt32 x)
Definition: blowfish.cc:163
Numerical.h
funct::Square::type
Power< F, Numerical< 2 > >::type type
Definition: Square.h:10
funct::PowerStruct
Definition: Power.h:8
funct::sqr
Square< F >::type sqr(const F &f)
Definition: Square.h:14
funct::Power
Definition: Power.h:19
funct::Square
Definition: Square.h:9
funct::pow
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:30
funct
Definition: Abs.h:5