Hi Aaron,

Sorry for the late reply.
Yes, the lin_expr_coeffs function can be extended to accept a linear
equation system.
Feel free, anyone, to take it and make a PR. If I find some time I can
do it, but that will not happen soon...

On Fri, Oct 11, 2013 at 6:20 PM, Aaron Meurer <[email protected]> wrote:
> That's useful, we should put that in SymPy, though I personally think
> it would be more useful if it just took a system and returned a
> matrix.
>
> Aaron Meurer
>
> On Fri, Oct 11, 2013 at 4:59 AM, Cristóvão Duarte Sousa
> <[email protected]> wrote:
>> 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.
>
> --
> You received this message because you are subscribed to a topic in the Google 
> Groups "sympy" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/sympy/Wqs1OhTBexg/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

-- 
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