Function matrix_backward_fft_copy (o2scl)

O2scl : Function List

void o2scl::matrix_backward_fft_copy(size_t m, size_t n, const std::vector<std::complex<double>> &fft, std::vector<double> &data)

A one-dimensional FFTW wrapper for a forward FFT of real data.

This function does not require any copying of the input or output arrays. The input matrix must be stored as a vector in row-major order. The FFTW_ESTIMATE flag is used and so little or no optimization of the FFTW algorithm is done. The variables m and n should have the number of rows and columns in the matrix stored in fft. Given an input vector of size m times n, implying a matrix with size1() equal to m and and size2() equal to n, the output vector is resized to have size \( 2m(n-1) \) representing a matrix with size1() equal to m and size2() equal to \( 2(n-1) \), stored in row-major order.