Open
Description
replace_with_arrays
has sufficient information to work in cases like:
replace_with_arrays(A(i)*A(j)*field.metric(-i,-j), Dict(A(-i) => [0, 1], field.metric(i,j) => [1 0; 0 1]) )
This function should internally know that field.metric(-i,-j)
is just inv([1 0; 0 1])
, and that A(i)
is just A(-j)*field.metric(i,j) == [0,1]' * [1 0; 0 1]
, but it gives an unspecified metric error.
This error is upstream and also exists in sympy.tensor.tensor
. Should we rewrite replace_with_arrays
?
Metadata
Metadata
Assignees
Labels
No labels