Skip to content

Commit

Permalink
Merge pull request #494 from jishnub/patch-2
Browse files Browse the repository at this point in the history
Use length of arrays directly in conv
  • Loading branch information
ViralBShah authored Feb 5, 2024
2 parents 148dea0 + ba0586f commit bf938fb
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 @@ -691,7 +691,7 @@ function conv(u::AbstractArray{T, N},
v::AbstractArray{T, N}) where {T<:RealOrComplexFloat, N}
su = size(u)
sv = size(v)
if prod(su) >= prod(sv)
if length(u) >= length(v)
_conv(u, v, su, sv)
else
_conv(v, u, sv, su)
Expand Down

0 comments on commit bf938fb

Please sign in to comment.