numarray speed question

David M. Cooke cookedm+news at
Wed Aug 25 23:22:22 EDT 2004

At some point, Tim Hochberg <tim.hochberg at> wrote:
> grv575 wrote:
> Is it possible to do single precision ffts in numarray or
>> no?
> I believe so, but I'm not sure off the top of my head. I recommend
> that you ask on numpy-discussion
> <numpy-discussion at> or peek at the
> implementation. It's possible that all FFTs are done double precision,
> but I don't think so.

Looks like the numarray.fft package uses doubles.

If you really need floats, SciPy wraps the single- and
double-precision versions of FFTW. (Although SciPy uses Numeric, not

Or, you can make your own version of numarray.fft using floats
(actually looks to relatively simple to do).

|David M. Cooke

More information about the Python-list mailing list