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
feedbax.dynamics.AbstractDynamicalSystem is a generic of StateT. Each subclass must define a vector field that returns the time derivatives of each array in a state PyTree.
defvector_field(
self,
t: float,
state: StateT,
input: PyTree[Array],
) ->StateT:
"""Returns the time derivatives of the system's states."""
...
The return type StateT is more or less correct: the return value will have the same PyTree structure as state, and -- because the time derivative is scalar -- the same array shapes as well.
This seems fine to me, but perhaps there is a better way to make it explicit when we are passing around derivatives.
The text was updated successfully, but these errors were encountered:
feedbax.dynamics.AbstractDynamicalSystem
is a generic ofStateT
. Each subclass must define a vector field that returns the time derivatives of each array in a state PyTree.The return type
StateT
is more or less correct: the return value will have the same PyTree structure asstate
, and -- because the time derivative is scalar -- the same array shapes as well.This seems fine to me, but perhaps there is a better way to make it explicit when we are passing around derivatives.
The text was updated successfully, but these errors were encountered: