Re: [sage-devel] Re: graph theory: refactor implementation of spanning tree algorithms

2010-12-11 Thread Nathann Cohen
Hello everybody !!! My question on sphinx-dev was finally answered : it sounds possible to have one page per method ! :-) http://groups.google.com/group/sphinx-dev/browse_thread/thread/41a2fc455ff98d6e?hl=en Nathann -- To post to this group, send an email to sage-devel@googlegroups.com To unsu

[sage-devel] Question on attribute lookup

2010-12-11 Thread Simon King
Hi! If an attribute of an element is requested, and this attribute is not directly available, then the attribute lookup in Element.__getattr__ is rather complicated: Using sage.structure.parent.getattr_from_other_class, it is tested whether the attribute may be available from the element class of

Re: [sage-devel] Re: using a notebook function in sage interactive shell

2010-12-11 Thread Jeroen Demeyer
On 2010-12-11 14:10, G Hahn wrote: > Thanks for the link and your help! If avoiding the preparser just > consists in putting a "%python" in the first line and starting the > timing from another cell, then I already did that. But still the > notebook is quite slow in my opinion. > Instead, I saved t

[sage-devel] Re: using a notebook function in sage interactive shell

2010-12-11 Thread G Hahn
Thanks for the link and your help! If avoiding the preparser just consists in putting a "%python" in the first line and starting the timing from another cell, then I already did that. But still the notebook is quite slow in my opinion. Instead, I saved the code as a .py file and loaded it via "load

[sage-devel] Re: sage for newbies "sage days"

2010-12-11 Thread Niles
I'm interested in this too, especially bullet point two. -Niles On Dec 9, 11:37 pm, William Stein wrote: > Hi Sage-devel, > > If you would be interested in organizing, being involved in, > attending, getting your friends to attend, etc., a "Sage for Newbies" > Sage Days, please send me an email

[sage-devel] Re: How is comparison implemented in Cython?

2010-12-11 Thread Simon King
Hi! I think I understood how - in the concrete example - comparison works: We have two elements v,w of a free module M that are defined over the same base field. Actually v.parent() is a sub-module S of M, while w.parent() is M. Now, FreeModuleElement.__richcmp__ (which is not the default metho of

Re: [sage-devel] Re: Goto Blas.

2010-12-11 Thread Mike Witt
I also can't build atlas on my (fairly) new but low-powered portable. So, I second that (although I admit I don't understand what all the issues are that might be involved.) -Mike On 12/10/2010 09:50:06 PM, Dima Pasechnik wrote: on a 4-years old x86 laptop I have, I usually just cannot build At

[sage-devel] Re: matrix_plot and graphics_array weirdness

2010-12-11 Thread Dan Drake
On Fri, 10 Dec 2010 at 05:20PM +0900, Dan Drake wrote: > I'm working on a singular value decomposition demonstration (you may > have seen my dumb questions on sage-support) and I've run into some > problems with matrix_plot and graphics_array. They don't work very well > together: > > https://sage

[sage-devel] Re: How is comparison implemented in Cython?

2010-12-11 Thread Simon King
PS: On 11 Dez., 09:06, Simon King wrote: > A technical question: > > Assume that one has a cdef'd class C derived from Element. Assume that > one defines >   cpdef __cmp__ > for that class. I just tried, and it won't work: Cython complains that special methods must be declared with def, not cdef

[sage-devel] Re: How is comparison implemented in Cython?

2010-12-11 Thread Simon King
Hi Robert, David and Jason, I think a gradual transition should be possible in one way or the other. Namely: On 11 Dez., 01:00, Robert Bradshaw wrote: > > On 10 Dez., 19:51, Robert Bradshaw > > wrote: > Yes, and our _cmp_ and _richcmp_ would coerce for you, like all the > other binary operation