@@ -95,11 +95,11 @@ Base.:*(p::InverseTestPlan, x::AbstractArray) = mul!(similar(x, complex(float(el
95
95
mutable struct TestRPlan{T,N,G} <: Plan{T}
96
96
region:: G
97
97
sz:: NTuple{N,Int}
98
- pinv:: Plan{T }
98
+ pinv:: Plan{Complex{T} }
99
99
TestRPlan {T} (region:: G , sz:: NTuple{N,Int} ) where {T,N,G} = new {T,N,G} (region, sz)
100
100
end
101
101
102
- mutable struct InverseTestRPlan{T,N,G} <: Plan{T }
102
+ mutable struct InverseTestRPlan{T,N,G} <: Plan{Complex{T} }
103
103
d:: Int
104
104
region:: G
105
105
sz:: NTuple{N,Int}
@@ -113,10 +113,10 @@ end
113
113
AbstractFFTs. ProjectionStyle (:: TestRPlan ) = AbstractFFTs. RealProjectionStyle ()
114
114
AbstractFFTs. ProjectionStyle (p:: InverseTestRPlan ) = AbstractFFTs. RealInverseProjectionStyle (p. d)
115
115
116
- function AbstractFFTs. plan_rfft (x:: AbstractArray{T} , region; kwargs... ) where {T}
116
+ function AbstractFFTs. plan_rfft (x:: AbstractArray{T} , region; kwargs... ) where {T<: Real }
117
117
return TestRPlan {T} (region, size (x))
118
118
end
119
- function AbstractFFTs. plan_brfft (x:: AbstractArray{T } , d, region; kwargs... ) where {T}
119
+ function AbstractFFTs. plan_brfft (x:: AbstractArray{Complex{T} } , d, region; kwargs... ) where {T}
120
120
return InverseTestRPlan {T} (d, region, size (x))
121
121
end
122
122
function AbstractFFTs. plan_inv (p:: TestRPlan{T,N} ) where {T,N}
0 commit comments