Skip to content

Commit

Permalink
Clarify normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-arya authored Jul 19, 2023
1 parent f3575aa commit 00eef4f
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/definitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,9 @@ abstract type AdjointStyle end
"""
FFTAdjointStyle()
Projection style for complex to complex discrete Fourier transforms.
Projection style for complex to complex discrete Fourier transforms that normalize
the output analogously to [`fft`](@ref).
Since the Fourier transform is unitary up to a scaling, the adjoint simply applies
the transform's inverse with an appropriate scaling.
"""
Expand All @@ -598,8 +599,8 @@ struct FFTAdjointStyle <: AdjointStyle end
"""
RFFTAdjointStyle()
Projection style for real to complex discrete Fourier transforms, for plans that
halve one of the output's dimensions analogously to [`rfft`](@ref).
Projection style for real to complex discrete Fourier transforms that halve
one of the output's dimensions and normalize the output analogously to [`rfft`](@ref).
Since the Fourier transform is unitary up to a scaling, the adjoint applies the transform's
inverse, but with additional logic to handle the fact that the output is projected
Expand All @@ -610,9 +611,9 @@ struct RFFTAdjointStyle <: AdjointStyle end
"""
IRFFTAdjointStyle(d::Dim)
Projection style for complex to real discrete Fourier transforms, for plans that
expect an input with a halved dimension analogously to [`irfft`](@ref), where `d`
is the original length of the dimension.
Projection style for complex to real discrete Fourier transforms that expect
an input with a halved dimension and normalize the output analogously to [`irfft`](@ref),
where `d` is the original length of the dimension.
Since the Fourier transform is unitary up to a scaling, the adjoint applies the transform's
inverse, but with additional logic to handle the fact that the input is projected
Expand Down

0 comments on commit 00eef4f

Please sign in to comment.