Advertisement
Guest User

Untitled

a guest
Apr 16th, 2023
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. M = 100
  2. N = 101
  3. x = (np.arange(1, M*N + 1).reshape(M, N, order='F')).astype('float64')
  4. h = (np.arange(1, M*N + 1).reshape(M, N, order='F')).astype('float64') + 1j
  5.  
  6. h = ifftshift(np.conj(h), axes=1)
  7. out = np.zeros(N, dtype='complex128')
  8. for i in range(N):
  9. out[i] = np.sum(x * np.roll(h, i, axis=1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement