Would it be possible to speed up the computations in state_to_state_transition by taking advantage of the fact that for multiple state-to-state transitions the Gramian has to be calculated and inverted only once? And is a mathematical trick also working when computing optimal control energy? Lastly, does this also work for non-binary states?
See this issue: https://github.com/BassettLab/control_package/issues/22
Would it be possible to speed up the computations in
state_to_state_transition
by taking advantage of the fact that for multiple state-to-state transitions the Gramian has to be calculated and inverted only once? And is a mathematical trick also working when computing optimal control energy? Lastly, does this also work for non-binary states?