Skip to content

Commit

Permalink
ensure newb is mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
wheeheee authored Dec 13, 2024
1 parent 6164ff0 commit b87fcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Filters/filt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ function filtfilt(b::AbstractVector, x::AbstractArray)
extrapolated = similar(x, T, (size(x, 1)+2*(nb-1), size(x)[2:end]...))

# Convolve b with its reverse
newb = reverse(b)
newb = reverse(b, 1)
filt!(newb, b, newb)
resize!(newb, 2nb-1)
for i = 1:nb-1
Expand Down

0 comments on commit b87fcb3

Please sign in to comment.