tangent icon indicating copy to clipboard operation
tangent copied to clipboard

numpy.fft

Open hfarazi opened this issue 6 years ago • 0 comments

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])

hfarazi avatar Oct 08 '19 16:10 hfarazi