-
Notifications
You must be signed in to change notification settings - Fork 109
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
Allow different argument eltypes for filt_stepstate
(fix #573)
#574
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #574 +/- ##
=======================================
Coverage 97.40% 97.40%
=======================================
Files 16 16
Lines 3193 3199 +6
=======================================
+ Hits 3110 3116 +6
Misses 83 83 ☔ View full report in Codecov by Sentry. |
ae6be31
to
ac22343
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A test for the isone(a[1]) && T !== V
case would be good. Or remove that optimization and do the scaling unconditionally. Run-time will be dwarfed by the linear solver for computation of si
anyway, I guess.
But I don't think this fixes #573 as that issue is about missing documentation which this PR doesn't add.
IIUC, it's just repeating the two-argument version for each column of an array? |
I think the issue is that we only have |
Oh, seems |
avoids unnecessary allocations esp. if x has >1 column
ac22343
to
c34cd43
Compare
Isn't that case covered in lines 381 to 383? |
That needs a test where |
yeah, slipped my eye. hope it's good now |
Co-authored-by: Martin Holters <[email protected]>
…) (JuliaDSP#574) * Relax `filt_stepstate` argument types * set maximum `pad_length` for `iir_filtfilt` * directly use `_filt_iir!` avoids unnecessary allocations esp. if x has >1 column * Document `filtfilt(::AbstractVector...)` (fixes JuliaDSP#573)
No description provided.