get_linear_system function¶
(Shortest import: from brian2.stateupdaters.exact import get_linear_system)
-
brian2.stateupdaters.exact.
get_linear_system
(eqs, variables)[source]¶ Convert equations into a linear system using sympy.
Parameters: eqs :
Equations
The model equations.
Returns: (diff_eq_names, coefficients, constants) : (list of str,
sympy.Matrix
,sympy.Matrix
)A tuple containing the variable names (
diff_eq_names
) corresponding to the rows of the matrixcoefficients
and the vectorconstants
, representing the system of equations in the form M * X + BRaises
ValueError
- If the equations cannot be converted into an M * X + B form.