Skip to content
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

Make use of symmetries to save on compute time. #6

Open
spacetimeengineer opened this issue Jan 14, 2019 · 2 comments
Open

Make use of symmetries to save on compute time. #6

spacetimeengineer opened this issue Jan 14, 2019 · 2 comments

Comments

@spacetimeengineer
Copy link
Owner

The Connection, Riemann, Ricci, Stress and Metric objects all exhibit symmetry. These should be utilized so that less computations are required.

@spacetimeengineer
Copy link
Owner Author

This is a big deal, even though many of the redundant calculations were removed making this 100x faster, currently there are other efficiencies which can be extracted...

Riemann - only 20 independent components
Currently computes 256.

Ricci - only 10 independent components
Currently computes 16

Connection - only 40? I think
Currently computes 64.

These would represent major upgrades.

@spacetimeengineer
Copy link
Owner Author

Each optimization will be broken into two parts.

1.) Know which components should be calculated; so for Riemann there are only 20 we want to calculate.
2.) Use setting functions to copy the calculated coefficients to the appropriate elements of the tensor. This will be some kind of wrapper function which explicitly names the appropriate coefficients to be copied. This will replace "set all coefficients" type functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant