CMS 3D CMS Logo

SimplifyMinus.h
Go to the documentation of this file.
1 #ifndef PhysicsTools_Utilities_SimplifyMinus_h
2 #define PhysicsTools_Utilities_SimplifyMinus_h
3 
6 namespace funct {
7 
8  // - - a = a
10 
11  // -( a + b ) = ( - a ) + ( -b )
12  MINUS_RULE(TYPT2, SUM_S(A, B), SUM(MINUS(A), MINUS(B)), (-_._1) + (-_._2));
13 
14 } // namespace funct
15 
17 
18 #endif
Definition: Abs.h:5
#define TYPT2
Definition: Simplify_begin.h:7
#define MINUS(A)
typedef MINUS_S(A) arg
TEMPL(T2) struct Divides B
Definition: Factorize.h:24
#define SUM_S(A, B)
#define MINUS_RULE(TMPL, T, RES, COMB)
#define SUM(A, B)
#define TYPT1
Definition: Simplify_begin.h:6