rydiqule.solvers.steady_state_solve_stack¶
- rydiqule.solvers.steady_state_solve_stack(eom: ndarray, const: ndarray) ndarray[source]¶
Helper function which returns the solution to the given equations of motion
Solves an equation of the form \(\dot{x} = Ax + b\), or a set of such equations arranged into stacks. Essentially just wraps numpy.linalg.solve(), but included as its own function for modularity if another solver is found to be worth investigating.
- Parameters:
eom (numpy.ndarray) – An square array of shape
(*l,n,n)representing the differential equations to be solved. The matrix (or matrices) A in the above formula.const (numpy.ndarray) – An array or shape
(*l,n)representing the constant in the matrix form of the differential equation. The constant b in the above formula. Stack shape*lmust be consistent with that in theeomargument
- Returns:
A 1xn array representing the steady-state solution of the differential equation
- Return type: