Re: [Numpy-discussion] Choosing between NumPy and SciPy functions

2014-10-28 Thread Pierre Barbier de Reuille
I would add one element to the discussion: for some (odd) reasons, SciPy is lacking the functions `rfftn` and `irfftn`, functions using half the memory space compared to their non-real equivalent `fftn` and `ifftn`. However, I haven't (yet) seriously tested `scipy.fftpack.fftn` vs. `np.fft.rfftn` t

Re: [Numpy-discussion] inplace unary operations?

2014-08-31 Thread Pierre Barbier de Reuille
Just to point out another solution to change the sign: >>> arr *= -1 Both solutions take the same time on my computer. However, the boolean equivalent: >>> arr ^= True is a lot slower than using negative. My two cents ... -- Dr. Barbier de Reuille, Pierre Institute of Plant Sciences Altenb

[Numpy-discussion] Problem with numpy.records module

2013-03-22 Thread Pierre Barbier de Reuille
Hello, I am trying to use titles for record arrays. In the documentation, it is specified that any column can set to "None". However, using 'None' fails on numpy 1.6.2 because in np.core.records, on line 195, the "strip" method is called on the title object. First, I hope I understood the documen