Compute the two dimensional FFT of a using subroutines from Fftw. The optional arguments n and m may be used specify the number of rows and columns of a to use. If either of these is larger than the size of a, a is resized and padded with zeros.
If a is a multi-dimensional matrix, each two-dimensional sub-matrix of a is treated separately