Skip to content

Commit

Permalink
Add subtype
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav-arya committed Oct 21, 2023
1 parent b2ffd6f commit d718f90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definitions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ function adjoint_mul(p::Plan{T}, x::AbstractArray, ::FFTAdjointStyle) where {T}
pinv = inv(p)
# Optimization: when pinv is a ScaledPlan, check if we can avoid a loop over x.
# Even if not, ensure that we do only one pass by combining the normalization with the plan.
RT = AbstractArray{T} # canonicalize eltype of returned array to be extra safe about type stability
RT = AbstractArray{<:T} # canonicalize eltype of returned array to be extra safe about type stability
if pinv isa ScaledPlan && pinv.scale == N
return convert(RT, pinv.p * x)
else
Expand Down

0 comments on commit d718f90

Please sign in to comment.