Use same complex sinusoid generator function for IDFT and DFT