7 #define ThePEG_HAS_UNITS_CHECKING 1 11 #ifdef ThePEG_HAS_UNITS_CHECKING 23 const double ZERO = 0.0;
26 template<
int P,
int R>
27 double pow(
double q) {
28 return std::pow(q,
double(P)/
double(R));
34 template <
int L,
int E,
int Q,
int DL = 1,
int DE = 1,
int DQ = 1>
36 #ifdef ThePEG_HAS_UNITS_CHECKING Helper class to define unitful quantities.
The PhysicalQty class allows compile-time checking of dimensional correctness.
This is the main namespace within which all identifiers in ThePEG are declared.
Overloads for mathematical operations on physical quantities.
Qty< L, E, Q, DL, DE, DQ > Type
The QTY type is dimensioned.
const ZeroUnit ZERO
ZERO can be used as zero for any unitful quantity.
Overloads for operations on complex physical quantities.
This template class allows the compiler to check calculations with physical quantities for dimensiona...