From b848c54788823e59d8cee58729f20baa5c2b51e7 Mon Sep 17 00:00:00 2001 From: Gaurav Arya Date: Thu, 30 Jun 2022 21:28:07 -0400 Subject: [PATCH] Remove unnecessary caching in plan_inv of test plans --- test/testplans.jl | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/testplans.jl b/test/testplans.jl index 5949da2..e9fd632 100644 --- a/test/testplans.jl +++ b/test/testplans.jl @@ -29,7 +29,6 @@ function AbstractFFTs.plan_bfft(x::AbstractArray{T}, region; kwargs...) where {T end function AbstractFFTs.plan_inv(p::TestPlan{T}) where {T} unscaled_pinv = InverseTestPlan{T}(p.region, p.sz) - unscaled_pinv.pinv = p pinv = AbstractFFTs.ScaledPlan( unscaled_pinv, AbstractFFTs.normalization(T, p.sz, p.region), ) @@ -37,7 +36,6 @@ function AbstractFFTs.plan_inv(p::TestPlan{T}) where {T} end function AbstractFFTs.plan_inv(p::InverseTestPlan{T}) where {T} unscaled_pinv = TestPlan{T}(p.region, p.sz) - unscaled_pinv.pinv = p pinv = AbstractFFTs.ScaledPlan( unscaled_pinv, AbstractFFTs.normalization(T, p.sz, p.region), ) @@ -119,7 +117,6 @@ function AbstractFFTs.plan_inv(p::TestRPlan{T,N}) where {T,N} d = p.sz[firstdim] sz = ntuple(i -> i == firstdim ? d รท 2 + 1 : p.sz[i], Val(N)) unscaled_pinv = InverseTestRPlan{T}(d, p.region, sz) - unscaled_pinv.pinv = p pinv = AbstractFFTs.ScaledPlan( unscaled_pinv, AbstractFFTs.normalization(T, p.sz, p.region), ) @@ -129,7 +126,6 @@ function AbstractFFTs.plan_inv(p::InverseTestRPlan{T,N}) where {T,N} firstdim = first(p.region)::Int sz = ntuple(i -> i == firstdim ? p.d : p.sz[i], Val(N)) unscaled_pinv = TestRPlan{T}(p.region, sz) - unscaled_pinv.pinv = p pinv = AbstractFFTs.ScaledPlan( unscaled_pinv, AbstractFFTs.normalization(T, sz, p.region), )