utils.solver.validate_initial_state
utils.solver.validate_initial_state(
y0,
integrated_state_vars,
state_variables_names,
)Validate and normalize the initial state vector.
Parameters
Returns
y0_arr :ndarray-
Validated, flattened float array.
Raises
: ValueError-
If the length of
y0is inconsistent with the declared state variable counts.