[Numpy-discussion] Bug in fft module?

Todd Miller jmiller at stsci.edu
Mon Feb 2 07:44:06 CST 2004


On Mon, 2004-02-02 at 10:18, Nadav Horesh wrote:
> 
> 
> 
> -----Original Message-----
> From:	Todd Miller [mailto:jmiller at stsci.edu]
> Sent:	Mon 02-Feb-04 15:53
> To:	Nadav Horesh
> Cc:	numpy-discussion
> Subject:	Re: [Numpy-discussion] Bug in fft module?
> On Mon, 2004-02-02 at 05:49, Nadav Horesh wrote:
> > In numarray 0.8.1 running, fft (inverse_fft, real_fft etc.) on an empty 
> > array results in a segmentation fault.
> > 
> > System: Python 2.3.3 compiled with gcc 3.3.2, on RH9.
> 
> Hi Nadav,
> 
> What do you mean by "empty", zero length?
> 
> ==> YES: Something like: fft(array([]))

Looks like a bug in the fft wrapper code to me.  

I can either make it a no-op or make it raise an exception.  I'm leaning
towards the former... do you care which?

Todd

> 
> Todd
> 
> > 
> >    Nadav.
> > 
> > 
> > -------------------------------------------------------
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > _______________________________________________
> > Numpy-discussion mailing list
> > Numpy-discussion at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/numpy-discussion
> -- 
> Todd Miller 			
> Space Telescope Science Institute
> 3700 San Martin Drive
> Baltimore MD, 21030
> (410) 338 - 4576
> 
> 
> 
> 
-- 
Todd Miller 			
Space Telescope Science Institute
3700 San Martin Drive
Baltimore MD, 21030
(410) 338 - 4576





More information about the Numpy-discussion mailing list