]> www.ginac.de Git - ginac.git/blobdiff - ginac/clifford.h
- dirac_trace() takes an optional third argument: the expression to use for
[ginac.git] / ginac / clifford.h
index af3cb7883568dea7fda15ade6d1abf191fd4ca99..42be538f5f5bdbe9beb29dd95d67af6ab951b792 100644 (file)
@@ -126,6 +126,12 @@ ex dirac_gamma(const ex & mu, unsigned char rl = 0);
  *  @return newly constructed object */
 ex dirac_gamma5(unsigned char rl = 0);
 
+/** This returns (dirac_ONE(rl) + dirac_gamma5(rl)). */
+ex dirac_gamma6(unsigned char rl = 0);
+
+/** This returns (dirac_ONE(rl) - dirac_gamma5(rl)). */
+ex dirac_gamma7(unsigned char rl = 0);
+
 /** Create a term of the form e_mu * gamma~mu with a unique index mu.
  *
  *  @param dim Dimension of index
@@ -138,8 +144,10 @@ ex dirac_slash(const ex & e, const ex & dim, unsigned char rl = 0);
  *  In particular, the functional is not always cyclic in D != 4 dimensions
  *  when gamma5 is involved.
  *
- *  @param rl Representation label */
-ex dirac_trace(const ex & e, unsigned char rl = 0);
+ *  @param e Expression to take the trace of
+ *  @param rl Representation label
+ *  @param trONE Expression to be returned as the trace of the unit matrix */
+ex dirac_trace(const ex & e, unsigned char rl = 0, const ex & trONE = 4);
 
 
 } // namespace GiNaC