From d4cbba4377779d7ce5af0035525883310afa7cc4 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 12 Jul 2022 21:43:15 -0400 Subject: Windows diagram --- docs/doc/windows.html | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'docs/doc/windows.html') diff --git a/docs/doc/windows.html b/docs/doc/windows.html index 67e6a9f8..d48db69b 100644 --- a/docs/doc/windows.html +++ b/docs/doc/windows.html @@ -5,6 +5,55 @@

Windows

+ + + + + 𝕩 + 5𝕩 + + + + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 0 + 1 + 2 + 3 + 4 + 1 + 2 + 3 + 4 + 5 + 2 + 3 + 4 + 5 + 6 + 3 + 4 + 5 + 6 + 7 + + +

The Windows function returns all slices, or contiguous subarrays, with shape (well, shape prefix) 𝕨 from 𝕩. It might also be seen as sliding a moving window along 𝕩.

This function replaces APL's Windowed Reduction, J's more general Infix operator, and Dyalog APL's Stencil, which is adapted from one case of J's Cut operator. In BQN, it's strongly preferred to use functions, and not modifiers, for array manipulation. Functions are simpler with fewer moving parts, and more concrete, since the array results can always be viewed right away.

Basic case

-- cgit v1.2.3