Hi Aaron,

I've found Expr.as_coefficients_dict() method useful for that, although I 
had to workaround constant and single variable expressions.

Check the function lin_expr_coeffs (
https://github.com/cdsousa/PyLMI-SDP/blob/master/lmi_sdp/lm.py#L27) of my 
PyLMI-SDP package,
to see how I used it.

On Friday, October 11, 2013 1:49:14 AM UTC+1, Aaron Meurer wrote:
>
> Is there a function in SymPy that makes it easy to convert from a 
> system of linear equations in symbolic form to a Matrix? I'm asking 
> because solve_linear_system takes a Matrix as input. 
>
> Aaron Meurer 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to