What should be the signature of the rhs
Opened this issue · 0 comments
hgrecco commented
There are two right-hand side functions
user_rhs
: provided by the user to theSolver
step_rhs
: provided by theSolver
tostep
There are (at least) 3 different signatures:
def simple(t: float, y: ndarray_1d) -> ndarray_1d:
pass
def with_args(t: float, y: ndarray_1d, *args) -> ndarray_1d:
pass
def with_p(t: float, y: ndarray_1d, p: ndarray) -> ndarray_1d:
pass
- Might not need recompilation of
step
(in the future)simple
with_p
(if p is always the same, i.e. a 1d vector)
- Provide greater flexibility
with_args
with_p