numarray speed question

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


At some point, Tim Hochberg <tim.hochberg at ieee.org> 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 lists.sourceforge.net> 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
numarray).

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

-- 
|>|\/|<
/--------------------------------------------------------------------------\
|David M. Cooke
|cookedm(at)physics(dot)mcmaster(dot)ca



More information about the Python-list mailing list