Hi, > fgh = Poly(dict(FGH), domain = 'QQ', *gens)
the above should read Poly(dict(FGH), *gens, domain='ZZ') (or domain='QQ' if you used the rational field in previous steps). On 18 April 2010 14:33, Ben Goodrich <goodrich....@gmail.com> wrote: > Hi Mateusz, > > On Apr 18, 2:06 pm, Ben Goodrich <goodrich....@gmail.com> 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 sy...@googlegroups.com. > To unsubscribe from this group, send email to > sympy+unsubscr...@googlegroups.com <sympy%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > > Mateusz -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sy...@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.