You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is related to #39, and seen in relation with #35. A solution is to construct an internal _update_hamiltonian-method which takes in the current time and an amplitudes object (either an AmplitudeContainer or an OACCVector) instead of an array. We can then let update_hamiltonian be the exposed function taking in an array, constructing the amplitudes from the template and passing this in to _update_hamiltonian. This lets __call__ and other functions call _update_hamiltonian directly thus limiting the number of times the amplitudes needs to be constructed from an array.
The text was updated successfully, but these errors were encountered:
This is related to #39, and seen in relation with #35. A solution is to construct an internal
_update_hamiltonian
-method which takes in the current time and an amplitudes object (either anAmplitudeContainer
or anOACCVector
) instead of an array. We can then letupdate_hamiltonian
be the exposed function taking in an array, constructing the amplitudes from the template and passing this in to_update_hamiltonian
. This lets__call__
and other functions call_update_hamiltonian
directly thus limiting the number of times the amplitudes needs to be constructed from an array.The text was updated successfully, but these errors were encountered: