Skip to content

Instantly share code, notes, and snippets.

@adityaramesh
Created May 22, 2017 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adityaramesh/0faa3443771e1f051bbd7e382f0d60fa to your computer and use it in GitHub Desktop.
Save adityaramesh/0faa3443771e1f051bbd7e382f0d60fa to your computer and use it in GitHub Desktop.
Plancherel's theorem
import numpy as np
np.set_printoptions(precision=3, linewidth=200)
a = np.random.normal(size=(3, 3))
q, _ = np.linalg.qr(a)
print(np.matmul(q, q.T))
s = np.fft.fft2(q)
print(np.matmul(s, s.conj().T))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment