Function vector_forward_fft_copy (o2scl)¶
-
template<class vec_t, class resize_vec_t>
void o2scl::vector_forward_fft_copy(const vec_t &data, resize_vec_t &fft)¶ A one-dimensional FFTW wrapper for a forward FFT of real data.
This function copies the input and output arrays once to convert them into and from the FFTW format. The FFTW_ESTIMATE flag is used and so little or no optimization of the FFTW algorithm is performed. Given an input vector of size n, the output vector is resized to have size \( n/2+1 \) .
Note
This function calls the error handler if was not compiled with FFTW support.