Skip to content

Commit

Permalink
Add StaticArrays support for conv
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholters committed Oct 28, 2024
1 parent 61a2c91 commit 0405374
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"

[weakdeps]
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[extensions]
OffsetArraysExt = "OffsetArrays"
StaticArraysExt = "StaticArrays"

[compat]
Bessels = "0.2"
Expand Down
10 changes: 10 additions & 0 deletions ext/StaticArraysExt.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module StaticArraysExt
import DSP
import StaticArrays

DSP.conv_with_offset(::StaticArrays.SOneTo) = false

Check warning on line 5 in ext/StaticArraysExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/StaticArraysExt.jl#L5

Added line #L5 was not covered by tests

DSP.conv_output_axis(::StaticArrays.SOneTo{M}, ::StaticArrays.SOneTo{N}) where {M, N} =

Check warning on line 7 in ext/StaticArraysExt.jl

View check run for this annotation

Codecov / codecov/patch

ext/StaticArraysExt.jl#L7

Added line #L7 was not covered by tests
StaticArrays.SOneTo{M + N - 1}()

end

0 comments on commit 0405374

Please sign in to comment.