Skip to content

Commit

Permalink
Relax filt_stepstate argument types (fix #573)
Browse files Browse the repository at this point in the history
  • Loading branch information
wheeheee committed Oct 29, 2024
1 parent dcef684 commit 4ebf264
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Filters/filt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,10 @@ function filt_stepstate(b::Union{AbstractVector{T}, T}, a::Union{AbstractVector{
# Solve si = A*si + B
# (I - A)*si = B
((I - A) \ B) .*= scale_factor
end
end

filt_stepstate(b::Union{AbstractVector{T}, T}, a::Union{AbstractVector{V}, V}) where {T<:Number,V<:Number} =
filt_stepstate(promote(b, a)...)

function filt_stepstate(f::SecondOrderSections{:z,T}) where T
biquads = f.biquads
Expand Down

0 comments on commit 4ebf264

Please sign in to comment.