[sage-devel] Overwriting the modulo operator

2012-07-19 Thread Thomas
Hello, I don't know if this is the right place for this question, but all other discussion do focus more on mathematical issues rather than on python issues. I have my own implementation of a lattice class, which is able to perform the closest point search on a vector. In addition it can do th

Re: [sage-devel] "hg blame" with Sage versions?

2012-07-19 Thread Jeroen Demeyer
On 2012-07-20 07:27, P Purkayastha wrote: > You do add statements like "Added tag ". That string can be > searched for in the hg log. Yes, but those don't show up when looking at the log of a specific file: $ hg log sage/foo/bar.py -- -- To post to this group, send an email to sage-devel@google

Re: [sage-devel] "hg blame" with Sage versions?

2012-07-19 Thread P Purkayastha
On Friday, July 20, 2012 3:13:44 AM UTC+8, Jeroen Demeyer wrote: > > On 2012-07-19 21:10, Dan Drake wrote: > > Just a thought: it would be nice if we could somehow get "hg blame" to > > annotate the file using Sage versions. Knowing that the line was changed > > in changeset 17129 is useful, b

Re: [sage-devel] "hg blame" with Sage versions?

2012-07-19 Thread Jeroen Demeyer
On 2012-07-19 21:10, Dan Drake wrote: > Just a thought: it would be nice if we could somehow get "hg blame" to > annotate the file using Sage versions. Knowing that the line was changed > in changeset 17129 is useful, but what I *really* wanted to know was the > first released version of Sage (incl

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Rob Beezer
On Thursday, July 19, 2012 8:47:20 AM UTC-7, Nathann Cohen wrote: > > If nobody needs it before I will probably write the patch when I am back > from traveling, something around mid september. Cool, Cool, Cool ! :-) > > Dear Nathan, It'd sure be great to have automorphism groups of gr

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Rob Beezer
Thanks everyone for your helpful posts, which came in overnight. We have the classical groups (GL, SL,...) from GAP as groups of matrices (in a natural way) and we have the projective versions (PGL, PSL,...) from GAP as permutation groups. Testing indicates you cannot switch it around (project

[sage-devel] "hg blame" with Sage versions?

2012-07-19 Thread Dan Drake
Just a thought: it would be nice if we could somehow get "hg blame" to annotate the file using Sage versions. Knowing that the line was changed in changeset 17129 is useful, but what I *really* wanted to know was the first released version of Sage (including alphas, beta, release candidates) includ

Re: [sage-devel] problems compiling sage-5.2.rc0 en debian wheezy+some sid amd64

2012-07-19 Thread Jeroen Demeyer
This is most likely a bug in GCC. Could you try to install the package http://boxen.math.washington.edu/home/jdemeyer/spkg/gcc-4.7.1.spkg and compile again? This is to check whether using vanilla gcc-4.7.1 (as opposed to Debian's) works. -- -- To post to this group, send an email to sage-devel@

Re: [sage-devel] -1 % 2 returns -1 in sage library .pyx file ??

2012-07-19 Thread Robert Bradshaw
On Thu, Jul 19, 2012 at 10:50 AM, Sébastien Labbé wrote: > Hi sage-devel, > > Using sage-5.0, it appears that (-1 % 2) gets different values if it is in a > python file (=1), in a attached cython file (=1) or in a cython file in the > sage tree (= -1) ! > > Add the following three lines to sage/co

[sage-devel] Re: problems compiling sage-5.2.rc0 en debian wheezy+some sid amd64

2012-07-19 Thread Kjetil brinchmann Halvorsen
Followup: hetre are the relevant PARI diff-files: linear-dyn.dif: *** ../src/test/64/linear 2012-02-11 06:57:38.0 -0300 --- gp.out 2012-07-18 20:21:43.0 -0400 *** *** 685,696 ? vecsort(vector(17,x,5*x%17)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,

[sage-devel] -1 % 2 returns -1 in sage library .pyx file ??

2012-07-19 Thread Sébastien Labbé
Hi sage-devel, Using sage-5.0, it appears that (-1 % 2) gets different values if it is in a python file (=1), in a attached cython file (=1) or in a cython file in the sage tree (= -1) ! Add the following three lines to sage/combinat/partition.py : +aaa = -1 +tmp = aaa % 2 +print "In sage/comb

[sage-devel] problems compiling sage-5.2.rc0 en debian wheezy+some sid amd64

2012-07-19 Thread Kjetil brinchmann Halvorsen
Hello! I definedexport SAGE_CHECK="yes" and then typed make. result: . . . real104m51.462s user132m19.104s sys 5m54.034s Error building Sage. Problem wher PARI. following is that logfile: --

[sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Keshav Kini
Nathann Cohen writes: >> Wasn't this supposed to be implemented by trac #10335? >> http://trac.sagemath.org/sage_trac/ticket/10335 > > Ahem :-P > > Then it's just that Graph.automorphism_group does not know it. And it > is trivial to update it then. Nice !! And thanks for the > tip !!

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Nathann Cohen
> Wasn't this supposed to be implemented by trac #10335? > http://trac.sagemath.org/sage_trac/ticket/10335 Ahem :-P Then it's just that Graph.automorphism_group does not know it. And it is trivial to update it then. Nice !! And thanks for the tip !! If nobody needs it before I will p

[sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Keshav Kini
Nathann Cohen writes: > (and if I may interrupt, we also really need to be able to deal with > permutation groups on something *different* from 1...n, which is > GAP's choice. > And I know that I am the first one to complain about labels instead > of integers when it comes to a graph's vertices. >

[sage-devel] Re: patch 'failed to synchronize metadata'

2012-07-19 Thread Ben Hutz
I don't think I'm copying or moving the file. Below is the info from the .patch file for ell_point.py. Also, there is only one machine that is getting this error. diff --git a/sage/schemes/elliptic_curves/ell_point.py b/sage/schemes/elliptic_curves/ell_point.py --- a/sage/schemes/elliptic_curv

[sage-devel] Re: patch 'failed to synchronize metadata'

2012-07-19 Thread Volker Braun
Your patch wants to copy or move sage/schemes/elliptic_curves/ell_point.py but can't for some reason. Does the source exist and is the destination writeable? On Thursday, July 19, 2012 8:30:27 AM UTC-4, Ben Hutz wrote: > > I have someone testing one of my patches and > > hg qpush -v > > retur

[sage-devel] Re: Problems building farey_symbol.pyx on Cygwin

2012-07-19 Thread Jean-Pierre Flori
I'll do when I'm finished, for the moment, I'll just keep track of the progress on the wiki page. Hopefully there is only one problematic file left: expression.pyx. I've looked into this all night long but failed to solve the problem. g++ complains about a template instantiation (parse error, bla

[sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Nathann Cohen
(and if I may interrupt, we also really need to be able to deal with permutation groups on something *different* from 1...n, which is GAP's choice. And I know that I am the first one to complain about labels instead of integers when it comes to a graph's vertices. And I know that it is a nightma

[sage-devel] patch 'failed to synchronize metadata'

2012-07-19 Thread Ben Hutz
I have someone testing one of my patches and hg qpush -v returned the error failed to synchronize metadata for "sage/schemes/elliptic_curves/ell_point.py" I have no idea what might cause this and couldn't find any old topics about it. What might cause a failure like this and/or how could I

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Javier López Peña
On Thursday, July 19, 2012 9:52:26 AM UTC+1, Dima Pasechnik wrote: > > let me nitpick first by saying that in group theory > "presentation" means "presentation by generators and > relations" whereas you mean a (linear) "representation". > Fine, maybe I should have use "realization" or "imploement

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Nicolas Borie
Le 19/07/2012 11:17, Simon King a écrit : Hi! On 2012-07-19, Dima Pasechnik wrote: let me nitpick first by saying that in group theory=20 "presentation" means "presentation by generators and relations" whereas you mean a (linear) "representation". In this way of thinking, the most compact way

[sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Simon King
Hi! On 2012-07-19, Dima Pasechnik wrote: > let me nitpick first by saying that in group theory=20 > "presentation" means "presentation by generators and > relations" whereas you mean a (linear) "representation". > > In this way of thinking, the most compact way to represent Z_n is by > generators

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Dima Pasechnik
On Thursday, 19 July 2012 15:37:32 UTC+8, Javier López Peña wrote: > > I understand that from some point of view mixing groups and > their representations is a bad idea, but many groups are naturally > defined as transformation groups and using a matrix presentation > is just as natural as descri

Re: [sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread Minh Nguyen
On Thu, Jul 19, 2012 at 5:46 PM, charles Bouillaguet wrote: > This is getting closer! > > Downloading packages from > 'http://boxen.math.washington.edu/home/release/sage-5.2.rc0//spkg'. > Reading package lists > 404 Error: Package server > 'http://boxen.math.washington.edu/home/release/sage-5.

Re: [sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread charles Bouillaguet
>> The command >> >> $ sage -upgrade > > More specifically: > > sage --upgrade http://boxen.math.washington.edu/home/release/sage-5.2.rc0/ This is getting closer! Downloading packages from 'http://boxen.math.washington.edu/home/release/sage-5.2.rc0//spkg'. Reading package lists 404 Error: Pac

Re: [sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread Jeroen Demeyer
On 2012-07-19 09:42, Minh Nguyen wrote: > On Thu, Jul 19, 2012 at 5:36 PM, charles Bouillaguet > wrote: >> Thanks for the link. But isn't there any way to update my existing >> SAGE installation without downloading the whole 300+ mb archive (and >> recompiling everything, which takes a while)? Lik

Re: [sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread Minh Nguyen
On Thu, Jul 19, 2012 at 5:36 PM, charles Bouillaguet wrote: > Thanks for the link. But isn't there any way to update my existing > SAGE installation without downloading the whole 300+ mb archive (and > recompiling everything, which takes a while)? Like, an equivalent of > sage -upgrade, or hg pull

Re: [sage-devel] Re: Matrix groups from GAP

2012-07-19 Thread Javier López Peña
I understand that from some point of view mixing groups and their representations is a bad idea, but many groups are naturally defined as transformation groups and using a matrix presentation is just as natural as describing them by permutations, or even more so. Not to mention the huge size som

Re: [sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread Minh Nguyen
Hi Charles, On Thu, Jul 19, 2012 at 5:28 PM, charles Bouillaguet wrote: > I know this must sound like a pretty stupid question, but how do I get > sage 5.2rc0, if only just to rebase a patch I wrote for an earlier > version against it? There must be something obvious I'm missing... Under the "Do

[sage-devel] How to... get 5.2rc0 ?

2012-07-19 Thread charles Bouillaguet
Hi all, I know this must sound like a pretty stupid question, but how do I get sage 5.2rc0, if only just to rebase a patch I wrote for an earlier version against it? There must be something obvious I'm missing... Thanks, --- Charles Bouillaguet -- -- To post to this group, send an email to sag