Skip to content

Commit 060e1b6

Browse files
djeadaCopilot
andauthored
Update notes/matrices.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 873c32a commit 060e1b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

notes/matrices.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,15 +586,15 @@ $$
586586
Let the matrix indices be $(r,c)$ with $0\le r<R,\ 0\le c<C$. For layer $\ell=0,1,\dots,L-1$ where $L=\left\lceil \tfrac{\min(R,C)}{2}\right\rceil$, set
587587

588588
$$
589-
t=\ell,\quad b=R-1-\ell,\quad \ellft=\ell,\quad rgt=C-1-\ell .
589+
t=\ell,\quad b=R-1-\ell,\quad left=\ell,\quad rgt=C-1-\ell .
590590
$$
591591

592592
Visit, in order:
593593

594-
* Top edge: $(t,c)$ for $c=\ellft,\ldots,rgt$.
594+
* Top edge: $(t,c)$ for $c=left,\ldots,rgt$.
595595
* Right edge: $(r,rgt)$ for $r=t+1,\ldots,b$.
596-
* Bottom edge (if $b>t$): $(b,c)$ for $c=rgt-1,\ldots,\ellft$ (decreasing).
597-
* Left edge (if $rgt>\ellft$): $(r,\ellft)$ for $r=b-1,\ldots,t+1$ (decreasing).
596+
* Bottom edge (if $b>t$): $(b,c)$ for $c=rgt-1,\ldots,left$ (decreasing).
597+
* Left edge (if $rgt>left$): $(r,left)$ for $r=b-1,\ldots,t+1$ (decreasing).
598598

599599
Concatenate these per layer until all elements are visited.
600600

0 commit comments

Comments
 (0)