Skip to content

Commit 3b3d9b5

Browse files
committed
Fix out-of-place test plans to support non complex-float input
1 parent 2782544 commit 3b3d9b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/TestPlans.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ end
104104
Base.:*(p::TestPlan{T,N,0}, x::AbstractArray) where {T,N} = mul!(similar(x, complex(float(eltype(x)))), p, x)
105105
Base.:*(p::InverseTestPlan{T,N,0}, x::AbstractArray) where {T,N} = mul!(similar(x, complex(float(eltype(x)))), p, x)
106106

107-
Base.:*(p::TestPlan{T,N,1}, x::AbstractArray) where {T,N} = copyto!(x, dft!(similar(x), x, p.region, -1))
108-
Base.:*(p::InverseTestPlan{T,N,1}, x::AbstractArray) where {T,N} = copyto!(x, dft!(similar(x), x, p.region, 1))
107+
Base.:*(p::TestPlan{T,N,1}, x::AbstractArray) where {T,N} = dft!(similar(x, complex(float(eltype(x)))), x, p.region, -1)
108+
Base.:*(p::InverseTestPlan{T,N,1}, x::AbstractArray) where {T,N} = dft!(similar(x, complex(float(eltype(x)))), x, p.region, 1)
109109

110110
mutable struct TestRPlan{T,N} <: Plan{T}
111111
region

0 commit comments

Comments
 (0)