Skip to content

Commit 129d28d

Browse files
committed
Remove R2RAdjointStyle (out of scope)
1 parent 6a79bb3 commit 129d28d

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/fft.jl

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,23 +1064,3 @@ end
10641064
AbstractFFTs.AdjointStyle(::cFFTWPlan) = AbstractFFTs.FFTAdjointStyle()
10651065
AbstractFFTs.AdjointStyle(::rFFTWPlan{T, FORWARD}) where {T} = AbstractFFTs.RFFTAdjointStyle()
10661066
AbstractFFTs.AdjointStyle(P::rFFTWPlan{T, BACKWARD}) where {T} = AbstractFFTs.IRFFTAdjointStyle(P.osz[first(P.region)])
1067-
AbstractFFTs.AdjointStyle(P::r2rFFTWPlan) = AbstractFFTs.R2RAdjointStyle(P.kinds)
1068-
1069-
AbstractFFTs._output_size(p::Plan, ::R2RAdjointStyle) = size(p)
1070-
1071-
# TODO: this needs finishing
1072-
function AbstractFFTs.adjoint_mul(p::Plan{T}, x::AbstractArray, PS::R2RAdjointStyle) where {T}
1073-
kinds = PS.kinds
1074-
dims = fftdims(p)
1075-
1076-
N = 1
1077-
# Ref: https://www.fftw.org/fftw3_doc/1d-Real_002deven-DFTs-_0028DCTs_0029.html
1078-
# Normalization: P \ P * u = K * u
1079-
# 0, 1 , 2 : FFTAdjointStyle() type: K = prod(size(N))
1080-
# 3, 6 : DCTs: K = 2 * (N - 1)
1081-
# 4, 5 : DCTs: K = 2 * N
1082-
# 7, 10: DSTs: K = 2 * (N + 1)
1083-
# 8, 9 : DSTs: K = 2 * N
1084-
return (p.p \ x) / N
1085-
end
1086-

0 commit comments

Comments
 (0)