-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error When Using SMatrix
for FIR Separable Filtration
#252
Comments
I've started looking into this and they key difference between the expand(ind::AbstractUnitRange, pad::AbstractUnitRange) = typeof(ind)(first(ind)+first(pad):last(ind)+last(pad)) With a standard array, we have typeof(ind) == OffsetArrays.IdOffsetRange{Int64, Base.OneTo{Int64}} whereas with the static array we have typeof(ind) == OffsetArrays.IdOffsetRange{Int64, SOneTo{3}}
We also have: first(ind)+first(pad):last(ind)+last(pad) == -1:1 and it turns out that OffsetArrays.IdOffsetRange{Int64, Base.OneTo{Int64}}(-1:1) is valid whereas OffsetArrays.IdOffsetRange{Int64, SOneTo{3}}(-1:1) results in I'm not familiar with the internals of |
I think I've found a solution. Will try to make a pull-request soon once I confirm it works correctly. |
This code works:
Yet with this change:
It will fail.
Environment information:
The text was updated successfully, but these errors were encountered: