diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-11 14:06:02 -0400 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2021-08-11 14:06:02 -0400 |
| commit | 65eef4fade5eb426dae01d480f383b8a30b23071 (patch) | |
| tree | d5d98e372f68c928b7aaa2741f26cf89d5745ffc /docs/doc/shape.html | |
| parent | e64ea0c5da34a59393e3b539cc1811ac63dfe3f4 (diff) | |
Change "BQN / main" in header to "(github) / BQN"
Diffstat (limited to 'docs/doc/shape.html')
| -rw-r--r-- | docs/doc/shape.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/doc/shape.html b/docs/doc/shape.html index 118353c6..99a4260e 100644 --- a/docs/doc/shape.html +++ b/docs/doc/shape.html @@ -3,7 +3,7 @@ <link href="../style.css" rel="stylesheet"/> <title>BQN: Array dimensions</title> </head> -<div class="nav"><a href="https://github.com/mlochbaum/BQN">BQN</a> / <a href="../index.html">main</a> / <a href="index.html">doc</a></div> +<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">doc</a></div> <h1 id="array-dimensions">Array dimensions</h1> <p>The function Shape (<code><span class='Function'>≢</span></code>) returns an array's shape, and Rank (<code><span class='Function'>=</span></code>) and Length (<code><span class='Function'>≠</span></code>) return properties that can be derived from the shape. BQN's arrays are multidimensional, so that the shape is a list of natural numbers (the length along each axis), while the rank (length of the shape) and length (of the first axis) are numbers. In these functions, an atom is treated as a unit array, which has rank 0 and empty shape. A unit has no first axis, but its length is defined to be 1.</p> <p>Rank can be defined as <code><span class='Function'>≠</span><span class='Modifier2'>∘</span><span class='Function'>≢</span></code> while Length can be defined with a <a href="fold.html">fold</a> to be <code><span class='Number'>1</span><span class='Function'>⊣</span><span class='Modifier'>´</span><span class='Function'>≢</span></code>.</p> |
