From 3fd568e004693e447208e1842ab3b1d298eeb293 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 27 May 2022 17:39:06 -0400 Subject: Cells modifier diagram --- docs/doc/rank.html | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) (limited to 'docs/doc') diff --git a/docs/doc/rank.html b/docs/doc/rank.html index aef2edcd..a6752ea1 100644 --- a/docs/doc/rank.html +++ b/docs/doc/rank.html @@ -5,6 +5,87 @@

Cells and Rank

+ + + + Cells + + + + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5 + 0 + 2 + 0 + 0 + + + + +˝ + 0 + 3 + 0 + 5 + + + + + + + + + + + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 5 + 0 + 2 + 0 + 0 + + + + + + + + + + + + +˝˘ + 0 + 6 + 2 + + + + + + + + + + + + + + + + + + + + + +

The Cells modifier ˘ applies a function to major cells of its argument, much like Each applies to elements. Each result from 𝔽 becomes a major cell of the result, which means they must all have the same shape.

The Rank modifier generalizes this concept by allowing numbers provided by 𝔾 to specify a rank for each argument: non-negative to indicate the rank of each array passed to 𝔽, or negative for the number of axes that are mapped over. Cells, which maps over one axis of each argument, is identical to ¯1. Rank is analogous to the Depth modifier, but the homogeneous structure of an array eliminates some tricky edge cases found in Depth.

Cells

-- cgit v1.2.3