Created GPU implementation with PyTorch.
To use the GPU module like the CPU module, the following changes need to be made.
- Module import:
python import frft_gpu as frft
- Conversion of the input array from fftshift
ed numpy array to fftshift
ed PyTorch array.
See tutorial for details.
Measured the runtimes in the tutorial more accurately.
The fractional Fourier transform (FRFT) is a valuable signal processing tool used in optics, physics, and radar engineering. It generalizes the familiar Fourier transform into real/reciprocal phase space as a partial rotation between these two spaces. Signal information represented in the fractional Fourier space can sometimes be far more illuminating than the Fourier transform.
The definition of the one-dimensional FRFT for a parameter
The code uses Numpy's native fftn
routine and therefore can be used for transforms of any dimensionality.
This implementation follows the theory described in Ozaktas et al. \cite{Ozaktas1996}.
It computes the FRFT as the chirp-modulated signal convolved with a chirp function, followed by a final chirp modulation.
The chirp function (i.e., a parabolic phase) resides as an array within the namespace of the imported module.
It is recalculated whenever the dimensions of the input array change.
1-D, 2-D and 3-D example data is provided as an HDF5 file data.hdf5
.
- Currently does not preserve signal norm. This has to be done manually. Will soon add a normalization parameter, similar to
norm="ortho"
innumpy.fftn
. - Currently selective transforms along user-defined dimensions are not implemented; transforms along all dimensions of the input array by default.
Here is a basic tutorial.
In these tutorials, the FRFT will be simulated in the range
- Dr. Ishwor Poudyal (Argonne National Laboratory) for generating the example data.
(Ozaktas, Arikan et al., 1996) H.M. Ozaktas, O. Arikan, M.A. Kutay and G. Bozdagt, Digital computation of the fractional Fourier transform, IEEE Transactions on signal processing, vol. 44, number 9, pp. 2141--2150, 1996.