(dft_length)
return np.exp(omega * np.outer(np.arange(dft_length), np.arange(dft_length)))
Calculate the full DFT matrix in numpy.
Calculate the full DFT matrix in numpy.
Calculate the full DFT matrix in numpy .
def _dft_matrix(dft_length):
  """Calculate the full DFT matrix in numpy."""
  omega = (0 + 1j) * 2.0 * np.pi / float(dft_length)
  # Don't include 1/sqrt(N) scaling, tf.signal.rfft doesn't apply it.
  return np.exp(omega * np.outer(np.arange(dft_length), np.arange(dft_length)))
def _dft_matrix ( dft_length ) : omega = ( 0 + 1j ) * 2.0 * np . pi / float ( dft_length ) # Don't include 1/sqrt(N) scaling, tf.signal.rfft doesn't apply it. return np . exp ( omega * np . outer ( np . arange ( dft_length ) , np . arange ( dft_length ) ) )