Re: [Numpy-discussion] FFT of 2D array along last axis

2014-11-06 Thread Stefan van der Walt
Hi Brad On 2014-11-07 00:51:02, Brad Buran wrote: > On Windows 7 using Anaconda with numpy 1.9.1 I get False (indicating that > the FFT is not treating each row separately). When I test on a Ubuntu box > using numpy 1.9.1 I get True. Is this expected behavior? If I understand > the documentati

[Numpy-discussion] FFT of 2D array along last axis

2014-11-06 Thread Brad Buran
Given the following code: import numpy as np x = np.random.random(size=2**14) y = x.copy() z = np.concatenate([x[np.newaxis], y[np.newaxis]], axis=0) print(np.all(np.fft.fft(z, axis=-1)[0] == np.fft.fft(z[0]))) On Windows 7 using Anaconda with numpy 1.9.1 I get False (indicating that the FFT is n

Re: [Numpy-discussion] median filtering a masked array

2014-11-06 Thread Stefan van der Walt
On 2014-11-06 11:10:29, Daπid wrote: > On 5 November 2014 19:11, Moroney, Catherine M (398E) > wrote: >> What is the recommended way of doing a fast median filter on an array where >> only >> certain elements of the array need to be calculated? I'm trying to avoid a >> nested loop over all (I,J

Re: [Numpy-discussion] median filtering a masked array

2014-11-06 Thread Daπid
On 5 November 2014 19:11, Moroney, Catherine M (398E) wrote: > What is the recommended way of doing a fast median filter on an array where > only > certain elements of the array need to be calculated? I'm trying to avoid a > nested loop over all (I,J) elements. Since you are using FORTRAN, I be