Skip to content

Commit

Permalink
CartesianIndices(A)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheeheee committed Dec 11, 2024
1 parent aeac13d commit f4c218d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dspbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ function conv(u::AbstractVector{T}, v::Transpose{T,<:AbstractVector}, A::Abstrac
m = length(u) + size(A, 1) - 1
n = length(v) + size(A, 2) - 1
B = zeros(T, m, n)
B[1:size(A, 1), 1:size(A, 2)] = A
B[CartesianIndices(A)] = A
u, v = fft.(_zeropad.((u, transpose(v)), (m, n)))
p = plan_fft(B)
C = inv(p) * ((p * B) .*= u .* transpose(v))
Expand Down

0 comments on commit f4c218d

Please sign in to comment.