ft_dyns function

Apply the Fourier transform over the dynamic dimension.