Re: [Numpy-discussion] Prime size FFT: bluestein transform vs general chirp/z transform ?

2011-01-15 Thread Ralf Gommers
On Mon, Jan 3, 2011 at 2:46 PM, David Cournapeau wrote: > Hi, > > I finally took the time to clean up my code to speed up prime-size FFT > (which use a O(N^2) algo in both numpy and scipy). The code is there: > https://github.com/cournape/numpy/tree/bluestein (most of the code is > tests, because

[Numpy-discussion] compatibility for supporting more than 2 versions of numpy

2011-01-15 Thread josef . pktd
After upgrading to numpy 1.5.1 I got caught by some depreciated features. Given the depreciation policy of numpy, if we want to support more than two versions of numpy, then we need some conditional execution. Does anyone have any compatibility functions? I haven't looked at it carefully yet, but

Re: [Numpy-discussion] segfault on complex array on solaris x86

2011-01-15 Thread Ralf Gommers
I've opened http://projects.scipy.org/numpy/ticket/1713 so this doesn't get lost. Ralf On Thu, Jan 6, 2011 at 12:27 AM, John Hunter wrote: > johnh@udesktop253:~> gcc --version > gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath) > Copyright (C) 2004 Free Software Foundation, Inc. > This is free

[Numpy-discussion] Is Savitzky-Golay filter provided by cookbook different from matlab's?

2011-01-15 Thread Hexyl Chan
I have used the Savitzky-Golay filter provided by cookbook, but the result is different from the one given by matlab function sgolayfilt(x,2,15). I attached the numpy code below: #! /usr/bin/env python # -*- coding:utf-8 -*- import numpy as np def savitzky_golay(y, window_size, order, deriv=0):