]> www.ginac.de Git - ginac.git/blobdiff - ginac/tensor.h
moved some common code to the 'tensor' class
[ginac.git] / ginac / tensor.h
index cbe0a44a315e4059b9fb4a6da99b3435de718b20..9b19dc187587e99f7cd2787018df64277a215d20 100644 (file)
@@ -42,6 +42,13 @@ protected:
        // functions overriding virtual functions from base classes
 protected:
        unsigned return_type(void) const { return return_types::noncommutative_composite; }
+
+       // non-virtual functions in this class
+public:
+       /** Replace dummy index in contracted-with object by the contracting
+        *  object's second index (used internally for delta and metric tensor
+        *  contractions. */
+       bool replace_contr_index(exvector::iterator self, exvector::iterator other) const;
 };