11# Plans
2-
3- abstract type FFTAPlan{T,N} <: AbstractFFTs.Plan{T} end
2+ abstract type FFTAPlan{T,N} end
43
54struct FFTAInvPlan{T,N} <: FFTAPlan{T,N} end
65
@@ -24,7 +23,7 @@ Base.size(p::FFTAPlan{<:Any,N}) where N = ntuple(Base.Fix1(size, p), Val{N}())
2423
2524Base. complex (p:: FFTAPlan_re{T,N} ) where {T,N} = FFTAPlan_cx {T,N} (p. callgraph, p. region, p. dir, p. pinv)
2625
27- function AbstractFFTs . plan_fft (x:: AbstractArray{T,N} , region; kwargs... ):: FFTAPlan_cx{T} where {T <: Complex , N}
26+ function plan_fft (x:: AbstractArray{T,N} , region; kwargs... ):: FFTAPlan_cx{T} where {T <: Complex , N}
2827 FFTN = length (region)
2928 if FFTN == 1
3029 g = CallGraph {T} (size (x,region[]))
@@ -41,7 +40,7 @@ function AbstractFFTs.plan_fft(x::AbstractArray{T,N}, region; kwargs...)::FFTAPl
4140 end
4241end
4342
44- function AbstractFFTs . plan_bfft (x:: AbstractArray{T,N} , region; kwargs ... ):: FFTAPlan_cx{T} where {T <: Complex ,N}
43+ function plan_bfft (x:: AbstractArray{T,N} , region:: Union{Int,AbstractVector} ):: FFTAPlan_cx{T} where {T <: Complex ,N}
4544 FFTN = length (region)
4645 if FFTN == 1
4746 g = CallGraph {T} (size (x,region[]))
@@ -58,7 +57,7 @@ function AbstractFFTs.plan_bfft(x::AbstractArray{T,N}, region; kwargs...)::FFTAP
5857 end
5958end
6059
61- function AbstractFFTs . plan_rfft (x:: AbstractArray{T,N} , region; kwargs ... ):: FFTAPlan_re{Complex{T}} where {T <: Real ,N}
60+ function plan_rfft (x:: AbstractArray{T,N} , region:: Union{Int,AbstractVector} ):: FFTAPlan_re{Complex{T}} where {T <: Real ,N}
6261 FFTN = length (region)
6362 if FFTN == 1
6463 g = CallGraph {Complex{T}} (size (x,region[]))
@@ -78,7 +77,7 @@ function AbstractFFTs.plan_rfft(x::AbstractArray{T,N}, region; kwargs...)::FFTAP
7877 end
7978end
8079
81- function AbstractFFTs . plan_brfft (x:: AbstractArray{T,N} , len, region; kwargs ... ):: FFTAPlan_re{T} where {T,N}
80+ function plan_brfft (x:: AbstractArray{T,N} , len:: Int , region:: Union{Int,AbstractVector} ):: FFTAPlan_re{T} where {T,N}
8281 FFTN = length (region)
8382 if FFTN == 1
8483 g = CallGraph {T} (len)
0 commit comments