Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread David Cournapeau
On Tue, Nov 20, 2012 at 7:35 PM, Dag Sverre Seljebotn wrote: > On 11/20/2012 06:22 PM, David Cournapeau wrote: >> On Tue, Nov 20, 2012 at 5:03 PM, Sturla Molden wrote: >>> On 20.11.2012 15:38, David Cournapeau wrote: >>> I support this as well in principle for our binary release: one issue >

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread David Cournapeau
On Tue, Nov 20, 2012 at 8:52 PM, Henry Gomersall wrote: > On Tue, 2012-11-20 at 20:35 +0100, Dag Sverre Seljebotn wrote: >> Is there a specific reason it *has* to happen at compile-time? I'd >> think >> one could do something like just shipping a lot of separate Python >> extensions which are real

Re: [Numpy-discussion] Building numpy with OpenBLAS using bento

2012-11-20 Thread David Cournapeau
On Tue, Nov 20, 2012 at 7:52 PM, George Nurser wrote: > Hi, > I've tried to build numpy with OpenBLAS following on from the blog > http://cournape.wordpress.com/2012/10/10/notes-on-building-numpyscipy-with-openblas/ > > I've cloned and installed an up to date version of bento from git. > > Problem

Re: [Numpy-discussion] confused about univaritespline

2012-11-20 Thread Charles R Harris
On Tue, Nov 20, 2012 at 12:30 PM, Neal Becker wrote: > Pauli Virtanen wrote: > > > 20.11.2012 21:11, Neal Becker kirjoitti: > >> import numpy as np > >> import matplotlib.pyplot as plt > >> > >> ibo = np.array ((12, 14, 16, 18, 20, 22, 24, 26, 28, 29, 29.8, 30.2)) > >> gain_deriv = np.array ((0,

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread Henry Gomersall
On Tue, 2012-11-20 at 20:35 +0100, Dag Sverre Seljebotn wrote: > Is there a specific reason it *has* to happen at compile-time? I'd > think > one could do something like just shipping a lot of separate Python > extensions which are really just the same module linked with > different > versions o

[Numpy-discussion] Building numpy with OpenBLAS using bento

2012-11-20 Thread George Nurser
Hi, I've tried to build numpy with OpenBLAS following on from the blog http://cournape.wordpress.com/2012/10/10/notes-on-building-numpyscipy-with-openblas/ I've cloned and installed an up to date version of bento from git. Problem is that the bentomaker command doesn't seem to know about the --wi

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread Dag Sverre Seljebotn
On 11/20/2012 08:35 PM, Dag Sverre Seljebotn wrote: > On 11/20/2012 06:22 PM, David Cournapeau wrote: >> On Tue, Nov 20, 2012 at 5:03 PM, Sturla Molden wrote: >>> On 20.11.2012 15:38, David Cournapeau wrote: >>> I support this as well in principle for our binary release: one issue is tha

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread Dag Sverre Seljebotn
On 11/20/2012 06:22 PM, David Cournapeau wrote: > On Tue, Nov 20, 2012 at 5:03 PM, Sturla Molden wrote: >> On 20.11.2012 15:38, David Cournapeau wrote: >> >>> I support this as well in principle for our binary release: one issue >>> is that we don't have the infrastructure on mac to build an insta

Re: [Numpy-discussion] confused about univaritespline

2012-11-20 Thread Neal Becker
Pauli Virtanen wrote: > 20.11.2012 21:11, Neal Becker kirjoitti: >> import numpy as np >> import matplotlib.pyplot as plt >> >> ibo = np.array ((12, 14, 16, 18, 20, 22, 24, 26, 28, 29, 29.8, 30.2)) >> gain_deriv = np.array ((0, 0, 0, 0, 0, 0, .2, .4, .5, .5, 0,-2)) >> >> import scipy.in

Re: [Numpy-discussion] confused about univaritespline

2012-11-20 Thread Pauli Virtanen
20.11.2012 21:11, Neal Becker kirjoitti: > import numpy as np > import matplotlib.pyplot as plt > > ibo = np.array ((12, 14, 16, 18, 20, 22, 24, 26, 28, 29, 29.8, 30.2)) > gain_deriv = np.array ((0, 0, 0, 0, 0, 0, .2, .4, .5, .5, 0,-2)) > > import scipy.interpolate > s = scipy.interpolat

[Numpy-discussion] confused about univaritespline

2012-11-20 Thread Neal Becker
I don't understand why the plot of the spline continues on a negative slope at the end, but the plot of the integral of it flattens. - import numpy as np import matplotlib.pyplot as plt ibo = np.array ((12, 14, 16, 18, 20, 22, 24, 26, 28, 29,

Re: [Numpy-discussion] Confused with qr decomposition function

2012-11-20 Thread Pauli Virtanen
20.11.2012 20:03, Virgil Stokes kirjoitti: [clip] > Here are two that had opposite signs compared to MATLAB: [clip] Interestingly, I get the same signs also for these matrices. This probably means that the issue is specific to the Windows binaries. Probably, the ATLAS+LAPACK combination shipped w

Re: [Numpy-discussion] Confused with qr decomposition function

2012-11-20 Thread Virgil Stokes
On 2012-11-20 18:09, Pauli Virtanen wrote: > 20.11.2012 15:24, Virgil Stokes kirjoitti: > [clip] >> I am aware that they are both correct; but, if you are doing covariance >> QR decomposition then you almost surely are interested in the positive >> results (which is the default for MATLAB and most

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread David Cournapeau
On Tue, Nov 20, 2012 at 5:03 PM, Sturla Molden wrote: > On 20.11.2012 15:38, David Cournapeau wrote: > >> I support this as well in principle for our binary release: one issue >> is that we don't have the infrastructure on mac to build an installer >> with multi-arch support, and we can't assume e

Re: [Numpy-discussion] Confused with qr decomposition function

2012-11-20 Thread Pauli Virtanen
20.11.2012 15:24, Virgil Stokes kirjoitti: [clip] > I am aware that they are both correct; but, if you are doing covariance > QR decomposition then you almost surely are interested in the positive > results (which is the default for MATLAB and most papers/books on this > subject). I get exactly id

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread Sturla Molden
On 20.11.2012 15:38, David Cournapeau wrote: > I support this as well in principle for our binary release: one issue > is that we don't have the infrastructure on mac to build an installer > with multi-arch support, and we can't assume every mac out there has > SSE 3 or 4 available. Perhaps we co

Re: [Numpy-discussion] the fast way to loop over ndarray elements?

2012-11-20 Thread Chao YUE
Dear Thouis, I take some time to check, before I tried with cython, I tried the np.interp first, and very luckily, it's exeactly what I need. And with the old written by me, it spend 20 seconds, now it's 0.2 seconds! Thanks a lot to all you guys. Chao On Mon, Nov 19, 2012 at 3:08 PM, Thouis (R

Re: [Numpy-discussion] Use OpenBLAS for the binary releases?

2012-11-20 Thread David Cournapeau
On Mon, Nov 19, 2012 at 5:42 PM, Dag Sverre Seljebotn wrote: > On 11/19/2012 06:12 PM, Sturla Molden wrote: >> I think NumPy and SciPy should consider to use OpenBLAS (a fork of >> GotoBLAS2) instead of ATLAS or f2c'd Netlib BLAS for the binary releases. >> >> Here are its virtues: >> >> * Very ea

Re: [Numpy-discussion] Compiling NumPy on Windows for Python 3.3 with MSVC 2010

2012-11-20 Thread Peter Cock
On Fri, Nov 16, 2012 at 10:08 AM, Christoph Gohlke wrote: > On 11/16/2012 1:28 AM, Peter Cock wrote: >> On Thu, Nov 15, 2012 at 6:15 PM, Christoph Gohlke wrote: >>> >>> Naturally the file would be named msvc10compiler.py but the name may be >>> kept for compatibility reasons. AFAIK msvc10 does no

Re: [Numpy-discussion] PRs for MaskedArray bugs

2012-11-20 Thread Michael Droettboom
If I may also point out another simple (but critical for astropy) bugfix related to masked arrays: https://github.com/numpy/numpy/pull/2747 Mike On 11/14/2012 02:46 PM, Thomas Robitaille wrote: I've recently opened a couple of pull requests that fix bugs with MaskedArray - these are pretty st

Re: [Numpy-discussion] Confused with qr decomposition function

2012-11-20 Thread Virgil Stokes
On 20-Nov-2012 00:30, Charles R Harris wrote: On Mon, Nov 19, 2012 at 4:17 PM, Virgil Stokes > wrote: I am using the latest versions of numpy (from numpy-1.7.0b2-win32-superpack-python2.7.exe) and scipy (from scipy-0.11.0-win32-superpack-python2.7.exe ) on a