[sage-support] Re: Performance of the Singular interface

2007-11-06 Thread Simon King
Dear Team, 40 minutes ago, i was sending a mail for this thread, using my usual mail account rather than this web interface, since i wanted to attach the log files. As subject, i took "Performance of the Singular interface", hence, the subject of the thread. But apparently it did not arrive. www:

[sage-support] Re: Performance of the Singular interface

2007-11-06 Thread Simon King
Dear Martin, On Nov 5, 11:27 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: > > So, i could use weightKB(G, d, ) 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. > > But this one returns a

[sage-support] Re: Performance of the Singular interface

2007-11-06 Thread Martin Albrecht
> I was posting a Singular log. Do such logs (one for the slow and one > for the quick version of my program) suffice to work on the problem? Yes, if it is a complete log then this should be enough. I.e. if I can replay that log to Singular and get the same behavior then this should be sufficie

[sage-support] Re: Performance of the Singular interface

2007-11-06 Thread Simon King
Dear Martin, you wrote: > would you be willing to fill a bug report about this with our trac > server?http://trac.sagemath.org? If you don't have an account William will > (probably) provide one for you. I would do it (and have no account). > An explicit way to reproduce the bug > would certai

[sage-support] Re: Performance of the Singular interface

2007-11-05 Thread mabshoff
On Nov 5, 11:27 pm, Martin Albrecht <[EMAIL PROTECTED]> wrote: Hello, > > 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

[sage-support] Re: Performance of the Singular interface

2007-11-05 Thread Martin Albrecht
> 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, ) via the > interface and g

[sage-support] Re: Performance of the Singular interface

2007-11-05 Thread Martin Albrecht
On Sunday 04 November 2007, Simon King wrote: > Dear sage-team, > > > Perhaps the huge number of singular objects 'sage' is the problem? > > Would step (*) be a problem if there are too many objects? > > > > Do you think it would help if i'd do the whole thing via 'singular.eval', > > assigning na

[sage-support] Re: Performance of the Singular interface

2007-11-05 Thread Simon King
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

[sage-support] Re: Performance of the Singular interface

2007-11-04 Thread Simon King
Dear sage-team, > Perhaps the huge number of singular objects 'sage' is the problem? > Would step (*) be a problem if there are too many objects? > > Do you think it would help if i'd do the whole thing via 'singular.eval', > assigning names to the (few) essential singular objects myself? I trie

[sage-support] Re: Performance of the Singular interface

2007-11-04 Thread Martin Albrecht
Simon, could you send me/us an example to reproduce this? I don't really buy mabshoff's remark about quadratic runtime of the pexpect interface here because the input and output are very very little. Btw. mabshoff why is it quadratic anyway? Also, getting this functionality into libSINGULAR i

[sage-support] Re: Performance of the Singular interface

2007-11-04 Thread mabshoff
On Nov 4, 2:49 pm, Simon King <[EMAIL PROTECTED]> wrote: > Dear John, Hi Simon, > > On Nov 4, 1:45 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > > > Is it recomputing a Grobner basis for the new ideal? That could be slow. > > No, it is simply > > > > singular.eval( I.name()+'[%d]' = '%(sz

[sage-support] Re: Performance of the Singular interface

2007-11-04 Thread Simon King
Dear John, On Nov 4, 1:45 pm, "John Cremona" <[EMAIL PROTECTED]> wrote: > Is it recomputing a Grobner basis for the new ideal? That could be slow. No, it is simply > > singular.eval( I.name()+'[%d]' = '%(sz)+p.name()) where sz is ncols(I)+1, and p is a polynomial. Of course, that line of c

[sage-support] Re: Performance of the Singular interface

2007-11-04 Thread John Cremona
Is it recomputing a Grobner basis for the new ideal? That could be slow. John On 04/11/2007, Simon King <[EMAIL PROTECTED]> wrote: > > Dear sage-support team, > > i have a question on how to do a very simple singular operation (via > the interface) in the quickest way. > > Suppose you have an i