Re: [sage-devel] Conjugacy classes code

2011-12-06 Thread Florent Hivert
Hi Javier, On Tue, Dec 06, 2011 at 10:12:08AM -0800, javier wrote: > I have uploaded the conjugacy classes code to the trac server: > trac.sagemath.org/sage_trac/ticket/7886 > > All the test passed, but the sage -coverage command complained about a > missing testsuite, so I added one (witho

Re: [sage-devel] Conjugacy classes code

2011-12-06 Thread Florent Hivert
Hi Javier, A quick reply, > I have uploaded the conjugacy classes code to the trac server: > trac.sagemath.org/sage_trac/ticket/7886 > > All the test passed, but the sage -coverage command complained about a > missing testsuite, so I added one (without adding any new test > functions). Muc

[sage-devel] Do we need static libraries for MPIR? - was Cygwin attempt with sage-4.8.alpha3

2011-12-06 Thread kcrisman
> > > -    SAGE_CONF_OPTS="--enable-shared --disable-static" > > > +   # Also build the static library to be used by e.g. ECM: > > > +   # SAGE_CONF_OPTS="--enable-shared --disable-static" > > > +   SAGE_CONF_OPTS="--enable-shared --enable-static" > > > +   # (Further options to 'configure' are add

[sage-devel] Re: Conjugacy classes code

2011-12-06 Thread javier
Hi David, thanks for looking at the code! My reply to you concern below. On Dec 6, 7:35 pm, David Joyner wrote: > Okay. The code seems fine. I have a nagging worry that > you can have slightly different groups G1, G2 (say G2 is > a direct product of G1 with a central element of order 2). > Isn't

Re: [sage-devel] Re: Conjugacy classes code

2011-12-06 Thread David Joyner
On Tue, Dec 6, 2011 at 1:58 PM, javier wrote: > > > On Dec 6, 6:55 pm, David Joyner wrote: >> I guess I am going blind. I don't see a _cmp_ >> inhttp://trac.sagemath.org/sage_trac/attachment/ticket/7886/trac_7886_c... >> Which line is it? > > Oops! > My bad, forgot to add the new conjugacy_class

[sage-devel] Re: Conjugacy classes code

2011-12-06 Thread javier
On Dec 6, 6:55 pm, David Joyner wrote: > I guess I am going blind. I don't see a _cmp_ > inhttp://trac.sagemath.org/sage_trac/attachment/ticket/7886/trac_7886_c... > Which line is it? Oops! My bad, forgot to add the new conjugacy_classes.py file to the hg repository. I uploaded it in the patch

Re: [sage-devel] Re: Conjugacy classes code

2011-12-06 Thread David Joyner
On Tue, Dec 6, 2011 at 1:39 PM, javier wrote: > Hi David, > > On Dec 6, 6:29 pm, David Joyner wrote: >> >> Where is it? Is it in one of the patches posted to the trac ticket? > > Yes, it is in trac_7886_conjugacy_classes.patch I guess I am going blind. I don't see a _cmp_ in http://trac.sagemat

[sage-devel] Re: Conjugacy classes code

2011-12-06 Thread javier
Hi David, On Dec 6, 6:29 pm, David Joyner wrote: > > Where is it? Is it in one of the patches posted to the trac ticket? Yes, it is in trac_7886_conjugacy_classes.patch Cheers, Javier -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send a

Re: [sage-devel] Conjugacy classes code

2011-12-06 Thread David Joyner
On Tue, Dec 6, 2011 at 1:12 PM, javier wrote: > Dear Sage developers, > > I have uploaded the conjugacy classes code to the trac server: > trac.sagemath.org/sage_trac/ticket/7886 > > All the test passed, but the sage -coverage command complained about a > missing testsuite, so I added one (without

[sage-devel] Conjugacy classes code

2011-12-06 Thread javier
Dear Sage developers, I have uploaded the conjugacy classes code to the trac server: trac.sagemath.org/sage_trac/ticket/7886 All the test passed, but the sage -coverage command complained about a missing testsuite, so I added one (without adding any new test functions). Much to my surprise, the t

[sage-devel] Re: Google search now plots functions

2011-12-06 Thread kcrisman
On Dec 6, 12:43 am, Jason Grout wrote: > On 12/5/11 11:12 PM, Rob Beezer wrote: > > > Nice.  The ability to trace points on the curve so easily would be > > *very* welcome. > > I don't think it would be very difficult to write a jsxgraph or flot > backend to matplotlib to automatically generate

[sage-devel] Re: Problem calling a base-class cached method from an overridden derived class cached method

2011-12-06 Thread Simon King
Hi Javier, On 6 Dez., 11:33, javier wrote: > On a second thought, if I cache the method in B as well, when I call > the > (uncached) method in A the result will be cached in B, right? Yes, this is what I was going to suggest, but apparently our messages crossed. Best regards, Simon -- To post

[sage-devel] Re: Problem calling a base-class cached method from an overridden derived class cached method

2011-12-06 Thread Simon King
Hi Javier, On 6 Dez., 09:43, javier wrote: > > It is not clear to me why you would try to do A.foo(E) when you can > > easily do E.foo(). > > Because in my original problem, I am trying to over-ride the > inefficient base class method with a smarter version. However, the > smarter version can fai

[sage-devel] Re: Problem calling a base-class cached method from an overridden derived class cached method

2011-12-06 Thread javier
On a second thought, if I cache the method in B as well, when I call the (uncached) method in A the result will be cached in B, right? So something like this will work: sage: class A: : @cached_method : def foo(self): : print "A.foo" : sage: class B(A): : @

[sage-devel] Re: Problem calling a base-class cached method from an overridden derived class cached method

2011-12-06 Thread javier
Hi SImon, On 6 dic, 00:25, Simon King wrote: > I think that this is the wrong conclusion. It is easily possible to > call the cached method that is inherited from the base class. Also, it > is "class", not "category", by the way: The category framework is not > involved here. True, I obviously m