[Numpy-discussion] Re: empty_like for masked arrays

2013-06-11 Thread Pierre GM
On June 11, 2013 at 00:40:31, Pierre GM (pgmdevl...@gmail.com) wrote: On June 10, 2013 at 23:07:24 , Eric Firing (efir...@hawaii.edu) wrote:On 2013/06/10 10:17 AM, Aldcroft, Thomas wrote: I use np.ma http://np.ma, and for me the most intuitive would be the second option where the new array matches

[Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Pauli Virtanen
Hi, numpy.distutils provides support for Accelerate+veclib on OSX, but does not provide Fortran compiler flags that ensure that the Fortran ABI used is compatible. As a result ASUM, SDOT, (apparently also DDOT), and other common BLAS functions return garbage when called with the wrong ABI. This

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread David Cournapeau
On Tue, Jun 11, 2013 at 9:22 AM, Pauli Virtanen p...@iki.fi wrote: Hi, numpy.distutils provides support for Accelerate+veclib on OSX, but does not provide Fortran compiler flags that ensure that the Fortran ABI used is compatible. As a result ASUM, SDOT, (apparently also DDOT), and other

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Pauli Virtanen
David Cournapeau cournape at gmail.com writes: [clip] What is the default ABI used on homebrew ? I think we should just follow that, given that Apple cannot figure it out. I think for Scipy homebrew uses the Gfortran ABI: https://trac.macports.org/browser/trunk/dports/python/py-scipy/Portfile

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Matthew Brett
Hi, On Tue, Jun 11, 2013 at 5:17 AM, Pauli Virtanen p...@iki.fi wrote: David Cournapeau cournape at gmail.com writes: [clip] What is the default ABI used on homebrew ? I think we should just follow that, given that Apple cannot figure it out. I think for Scipy homebrew uses the Gfortran

Re: [Numpy-discussion] quickselect

2013-06-11 Thread Jonathan J. Helmus
On Jun 9, 2013, at 11:27 AM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 09.06.2013 12:10, josef.p...@gmail.com wrote: On Wed, May 29, 2013 at 3:19 PM, josef.p...@gmail.com wrote: On Wed, May 29, 2013 at 12:25 PM, Julian Taylor jtaylor.deb...@googlemail.com wrote: On 05/29/2013

[Numpy-discussion] Will transpose ever need to copy data?

2013-06-11 Thread Jaime Fernández del Río
I noticed today that the documentation for np.transpose states, for the return value, that A view is returned whenever possible. Is there really any situation where swapping axes around could trigger the need to copy data, or will a view always be returned no matter what? I can't think of any

Re: [Numpy-discussion] Dropping support for, Accelerate/veclib?

2013-06-11 Thread Nils Becker
I think for Scipy homebrew uses the Gfortran ABI: https://trac.macports.org/browser/trunk/dports/python/py-scipy/Portfile fwiw, homebrew is not macports. it's a more recent replacement that seems to be taking over gradually. ___ NumPy-Discussion

Re: [Numpy-discussion] Dropping support for, Accelerate/veclib?

2013-06-11 Thread Chris Barker - NOAA Federal
On Tue, Jun 11, 2013 at 10:22 AM, Nils Becker n.bec...@amolf.nl wrote: fwiw, homebrew is not macports. it's a more recent replacement that seems to be taking over gradually. And then there is (or was) fink Anyway, it would be really nice if numpy could work well out-of-the box with the

Re: [Numpy-discussion] Dropping support for, Accelerate/veclib?

2013-06-11 Thread Ralf Gommers
On Tue, Jun 11, 2013 at 9:44 PM, Chris Barker - NOAA Federal chris.bar...@noaa.gov wrote: On Tue, Jun 11, 2013 at 10:22 AM, Nils Becker n.bec...@amolf.nl wrote: fwiw, homebrew is not macports. it's a more recent replacement that seems to be taking over gradually. And then there is (or

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Ralf Gommers
On Tue, Jun 11, 2013 at 2:09 PM, Matthew Brett matthew.br...@gmail.comwrote: Hi, On Tue, Jun 11, 2013 at 5:17 AM, Pauli Virtanen p...@iki.fi wrote: David Cournapeau cournape at gmail.com writes: [clip] What is the default ABI used on homebrew ? I think we should just follow that, given

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Ralf Gommers
On Tue, Jun 11, 2013 at 11:17 AM, Pauli Virtanen p...@iki.fi wrote: David Cournapeau cournape at gmail.com writes: [clip] What is the default ABI used on homebrew ? I think we should just follow that, given that Apple cannot figure it out. I think for Scipy homebrew uses the Gfortran ABI:

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Nathaniel Smith
On 11 Jun 2013 22:31, Ralf Gommers ralf.gomm...@gmail.com wrote: Sounds like a good idea. Would still make sense to move Accelerate down in the list of preferred libs, so that one can install ATLAS, MKL or OpenBLAS once and be done, instead of always having to remember these envvars. These days

Re: [Numpy-discussion] Dropping support for Accelerate/veclib?

2013-06-11 Thread Pauli Virtanen
12.06.2013 00:29, Ralf Gommers kirjoitti: [clip] AFAIK custom compiler flags can be injected via FOPT/FFLAGS/LDFLAGS, so doing something like export FOPT=-ff2c [clip] Sounds like a good idea. Would still make sense to move Accelerate down in the list of preferred libs, so

Re: [Numpy-discussion] quickselect

2013-06-11 Thread Julian Taylor
On 11.06.2013 14:37, Jonathan J. Helmus wrote: Julian, Since I am the author of the current percentile PR (https://github.com/numpy/numpy/pull/2970), I'm willing to try reimplementing percentile with the new partition functionality. I don't expect to have time to do this until the

Re: [Numpy-discussion] genfromtxt and gzip

2013-06-11 Thread Derek Homeier
On 05.06.2013, at 9:52AM, Ted To rainexpec...@theo.to wrote: From the list archives (2011), I noticed that there is a bug in the python gzip module that causes genfromtxt to fail with python 2 but this bug is not a problem for python 3. When I tried to use genfromtxt and python 3 with a