[sage-devel] Re: Comparison of vectors is O(n) even in the simple cases

2012-05-08 Thread Simon King
Hi Florent, On 2012-05-08, Florent Hivert florent.hiv...@lri.fr wrote: But it is never called. I'd like to have confirmation that adding to all vectors classes (following sage/structure/element.pyx line 881 (5.0.rc0)) def __richcmp__(left, right, int op): return

Re: [sage-devel] Re: Comparison of vectors is O(n) even in the simple cases

2012-05-08 Thread Florent Hivert
Hi Simon, Removing the offending __richcmp__ in FreeModuleElement seems to solve the problem once for all for all rings but introduce a lot of other problems. What other problems emerge? Actually, I was wrong saying that this solves the problem. The result is much faster but

Re: [sage-devel] Re: Comparison of vectors is O(n) even in the simple cases

2012-05-08 Thread Florent Hivert
Hi Simon, On 2012-05-08, Florent Hivert florent.hiv...@lri.fr wrote: But it is never called. I'd like to have confirmation that adding to all vectors classes (following sage/structure/element.pyx line 881 (5.0.rc0)) def __richcmp__(left, right, int op): return