Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Alexander Eberspächer
On 24.09.2015 21:12, Charles R Harris wrote: > I find Cleve Moler's old Fortran version of Brent's zero finding > algorithm using gotos clearer than the structured versions you can find > in Numerical Recipes. The operation of the algorithm is easiest to > describe as a finite state machine. I ne

Re: [Numpy-discussion] Python needs goto

2015-09-24 Thread Alexander Eberspächer
On 24.09.2015 13:25, Christophe Bal wrote: > Can you give an example where GOTO is useful ? I think those pieces of code are best understood with some humour.. However, basically I can think two main causes for using goto: 1. Stop whatever your code is doing and jump towards the end of the prog

Re: [Numpy-discussion] Any interest in a 'heaviside' ufunc?

2015-02-05 Thread Alexander Eberspächer
On 04.02.2015 11:45, Daπid wrote: > There are several definitions. Abramowitz and Stegun > (http://people.math.sfu.ca/~cbm/aands/page_1020.htm) assign the value > 0.5 at x=0. The NIST handbook uses the value 0 at x=0. Perhaps a Heaviside with an optional argument that defines the value at x=0 wo

Re: [Numpy-discussion] GDB macros for numpy

2014-11-30 Thread Alexander Eberspächer
On 30.11.2014 12:54, David Cournapeau wrote: > I remember having seen some numpy-aware gdb macros at some point, but > cannot find any reference. Does anyone know of any ? Though I have no idea what a NumPy-aware GDB macro looked like, I'd be interested in other people's input on debugging cross-

Re: [Numpy-discussion] FFTS for numpy's FFTs (was: Re: Choosing between NumPy and SciPy functions)

2014-10-29 Thread Alexander Eberspächer
On 29.10.2014 19:40, Henry Gomersall wrote: > There could be an argument that this sort of capability should be added > to the pyfftw package, as a package level config. > > Something like: > > import pyfftw > pyfftw.default_threads = 4 I think that would be great, though probably slightly off

Re: [Numpy-discussion] FFTS for numpy's FFTs (was: Re: Choosing between NumPy and SciPy functions)

2014-10-29 Thread Alexander Eberspächer
On 29.10.2014 18:03, Pierre-Andre Noel wrote: >>> Id rather have us discuss how to facilitate the integration of as > many possible fft libraries with numpy behind a maximally uniform > interface, rather than having us debate which fft library is 'best'. > > I agree with the above. Absolutely. I

Re: [Numpy-discussion] fftw supported?

2014-06-05 Thread Alexander Eberspächer
On 05.06.2014 11:13, Daπid wrote: > pyFFTW provides a drop-in replacement for Numpy and Scipy's fftw: > > https://hgomersall.github.io/pyFFTW/pyfftw/interfaces/interfaces.html Sure. But if you want use multi-threading and the wisdom mechanisms, you have to take care of it yourself. You didn't ha

Re: [Numpy-discussion] fftw supported?

2014-06-04 Thread Alexander Eberspächer
On 02.06.2014 14:26, David Cournapeau wrote: > FFTW is not used anymore in neither numpy or scipy (has not been for > several years). If you want to use fftw with numpy, there are 3rd party > extensions to do it, like pyfftw If you feel pyfftw bothers you with too many FFTW details, you may try s

Re: [Numpy-discussion] svd + multiprocessing hangs

2013-06-12 Thread Alexander Eberspächer
On 06/12/2013 07:27 PM, Julian Taylor wrote: > I'm guessing you are using openblas? I can confirm hanging with OpenBLAS using OpenMP. > there are known hanging problems with openblas and multiprocessing. > you can work around them by disabling threading in openblas > (OPENBLAS_NUM_THREADS=1). T

Re: [Numpy-discussion] ImportError: libatlas.so.3: cannot open shared object file

2012-12-10 Thread Alexander Eberspächer
On Mon, 10 Dec 2012 13:57:04 +0300 Allan Kamau wrote: > I have built and installed numpy on Debian from source successfully as > follows. [...] > ImportError: libatlas.so.3: cannot open shared object file: No such > file or directory Are the paths to ATLAS in your $LD_LIBRARY_PATH? If not, try a

Re: [Numpy-discussion] site.cfg: Custom BLAS / LAPACK configuration

2012-12-06 Thread Alexander Eberspächer
On Fri, 30 Nov 2012 12:13:58 -0800 "Bradley M. Froehle" wrote: > As far as I can tell, it's IMPOSSIBLE to create a site.cfg which will > link to ACML when a system installed ATLAS is present. setup.py respects environment variables. You can set ATLAS to None and force the setup to use $LAPACK an