Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nguigs
Copy link
Collaborator

@nguigs nguigs commented Dec 16, 2021

@ninamiolane ninamiolane marked this pull request as draft December 17, 2021 11:30
def step(state):
position, momentum = state
dq, _ = cls.symp_grad(hamiltonian)(state)
y = gs.array([position + dq, momentum])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be:

y = gs.array([position + step_size * dq, momentum])

(that fixed my wrong results when integrating the Hamiltonian eq.'s in the SubRiemannianMetric class)

@nguigs
Copy link
Collaborator Author

nguigs commented Feb 28, 2022

This was used by @mortenapedersen in #1237 and related PRs and is not meant to be merged.

@nguigs nguigs closed this Feb 28, 2022
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

Successfully merging this pull request may close these issues.

2 participants