Skip to content

Commit 8ddfa97

Browse files
committed
Immutable AdjointPlan
1 parent 1e9ece2 commit 8ddfa97

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/definitions.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -593,9 +593,8 @@ _output_size(p::Plan, ::NoProjectionStyle) = size(p)
593593
_output_size(p::Plan, ::RealProjectionStyle) = rfft_output_size(size(p), fftdims(p))
594594
_output_size(p::Plan, s::RealInverseProjectionStyle) = brfft_output_size(size(p), s.dim, fftdims(p))
595595

596-
mutable struct AdjointPlan{T,P<:Plan} <: Plan{T}
596+
struct AdjointPlan{T,P<:Plan} <: Plan{T}
597597
p::P
598-
pinv::Plan
599598
AdjointPlan{T,P}(p) where {T,P} = new(p)
600599
end
601600

@@ -653,4 +652,4 @@ function _mul(p::AdjointPlan{T}, x::AbstractArray, ::RealInverseProjectionStyle)
653652
return scale ./ N .* (p.p \ x)
654653
end
655654

656-
plan_inv(p::AdjointPlan) = adjoint(plan_inv(p.p))
655+
inv(p::AdjointPlan) = adjoint(inv(p.p))

0 commit comments

Comments
 (0)