tangent
tangent copied to clipboard
numpy.fft
Hi,
Do you think the following is correct?
def fft2(x):
return np.fft.fft2(x)
@adjoint(fft2)
def dfft2(y, x):
d[x] = np.fft.fft2(d[y])
def ifft2(x):
return np.fft.ifft2(x)
@adjoint(ifft2)
def difft2(y, x):
d[x] = np.fft.ifft2(d[y])
def conjugate(x):
return np.conjugate(x)
@adjoint(conjugate)
def dconjugate(y, x):
d[x] = np.conjugate(d[y])