Open pashilkar opened 6 months ago
so basically, The contract_metric method should contract only indices associated with the same metric. But, it appears that it's also contracting Lorentz indices when applied to the Minkowski metric. have I got you right?
Yes. η[Minkowski, Minkowski] should contract only Minkowski tensor indices.
On Fri, 1 Mar, 2024, 6:41 am Ashutosh Rajora, @.***> wrote:
so basically, The contract_metric method should contract only indices associated with the same metric. But, it appears that it's also contracting Lorentz indices when applied to the Minkowski metric. have I got you right?
— Reply to this email directly, view it on GitHub https://github.com/sympy/sympy/issues/26289#issuecomment-1972263438, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABMS2CAG26JX3JYUSQMXRBDYV7IUXAVCNFSM6AAAAABD7WZ2IWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZSGI3DGNBTHA . You are receiving this because you authored the thread.Message ID: @.***>
Does it make sense to pass Lorentz
indices to η
?
In [15]: η.index_types
Out[15]: [Minkowski, Minkowski]
It seems to me that TensorHead should raise an error if passed an index which does not match the corresponding entry in index_types
.
contractmetric(η) should contract only Minkowski indices. But when applied to $η^{μσ} g{νσ}$ with Lorentz indices, it outputs ${g_ν}^μ$. contractmetric(g), on the other hand, works as expected on $g^{μσ} g{νσ}$ outputting ${g_ν}^μ$.