Add files via upload
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com>
This commit is contained in:
parent
8efb13dbcf
commit
c5a843a9bd
1 changed files with 45 additions and 0 deletions
45
numpy/layout/Row_and_column_major_order.svg
Normal file
45
numpy/layout/Row_and_column_major_order.svg
Normal file
|
@ -0,0 +1,45 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="-240 -190 480 640">
|
||||
<title>Row and column major order</title>
|
||||
<desc>Illustration of row- and column-major order by CMG Lee.</desc>
|
||||
<defs>
|
||||
<path id="arrowhead" d="M -20,30 L 0,0 L 20,30"/>
|
||||
<g id="arrow_row">
|
||||
<path d="M -120,-80 H 120 L -120,0 H 120 L -120,80 H 120"/>
|
||||
<use xlink:href="#arrowhead" transform="translate(120,80) rotate(90)"/>
|
||||
</g>
|
||||
<g id="arrow_column">
|
||||
<path d="M -120,-80 V 80 L 0,-80 V 80 L 120,-80 V 80"/>
|
||||
<use xlink:href="#arrowhead" transform="translate(120,80) rotate(180)"/>
|
||||
</g>
|
||||
<path id="bracket" d="M -180,-110 h -20 v 210 h 20" stroke-width="2" stroke="#000000"/>
|
||||
<g id="common">
|
||||
<use xlink:href="#bracket"/>
|
||||
<use xlink:href="#bracket" transform="scale(-1,1)"/>
|
||||
<g fill="#000000">
|
||||
<text x="-120" y="-80"><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">11</tspan></text>
|
||||
<text x="0" y="-80"><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">12</tspan></text>
|
||||
<text x="120" y="-80"><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">13</tspan></text>
|
||||
<text x="-120" y="0" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">21</tspan></text>
|
||||
<text x="0" y="0" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">22</tspan></text>
|
||||
<text x="120" y="0" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">23</tspan></text>
|
||||
<text x="-120" y="80" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">31</tspan></text>
|
||||
<text x="0" y="80" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">32</tspan></text>
|
||||
<text x="120" y="80" ><tspan font-style="italic">a</tspan><tspan font-size="75%" dy="1ex">33</tspan></text>
|
||||
</g>
|
||||
</g>
|
||||
</defs>
|
||||
<circle cx="0" cy="0" r="99999" fill="#ffffff"/>
|
||||
<g font-family="Liberation Sans,Helvetica,Arial,sans-serif" font-size="50" text-anchor="middle" stroke-width="10" stroke-linejoin="round" stroke-linecap="round" stroke="none" fill="none">
|
||||
<g transform="translate(0,0)">
|
||||
<text x="0" y="-160" dy="0.7ex" fill="#000000"><tspan>Row-major order</tspan></text>
|
||||
<use xlink:href="#arrow_row" stroke="#ff6666"/>
|
||||
<use xlink:href="#common"/>
|
||||
</g>
|
||||
<g transform="translate(0,330)">
|
||||
<text x="0" y="-160" dy="0.7ex" fill="#000000"><tspan>Column-major order</tspan></text>
|
||||
<use xlink:href="#arrow_column" stroke="#00cccc"/>
|
||||
<use xlink:href="#common"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.6 KiB |
Loading…
Reference in a new issue