Dear sage-support team,
this is another questions on how to use the Singular interface in an
efficient way; so i hope it is ok to use the same thread.
Let G be some Gröbner basis, obtained with Singular (via the
interface). I'd like to have a list comprising the exponent vector (as
a python list/tuple of integers) of each standard monomial for G, in a
fixed weighted degree d.
So, i could use weightKB(G, d, <intvec of degree weights>) via the
interface and get the exponent vectors from there. But this involves a
lot of communication between Sage and Singular and therefore is slow.
Do you have hints how to get the data in the quickest way? E.g.,
Michael wrote something about the interface behaving quadratic. Does
that mean it is better to send many small and simply structured data
packages through the interface, rather than sending few huge and
complicated data packages?
weightKB is in Singular's standard.lib, hence, is interpreted code. I
thought it might be worth-while to implement the same thing in cython
(hence, compiled), but on the other hand, in order to do so one would
need to send information on the leading monomials of G from Singular
to Sage, which, again, is slow.
Yours
Simon
--~--~---------~--~----~------------~-------~--~----~
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/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---