cannam@95: cannam@95:
cannam@95:cannam@95: Next: Memory Allocation, cannam@95: Previous: Complex numbers, cannam@95: Up: Data Types and Files cannam@95:
cannam@95: You can install single and long-double precision versions of FFTW,
cannam@95: which replace double
with float
and long double
,
cannam@95: respectively (see Installation and Customization). To use these
cannam@95: interfaces, you:
cannam@95:
cannam@95:
-lfftw3f
or
cannam@95: -lfftw3l
instead of (or in addition to) -lfftw3
. (You
cannam@95: can link to the different-precision libraries simultaneously.)
cannam@95:
cannam@95: <fftw3.h>
header file.
cannam@95:
cannam@95: fftw_complex
becomes fftwf_complex
, fftw_execute
cannam@95: becomes fftwf_execute
, etcetera.)
cannam@95:
cannam@95: double
with float
or long double
for
cannam@95: subroutine parameters.
cannam@95:
cannam@95: Depending upon your compiler and/or hardware, long double
may not
cannam@95: be any more precise than double
(or may not be supported at all,
cannam@95: although it is standard in C99).
cannam@95:
cannam@95:
cannam@95:
We also support using the nonstandard __float128
cannam@95: quadruple-precision type provided by recent versions of gcc
on
cannam@95: 32- and 64-bit x86 hardware (see Installation and Customization).
cannam@95: To use this type, link with -lfftw3q -lquadmath -lm
(the
cannam@95: libquadmath
library provided by gcc
is needed for
cannam@95: quadruple-precision trigonometric functions) and use ‘fftwq_’
cannam@95: identifiers.
cannam@95:
cannam@95:
cannam@95:
cannam@95: