Skip to content

Commit

Permalink
narrower _sff!
Browse files Browse the repository at this point in the history
  • Loading branch information
wheeheee authored and martinholters committed Dec 4, 2024
1 parent 65bf0cc commit d2c2aed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dspbase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,13 @@ end
# Convert array filter tap input to tuple for small-filtering
function _small_filt_fir!(
out::AbstractArray, h::AbstractVector, x::AbstractArray,
si::AbstractArray{S,N}, ::Val{bs}) where {S,N,bs}
si::AbstractVector, ::Val{bs}) where {bs}

bs < 2 && throw(ArgumentError("invalid tuple size"))
length(h) != bs && throw(ArgumentError("length(h) does not match bs"))
b = ntuple(j -> h[j], Val(bs))
for col in CartesianIndices(axes(x)[2:end])
v_si = N > 1 ? view(si, :, col) : si
_filt_fir!(out, b, x, v_si, col)
_filt_fir!(out, b, x, si, col)
end
end

Expand Down

0 comments on commit d2c2aed

Please sign in to comment.