itensor is broken, partly



On Thursday 25 May 2006 01:23 about Re: [Maxima] itensor is broken, partly 
Robert Dodier wrote:
> Hello,
>
> At least for itensor, changing the defn of lc2kdt from
>
> lc2kdt(exp):=block([exp:expand(exp),n:nterms(exp)],
>        sum(_lc2kdt0(if n > 1 then part(exp,i) else exp),i,1,n))$
>
> to
>
> lc2kdt(exp):=block([exp:expand(exp),n:nterms(exp)],
>        sum(_lc2kdt0(if n > 1 then part(exp,i%) else exp),i%,1,n))$
is this magic concerned about index "i" only?
I'm asking because ctensor is heavily relied to sum code.
So should we change expressions like sum(  exp[ii,kk],ii,1,dim) -> 
sum(  exp[ii%,kk],ii%,1,dim)
Valery