cl-fftw is a wrapper around FFTW library (in double and single
precision). There are two types of functions: for use with plans and "fast"
ones which are prefixed with %
and do not require manual plan creation.
This is a list of FFT functions which work with plans:
fft
does a complex-to-complex transform (in both directions).rfft
does a transform of real-valued input.irfft
is an inverse ofrfft
.
Plans for these functions can be created as follows:
create-fft-plan
forfft
.create-rfft-plan
forrfft
.create-irfft-plan
forirfft
.
A plan must be destroyed with destroy-plan
when it is no longer
needed. A convenient macro with-plan
helps to control lifetime of a
plan.
There are two packages: cl-fftw/double
and cl-fftw/single
which have
the same set of functions but work with different precision. Two commonly
used constants, +forward+
and +backward+
which are used to specify
the transform's direction are in cl-fftw/core
package.