Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

numpy.fft #94

Open
hfarazi opened this issue Oct 8, 2019 · 0 comments
Open

numpy.fft #94

hfarazi opened this issue Oct 8, 2019 · 0 comments

Comments

@hfarazi
Copy link

hfarazi commented Oct 8, 2019

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])
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant