X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Findexed.h;h=1ce81945b432cdc40f0537a7699eb35441043eb8;hp=ad32c2372fee25e55e0fef167de8be32000eeea0;hb=ea5d361d94e49ca3f3b73db8c9812ee519f0633f;hpb=6715b097ae926fecfc62e53d4af38b7217634908 diff --git a/ginac/indexed.h b/ginac/indexed.h index ad32c237..1ce81945 100644 --- a/ginac/indexed.h +++ b/ginac/indexed.h @@ -153,7 +153,8 @@ protected: ex derivative(const symbol & s) const; ex thiscontainer(const exvector & v) const; ex thiscontainer(std::auto_ptr vp) const; - unsigned return_type() const { return return_types::commutative; } + unsigned return_type() const; + unsigned return_type_tinfo() const { return op(0).return_type_tinfo(); } ex expand(unsigned options = 0) const; // new virtual functions which can be overridden by derived classes @@ -256,6 +257,9 @@ exvector get_all_dummy_indices(const ex & e); /** Returns b with all dummy indices, which are common with a, renamed */ ex rename_dummy_indices_uniquely(const ex & a, const ex & b); +/** Same as above, where va and vb contain the indices of a and b and are sorted */ +ex rename_dummy_indices_uniquely(const exvector & va, const exvector & vb, const ex & b); + /** This function returns the given expression with expanded sums * for all dummy index summations, where the dimensionality of * the dummy index is numeric.