Skip to content

Commit 992e271

Browse files
committed
Add wrapping convolution
1 parent ea570f4 commit 992e271

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib.ua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,4 +423,6 @@ PSet ← ⍚▽⋯⇡˜ⁿ2⧻⟜¤
423423
Valid ← ⍥R=0↥⊃∩type(↘-+1⌵⊙⟜(×√/×⊸△⍜∩fft×∩⌞⬚0↙)⊃-↥◡∩△)
424424
# Convolution that maintains the largest of the input dimensions
425425
Same ← ↙⟜(↻⌊÷₂-)⊙⊸△↥⊃∩△Full
426+
# Wrapping convolution producing the same shape as the largest input
427+
Wrap ← ⍥R=0↥⊃∩type(×√/×⊸△⍜∩fft×∩⌞⬚0↙↥◡∩△)
426428
└─╴

0 commit comments

Comments
 (0)