I have a two dimensional matrix in both C++ and MATLAB. I want to apply just the one dimensional fft, along to one direction like in the following picture.
This is trivial in MATLAB and it can be done by the following format. I was wondering if it is possible to do the same fft transform in C++ with the fftw library. I know that it can be done with a for loop, along the desired direction, but if it can be done with one command it would be great.
Thanks for your help.