]> www.ginac.de Git - ginac.git/blobdiff - ginac/clifford.h
- added get_representation_label()
[ginac.git] / ginac / clifford.h
index 8ac696528873244d1ee6463e933425f256353973..4d771530386b842320ba846853a81fa5a005212a 100644 (file)
@@ -55,6 +55,10 @@ protected:
        unsigned return_type(void) const { return return_types::noncommutative; }
        unsigned return_type_tinfo(void) const { return TINFO_clifford + representation_label; }
 
+       // non-virtual functions in this class
+public:
+       unsigned char get_representation_label(void) const {return representation_label;}
+
        // member variables
 private:
        unsigned char representation_label; /**< Representation label to distinguish independent spin lines */
@@ -121,6 +125,12 @@ ex dirac_gamma(const ex & mu, unsigned char rl = 0);
  *  @return newly constructed object */
 ex dirac_gamma5(unsigned char rl = 0);
 
+/** Calculate the trace of an expression containing gamma objects with
+ *  a specified representation label.
+ *
+ *  @param rl Representation label */
+ex dirac_trace(const ex & e, unsigned char rl = 0);
+
 
 } // namespace GiNaC