Skip to content
This repository was archived by the owner on Jul 23, 2019. It is now read-only.

Issue with calculating contraction #14

Open
rj-calvin opened this issue Jul 8, 2019 · 1 comment · May be fixed by #15
Open

Issue with calculating contraction #14

rj-calvin opened this issue Jul 8, 2019 · 1 comment · May be fixed by #15

Comments

@rj-calvin
Copy link
Contributor

rj-calvin commented Jul 8, 2019

For some reason the API has it that
equation

Currently, the left hand side yields the correct value while the right hand side sums the diagonal components of the array representing the tensor literally.

However this is only an issue with contractions on a single tensor (not a product of tensors), and when the contraction yields a scalar. Meaning that the calculation of the Ricci tensor is fine, but the Ricci scalar is not.

@rj-calvin
Copy link
Contributor Author

rj-calvin commented Jul 8, 2019

This is an issue with https://github.com/sympy/sympy.

The ~sympy.tensor.tensor.Tensor._extract_data method contracts indices without applying the metric to the arrays in the replacement_dict argument.

@rj-calvin rj-calvin linked a pull request Jul 8, 2019 that will close this issue
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant