-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
replace_with_arrays
is too picky about up/down indices
#2
Comments
This is a syntax issue, this seems to work just fine: replace_with_arrays(A(i)*A(j)*field.metric(-i,-j), Dict(A(-i) => [0, 1], field => [1 0; 0 1]) ) Still, should we modify |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
replace_with_arrays
has sufficient information to work in cases like:This function should internally know that
field.metric(-i,-j)
is justinv([1 0; 0 1])
, and thatA(i)
is justA(-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 rewritereplace_with_arrays
?The text was updated successfully, but these errors were encountered: