https://peeterjoot.com/2014/12/04/matrix-form-for-discrete-time-fourier-transform/
Matrix form for discrete time Fourier transform