Hi Mateusz,

On Apr 18, 2:06 pm, Ben Goodrich <[email protected]> wrote:
> Mateusz's suggestions are working well for me, just ugly.  And it is
> still slow and RAM-hungry when you convert a big sdp polynomial back
> into basic SymPy form at the end, but maybe your work on expand / core
> will help a bit with that.

Is there an efficient way to convert from the sdp representation to a
high-level polynomial class instead of basic?

In other words, rather than this (which is slow and RAM-hungry because
of the SymPy basic arithmetic underneath)

fgh = basic_from_dict(dict(FGH), *gens)

something like this

fgh = Poly(dict(FGH), domain = 'QQ', *gens)

which does not throw an error but fgh is the zero polynomial instead
of the actual polynomial.

Thanks,
Ben

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to