X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.h;h=0a00e76999d93cb4328ffea566903f17d55c072d;hp=3f1b655e90db5d776fe0bd0cb789d0bf0c25012b;hb=049247b23983117bf96237b7b503300812cf92ef;hpb=e7cc6a764ff67b5885d6633385fac23ccc1dc9a7 diff --git a/ginac/indexed.h b/ginac/indexed.h index 3f1b655e..0a00e769 100644 --- a/ginac/indexed.h +++ b/ginac/indexed.h @@ -3,7 +3,7 @@ * Interface to GiNaC's indexed expressions. */ /* - * GiNaC Copyright (C) 1999-2002 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2003 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -42,6 +42,7 @@ class indexed : public exprseq friend ex simplify_indexed(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp); friend ex simplify_indexed_product(const ex & e, exvector & free_indices, exvector & dummy_indices, const scalar_products & sp); + friend bool reposition_dummy_indices(ex & e, exvector & variant_dummy_indices, exvector & moved_indices); // other constructors public: @@ -143,11 +144,9 @@ public: // functions overriding virtual functions from base classes public: void print(const print_context & c, unsigned level = 0) const; + unsigned precedence(void) const {return 55;} bool info(unsigned inf) const; ex eval(int level = 0) const; - int degree(const ex & s) const; - int ldegree(const ex & s) const; - ex coeff(const ex & s, int n = 1) const; exvector get_free_indices(void) const; protected: