X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Ftensor.h;h=9b19dc187587e99f7cd2787018df64277a215d20;hp=cbe0a44a315e4059b9fb4a6da99b3435de718b20;hb=f2a55a878a7e944ecb1a56134661e301e896cf39;hpb=34704348ad3e512010cbf85b6a9dee9fff22cd66 diff --git a/ginac/tensor.h b/ginac/tensor.h index cbe0a44a..9b19dc18 100644 --- a/ginac/tensor.h +++ b/ginac/tensor.h @@ -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; };