Re: [Numpy-discussion] The "NumPy" Cython release + tutorial

2008-08-21 Thread Fernando Perez
Hey Dag, On Wed, Aug 20, 2008 at 1:18 PM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > Cython just had a release, and amongst the new features are efficient > NumPy array indexing for integers, real floats and Python objects. > > You can get it at http://cython.org > > For those new to Cython

Re: [Numpy-discussion] Revisiting numpy/scipy on 64 bit OSX

2008-08-21 Thread Stéfan van der Walt
2008/8/21 Stéfan van der Walt <[EMAIL PROTECTED]>: > I currently have "Solaris 10 SPARC" reserved for you. Would you like > another one for MacOSX 64? I have re-activated the configuration for Solaris 10 SPARC. Regards Stéfan ___ Numpy-discussion maili

Re: [Numpy-discussion] Revisiting numpy/scipy on 64 bit OSX

2008-08-21 Thread Stéfan van der Walt
2008/8/21 Michael Abshoff <[EMAIL PROTECTED]>: > Stéfan van der Walt wrote: >> 2008/8/21 Michael Abshoff <[EMAIL PROTECTED]>: >>> William Stein is at Scipy 08 and there seems to be at least some >>> interest in 64 bit OSX binaries. If anyone wants one let me know and I >>> can put one together once

Re: [Numpy-discussion] The "NumPy" Cython release + tutorial

2008-08-21 Thread Jarrod Millman
On Wed, Aug 20, 2008 at 1:18 PM, Dag Sverre Seljebotn <[EMAIL PROTECTED]> wrote: > Cython just had a release, and amongst the new features are efficient > NumPy array indexing for integers, real floats and Python objects. Excellent. Thanks for working on this. -- Jarrod Millman Computational In

Re: [Numpy-discussion] Revisiting numpy/scipy on 64 bit OSX

2008-08-21 Thread Michael Abshoff
Stéfan van der Walt wrote: > 2008/8/21 Michael Abshoff <[EMAIL PROTECTED]>: >> William Stein is at Scipy 08 and there seems to be at least some >> interest in 64 bit OSX binaries. If anyone wants one let me know and I >> can put one together once Scipy 0.7 and Numpy 1.1.2 are out. > > There is sti

Re: [Numpy-discussion] Revisiting numpy/scipy on 64 bit OSX

2008-08-21 Thread Stéfan van der Walt
2008/8/21 Michael Abshoff <[EMAIL PROTECTED]>: > William Stein is at Scipy 08 and there seems to be at least some > interest in 64 bit OSX binaries. If anyone wants one let me know and I > can put one together once Scipy 0.7 and Numpy 1.1.2 are out. There is still interest in having a 64-bit OSX b

Re: [Numpy-discussion] The "NumPy" Cython release + tutorial

2008-08-21 Thread Joris De Ridder
On 20 Aug 2008, at 22:18 , Dag Sverre Seljebotn wrote: > Cython just had a release, and amongst the new features are efficient > NumPy array indexing for integers, real floats and Python objects. > > You can get it at http://cython.org > > For those new to Cython, I've written a tutorial specific

[Numpy-discussion] Revisiting numpy/scipy on 64 bit OSX

2008-08-21 Thread Michael Abshoff
Hi, I have been playing with 64 bit numpy/scipy on OSX 10.5 Intel again. I thought everything worked after the last time we discussed this, but I noticed that I had Scipy import failures in for example optimize since the gfortran I used creates 32 bit code per default. So I build a gcc 4.2.4 o

Re: [Numpy-discussion] first post, simple questions

2008-08-21 Thread R. Bastian
On Thu, 21 Aug 2008 10:40:47 -0700 (PDT) Prashant Saxena <[EMAIL PROTECTED]> wrote: > Hi, > > numpy rocks!!! > > import numpy > linsp = numpy.linspace > red = linsp(0, 255, 50) > green = linsp(125, 150, 50) > blue = linsp(175, 255, 50) > > array's elements are float. How do I convert them into

Re: [Numpy-discussion] first post, simple questions

2008-08-21 Thread Zachary Pincus
> import numpy > linsp = numpy.linspace > red = linsp(0, 255, 50) > green = linsp(125, 150, 50) > blue = linsp(175, 255, 50) > > array's elements are float. How do I convert them into integer? > > I need to build a new array from red, green, blue. like this: > > [[ red[0], green[0], blue[0] ], > [

Re: [Numpy-discussion] first post, simple questions

2008-08-21 Thread Pierre GM
On Thursday 21 August 2008 13:40:47 Prashant Saxena wrote: > Hi, > > numpy rocks!!! > > import numpy > linsp = numpy.linspace > red = linsp(0, 255, 50) > green = linsp(125, 150, 50) > blue = linsp(175, 255, 50) > > array's elements are float. How do I convert them into integer? Use .astype(int) r

Re: [Numpy-discussion] first post, simple questions

2008-08-21 Thread Keith Goodman
On Thu, Aug 21, 2008 at 10:40 AM, Prashant Saxena <[EMAIL PROTECTED]> wrote: > Hi, > > numpy rocks!!! > > import numpy > linsp = numpy.linspace > red = linsp(0, 255, 50) > green = linsp(125, 150, 50) > blue = linsp(175, 255, 50) > > array's elements are float. How do I convert them into integer? >

[Numpy-discussion] first post, simple questions

2008-08-21 Thread Prashant Saxena
Hi, numpy rocks!!! import numpy linsp = numpy.linspace red = linsp(0, 255, 50) green = linsp(125, 150, 50) blue = linsp(175, 255, 50) array's elements are float. How do I convert them into integer? I need to build a new array from red, green, blue. like this: [[ red[0], green[0], blue[0] ], [

[Numpy-discussion] numpy.core.numerictypes questions

2008-08-21 Thread William Reade
Hi I hope this is the right place for this question... if not, I apologise, and ask only that you please direct me somewhere more appropriate. Line 532 of numerictypes.py reads "_unicodesize = array('u','U1').itemsize", but _unicodesize itself does not appear to be referenced anywhere else. My