Kranc icon indicating copy to clipboard operation
Kranc copied to clipboard

Cannot calculate matrix inverse of mixed tensors

Open eschnett opened this issue 13 years ago • 1 comments

It is not possible to calculate the inverse of J[ua,lb]; Kranc expects all indices to be lower when calling MatrixInverse.

A work-around is to define a shorthand with all lower indices and to contract with KD to "lower" the index.

eschnett avatar Jun 14 '12 18:06 eschnett

Yes. The fix would be to extend MatrixInverse to handle the cases that it does not currently handle. I've never been happy with MatrixInverse, as it is a bit confusing. We should think of a better way of computing the inverse of a matrix in a way which maintains the index positions and doesn't look "wrong".

ianhinder avatar Jun 19 '12 06:06 ianhinder