Skip to content

(inverse) FFT analytic adjoint-Jacobian  #2740

@bob-carpenter

Description

@bob-carpenter

Description

Add adjoint-Jacobian specialization for reverse mode for the fast Fourier transform (FFT) and its inverse.

Example

FFT case

If y = fft(x), then the adjoint-Jacobian is just the inverse FFT applied to the adjoint of the result,

adjoint(x) += ifft(adjoint(y))

Inverse FFT case

If y = ifft(x), then the adjoint-Jacobian update rule is inverted,

adjoint(x) += fft(adjoint(y))

Expected Output

Still passes tests, but is faster and uses less memory.

Current Version:

v4.3.2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions