Skip to content

Commit

Permalink
don't plan fft
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Holters <[email protected]>
  • Loading branch information
wheeheee and martinholters authored Dec 13, 2024
1 parent 027b8ba commit e8f87c9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dspbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -800,8 +800,7 @@ function conv(u::AbstractVector{T}, v::Transpose{T,<:AbstractVector}, A::Abstrac
B[CartesianIndices(A)] = A
u = fft(_zeropad(u, m))
vt = fft(_zeropad(transpose(v), n))
p = plan_fft(B)
C = inv(p) * ((p * B) .*= u .* transpose(vt))
C = ifft(fft(B) .*= u .* transpose(vt))
if T <: Real
return real(C)
end
Expand Down

0 comments on commit e8f87c9

Please sign in to comment.