[GiNaC-devel] Patch for get_dummy_indices
Christian Bauer
Christian.Bauer at uni-mainz.de
Tue Nov 16 15:42:04 CET 2004
Hi!
On Mon, Nov 08, 2004 at 12:29:02PM +0000, Vladimir Kisil wrote:
> Presently the method get_dummy_indices() has a non-intuitive
> behaviour that it forgets about variance of indices and return all
> of them dotted.
(I stumbled over the word "dotted" here, which is a spinidx feature. I
assume you mean "covariant".)
This is on purpose. Since dummy indices always come in pairs, GiNaC chooses
to return only one element of each pair, in this case the covariant one
(arguably, it might make more sense to return the contravariant one as this
is the varidx default).
If you want to replace both instances of a varidx, it might be sufficient to
just replace the index value.
Bye,
Christian
--
/ Physics is an algorithm
\/ http://www.uni-mainz.de/~bauec002/
More information about the GiNaC-devel
mailing list