[sage-devel] Colomap handling

2009-01-23 Thread Arnaud Bergeron
Recently I made a patch to improve the handling of colormap, which has been merged in 3.3 (http://trac.sagemath.org/sage_trac/ticket/4884) There was some discussion on the ticket (read the comments) which may have confused everybody. I proposed adding a function to the global namespace called cm

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread Bill Hart
Whoops, you didn't mention assembly language. I think I got that mixed up with another conversation. On 23 Jan, 22:48, Bill Hart wrote: > Somehow I screwed up and put the wrong times for the Opteron for giac. > Here are all the 1-d times again: > > FLINT (2.4Ghz Opteron): > > 1d: 0.00018s, 0.005

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread Bill Hart
Here are the times for the other GCD's on Magma on the Opteron 2.4Ghz: 2D: 0.00089s 0.00374s 0.0256s 0.08549s 3D: 0.00185s 0.0069s 0.05491s 4D: 0.006s 0.028s 0.071s I don't have giac times on the Opteron to compare. It would be interesting to see the times. Bill. On 23 Jan, 22:48, Bill Ha

[sage-devel] Re: doctesting __hash__ ?

2009-01-23 Thread William Stein
On Fri, Jan 23, 2009 at 1:03 PM, Robert Bradshaw wrote: > > On Jan 23, 2009, at 12:41 PM, William Stein wrote: > >> On Fri, Jan 23, 2009 at 9:24 AM, Martin Albrecht >> wrote: >>> On Friday 23 January 2009, you wrote: Hi Martin, I don't like the hash doctest changes you introduced

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread mabshoff
On Jan 23, 2:58 pm, Jaap Spies wrote: Hi Jaap, > Alex Ghitza wrote: > > Upgrading from sage-3.3.alpha0 went smoothly and passed all tests except the > > known toy_d_basis.py, on: > > Same here on Fedora 9, Fedora 10 and Ubuntu 8.10 32 bits. Good. Was that an update or a build from scratch?

[sage-devel] Re: upgrade issue

2009-01-23 Thread mabshoff
On Jan 23, 1:51 pm, John Cremona wrote: Hi John, > I tried sage-upgarde from a successful build from source of > 3.3.alpha0.  Seemed to work ok but the banner and version() still say > 3.3.alpha0.  Same after applying the suggested fix > athttp://wiki.sagemath.org/faq. > > I don't mind the b

[sage-devel] Re: doctesting __hash__ ?

2009-01-23 Thread Carl Witty
On Jan 23, 1:03 pm, Robert Bradshaw wrote: > On Jan 23, 2009, at 12:41 PM, William Stein wrote: > > I think we are both wrong.    Doctesting of __hash__ should be done by > > a function: > > >    sage: test.hash(GF(3^4, 'a')) > >    'ok'  # or not raise exception > > > The advantages of doing thi

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread Jaap Spies
Alex Ghitza wrote: > Upgrading from sage-3.3.alpha0 went smoothly and passed all tests except the > known toy_d_basis.py, on: > Same here on Fedora 9, Fedora 10 and Ubuntu 8.10 32 bits. Jaap --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@g

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread Kiran Kedlaya
All tests pass on my Opteron 64-bit RHEL5 box. Kiran On Jan 23, 1:55 pm, mabshoff wrote: > On Jan 23, 10:11 am, Nick Alexander wrote: > > Hi, > > > This credit is incorrect. The patch was reviewed by Martin Albrecht. > > > #2789: Nick Alexander: multivariate polynomials over residue fields of

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread Bill Hart
We ripped the longlong.h out of GMP which has assembly code for this sort of thing. We use precomputed inverses for the modular reduction. On 23 Jan, 19:01, parisse wrote: > > No, in my case the maximum modulus is 2^63 for now on a 64 bit > > machine. > > How do you make multiplication followed

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread Bill Hart
Somehow I screwed up and put the wrong times for the Opteron for giac. Here are all the 1-d times again: FLINT (2.4Ghz Opteron): 1d: 0.00018s, 0.0055s, 0.021s mod-1d: 0.00046s, 0.00419s, 0.00979 Magma (2.4Ghz Opteron): 1d: 0.00168s, 0.01692s and 0.0453s mod-1d: 0.00067s, 0.00981s, 0.0244s Gia

[sage-devel] upgrade issue

2009-01-23 Thread John Cremona
I tried sage-upgarde from a successful build from source of 3.3.alpha0. Seemed to work ok but the banner and version() still say 3.3.alpha0. Same after applying the suggested fix at http://wiki.sagemath.org/faq. I don't mind the banner being wrong as this is only a test build, but how do I know

[sage-devel] Re: binding cddlib: runtime linking troubles

2009-01-23 Thread Robert Bradshaw
Is this C++? If so, one needs a language="c++" in the Extension line. At this point I might see if you can write a simple C program that can call your cdd library which will expose wether or not the issue is with Cython/distutils or the cdd library you're using. - Robert On Jan 23, 2009,

[sage-devel] Re: doctesting __hash__ ?

2009-01-23 Thread Robert Bradshaw
On Jan 23, 2009, at 12:41 PM, William Stein wrote: > On Fri, Jan 23, 2009 at 9:24 AM, Martin Albrecht > wrote: >> On Friday 23 January 2009, you wrote: >>> Hi Martin, >>> >>> I don't like the hash doctest changes you introduced in #4965. >>> They should be >>> >>> sage: hash(GF(3^4),'a') >>> >>

[sage-devel] doctesting __hash__ ?

2009-01-23 Thread William Stein
On Fri, Jan 23, 2009 at 9:24 AM, Martin Albrecht wrote: > On Friday 23 January 2009, you wrote: >> Hi Martin, >> >> I don't like the hash doctest changes you introduced in #4965. >> They should be >> >> sage: hash(GF(3^4),'a') >> >> or >> >> sage: h = hash(GF(3^4),'a') >> >> instead of >> >>

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread John Cremona
Nice debate. I did not know this was there, but now that I do I think I'll start to use it! John On 23 Jan, 19:13, Craig Citro wrote: > > -1 to removing it.  I've used it several times and see no reason at > > all to remove it. > > I use it! Actually in my first notebook. Please don't remove.

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread Craig Citro
> -1 to removing it. I've used it several times and see no reason at > all to remove it. > I use it! Actually in my first notebook. Please don't remove. > Wow, ok. I had no idea people really used it -- I thought it just sat untouched. In that case, I rescind my '+1'. -cc --~--~-~--

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread parisse
> No, in my case the maximum modulus is 2^63 for now on a 64 bit > machine. > How do you make multiplication followed by modular reduction? I don't know how to to that in C (I mean there is no quadruple long or int128_t in gcc?) --~--~-~--~~~---~--~~ To post to thi

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread mabshoff
On Jan 23, 10:11 am, Nick Alexander wrote: Hi, > This credit is incorrect.  The patch was reviewed by Martin Albrecht. > > #2789: Nick Alexander: multivariate polynomials over residue fields of > number fields are broken [Reviewed by Nick Alexander] Oops, which idiot wrote that in the releas

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread Nick Alexander
On 23-Jan-09, at 7:33 AM, William Stein wrote: > > On Fri, Jan 23, 2009 at 7:26 AM, Robert Miller > wrote: >> >>> I've used it several times and see no reason at >>> all to remove it. >> >> Redundancy is one reason I can think of. Is there any functionality >> you can get out of this that you

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread Nick Alexander
This credit is incorrect. The patch was reviewed by Martin Albrecht. #2789: Nick Alexander: multivariate polynomials over residue fields of number fields are broken [Reviewed by Nick Alexander] Nick On 23-Jan-09, at 3:00 AM, mabshoff wrote: > > Hello folks, > > here goes alpha1 with another m

[sage-devel] Re: Sage 3.3.alpha1 released

2009-01-23 Thread Alex Ghitza
Upgrading from sage-3.3.alpha0 went smoothly and passed all tests except the known toy_d_basis.py, on: [ghi...@artin sage]$ uname -a Linux artin 2.6.28-ARCH #1 SMP PREEMPT Sun Jan 18 20:17:17 UTC 2009 i686 Intel(R) Core(TM)2 Duo CPU T9300 @ 2.50GHz GenuineIntel GNU/Linux Cheers, Alex -- Al

[sage-devel] Re: python vs java for scientific computing

2009-01-23 Thread rjf
On Jan 22, 6:26 pm, mhampton wrote: ... > A python/ > cython/javascript spreadsheet for the Sage notebook would be great - > unfortunately I'm not going to write one.  I think it would be hard to > do it right. > > -M. Hampton I have heard that the major competition for Mathematica is not Mapl

[sage-devel] Re: Multivariate GCD

2009-01-23 Thread Bill Hart
On 23 Jan, 07:44, parisse wrote: > > Your timings are surprisingly low. Can you tell me which files perform > > the Z/pZ[x] GCD? I'd be very interested to see your code. > > The division code in Z/pZ is in the file modpoly.cc, lines 1621->1723. > It depends on invmod(int,int) for modular invers

[sage-devel] Re: python vs java for scientific computing

2009-01-23 Thread Harald Schilly
On Jan 23, 3:47 pm, Alfredo Portes wrote: > By the way you may consider using JNA to access native libraries. thx, didn't know about that! --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send e

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread bsdz
I use it! Actually in my first notebook. Please don't remove. On Jan 23, 1:43 pm, Robert Miller wrote: > Does anyone use this module anymore? It seems, well, a little silly... > > sage: P = Primes() > sage: P > Set of all prime numbers: 2, 3, 5, 7, ... > sage: 3 in P > True > sage: 4 in P > Fals

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread William Stein
On Fri, Jan 23, 2009 at 7:26 AM, Robert Miller wrote: > >> I've used it several times and see no reason at >> all to remove it. > > Redundancy is one reason I can think of. Is there any functionality > you can get out of this that you can't just get out of is_prime, > primes, or prime_range? If

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread Robert Miller
> I've used it several times and see no reason at > all to remove it. Redundancy is one reason I can think of. Is there any functionality you can get out of this that you can't just get out of is_prime, primes, or prime_range? --~--~-~--~~~---~--~~ To post to this

[sage-devel] Re: python vs java for scientific computing

2009-01-23 Thread Alfredo Portes
On Fri, Jan 23, 2009 at 5:37 AM, Harald Schilly wrote: > For everything else you should consider JNI (that's the mechanism to > call native C code and how all basic java language features are > implemented) By the way you may consider using JNA to access native libraries. I have used it to acce

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread William Stein
On Fri, Jan 23, 2009 at 5:46 AM, Craig Citro wrote: > >> Does anyone use this module anymore? It seems, well, a little silly... >> >> sage: P = Primes() > > +1 to removing this. -1 to removing it. I've used it several times and see no reason at all to remove it. William --~--~-~--~---

[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread Craig Citro
> Does anyone use this module anymore? It seems, well, a little silly... > > sage: P = Primes() +1 to removing this. -cc --~--~-~--~~~---~--~~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to sage-dev

[sage-devel] sage/sets/primes.py -- Petition to remove old code

2009-01-23 Thread Robert Miller
Does anyone use this module anymore? It seems, well, a little silly... sage: P = Primes() sage: P Set of all prime numbers: 2, 3, 5, 7, ... sage: 3 in P True sage: 4 in P False sage: P.cardinality() +Infinity sage: for p in P: : print p : if p > 20: break : 2 3 5 7 11 13 17 19

[sage-devel] Re: binding cddlib: runtime linking troubles

2009-01-23 Thread Sebastien Barthelemy
>> The example is attached as a patch against sage 3.2.3. I forgot it, sorry. >> As burcin pointed on IRC, this might have something to do with the >> fact that dd_set_global_constant is mangled: >> nm local/lib/libcdd.a | grep dd_set_global_constants >> 0185 T _Z23dd_set_global_constantsv >

[sage-devel] Re: binding cddlib: runtime linking troubles

2009-01-23 Thread William Stein
On Fri, Jan 23, 2009 at 4:19 AM, Sebastien Barthelemy wrote: > > Hello, > > as discussed with sleep deprived guys on IRC, I'm having trouble > binding libcdd.a. I designed a minimalistic example that show my > problem. It builds fine, but fails at sage startup (during import) > with the following

[sage-devel] binding cddlib: runtime linking troubles

2009-01-23 Thread Sebastien Barthelemy
Hello, as discussed with sleep deprived guys on IRC, I'm having trouble binding libcdd.a. I designed a minimalistic example that show my problem. It builds fine, but fails at sage startup (during import) with the following error: ImportError: /usr/local/sage/local/lib/python2.5/site-packages/sag

[sage-devel] Sage 3.3.alpha1 released

2009-01-23 Thread mabshoff
Hello folks, here goes alpha1 with another massive amount of fixes. No details from me since I need to get some sleep, but overall 113 tickets have been fixed in 3.3 for now. Tomorrow's SD12 seesion will concentrate on reviews, so expect another alpha in the next 24 hours. Various build issues ar

[sage-devel] Re: python vs java for scientific computing

2009-01-23 Thread Harald Schilly
On Jan 23, 10:09 am, ahmet alper parker wrote: > Is there someone who has > experience with compiling a java code to native code on an operating > system? the standard java virtual machine by sun already compiles java bytecode to native machine code. this is called "hotspot" compiler and picks t

[sage-devel] Re: python vs java for scientific computing

2009-01-23 Thread ahmet alper parker
What about the compiled java and python benchmarks? Is there someone who has experience with compiling a java code to native code on an operating system? On Fri, Jan 23, 2009 at 4:26 AM, mhampton wrote: > > > On Jan 22, 4:35 pm, Robert Bradshaw > wrote: > > > I pity those who find themselves try