[GiNaC-list] Simplifying indexed expressions not working on
Chris.Dams at mi.infn.it
Thu Jul 27 13:08:59 CEST 2006
On Wed, 26 Jul 2006, Alejandro Limache wrote:
> According to section 4.14.5 "Simplifying indexed expressions" of the
> if I set:
> scalar_products sp;
> sp.add(A, B, 0);
> should be replaced by zero when using .simplify_indexed(sp).
> This is not working. See my simple code below.
Ah yes, I see. Actually, I removed this possibility from the library some
time ago. See:
I thought that nobody would be using this feature, I, in the end, did what
I said in the "Note:" and now GiNaC does not try anymore to apply
scalar_products in case that the indexed objects have more than one index.
Of course, the tutorial should also be made consistent with this, so I
will do that. On the other hand, you might also try to convince me that we
really do need this kind of contraction...
Thanks for pointing this out, anyway.
More information about the GiNaC-list