229 lines
203 KiB
HTML
229 lines
203 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.11"/>
|
|
<title>CUTLASS: matrix.h Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { init_search(); });
|
|
</script>
|
|
<script type="text/x-mathjax-config">
|
|
MathJax.Hub.Config({
|
|
extensions: ["tex2jax.js"],
|
|
jax: ["input/TeX","output/HTML-CSS"],
|
|
});
|
|
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="cutlass-logo-small.png"/></td>
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">CUTLASS
|
|
</div>
|
|
<div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.11 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
<li><a href="globals.html"><span>File Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_6baf2bb612a2f0daa69af3101ede80a1.html">cutlass</a></li><li class="navelem"><a class="el" href="dir_2296cf082f2778f9a3503c8ea1010763.html">layout</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">layout/matrix.h</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="layout_2matrix_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/***************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment"> * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> * Redistribution and use in source and binary forms, with or without modification, are permitted</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * provided that the following conditions are met:</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * * Redistributions of source code must retain the above copyright notice, this list of</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * conditions and the following disclaimer.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * * Redistributions in binary form must reproduce the above copyright notice, this list of</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * conditions and the following disclaimer in the documentation and/or other materials</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * provided with the distribution.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * * Neither the name of the NVIDIA CORPORATION nor the names of its contributors may be used</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * to endorse or promote products derived from this software without specific prior written</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * permission.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * STRICT LIABILITY, OR TOR (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> **************************************************************************************************/</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="preprocessor">#include "<a class="code" href="cutlass_8h.html">cutlass/cutlass.h</a>"</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#include "<a class="code" href="matrix__coord_8h.html">cutlass/matrix_coord.h</a>"</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="preprocessor">#include "<a class="code" href="matrix__traits_8h.html">cutlass/matrix_traits.h</a>"</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> </div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">namespace </span><a class="code" href="namespacecutlass.html">cutlass</a> {</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">namespace </span>layout {</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment">//</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// Defines data layouts of various matrix formats usable by TensorRef and other classes.</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment">//</span></div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="comment"></span></div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html"> 50</a></span> <span class="keyword">class </span><a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">RowMajor</a> {</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c"> 53</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12"> 56</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576"> 59</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a> = int32_t;</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span> </div><div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8"> 62</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a> = int64_t;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span> </div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#aa62619b3e2f619056ac132bdb6b9042e"> 65</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a8861b3698bdbde3d7a5471c9e2abc6fc"> 68</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="comment">//</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="comment">//</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> </div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>  <span class="comment">//</span></div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="comment">//</span></div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#afdf845a439366f97f2bece7a6f9f03c4"> 85</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#afdf845a439366f97f2bece7a6f9f03c4">RowMajor</a>(<a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a1fe768ae500e1960013c2cb95e58dce8"> 89</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1fe768ae500e1960013c2cb95e58dce8">RowMajor</a>(<a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">stride</a>): stride_(stride) { }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> </div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a770edcc93145fc3dfa4dfdf37a7c515e"> 93</a></span>  <span class="keyword">static</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">RowMajor</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a770edcc93145fc3dfa4dfdf37a7c515e">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  <span class="keywordflow">return</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#afdf845a439366f97f2bece7a6f9f03c4">RowMajor</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>());</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  }</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#abb932e4b3cb345451a8c6b682d4e7e2d"> 100</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#abb932e4b3cb345451a8c6b682d4e7e2d">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">return</span> coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * stride_[0] + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  }</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span> </div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#ac2508255cec15a07a2c082f9a58b7e6d"> 106</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#ac2508255cec15a07a2c082f9a58b7e6d">inverse</a>(<a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(<a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset / stride_[0]), <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset % stride_[0]));</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  }</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> </div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db"> 112</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a6cc1feff4d21b7f5f0cbda665f56a844"> 118</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a6cc1feff4d21b7f5f0cbda665f56a844">stride</a>() {</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>  }</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> </div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a9d99c511509c83687bfd0b959c64016d"> 124</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a9d99c511509c83687bfd0b959c64016d">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  }</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> </div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a6113f2f748c70e41b2bef047a6a61fd7"> 130</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a> & <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a6113f2f748c70e41b2bef047a6a61fd7">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  }</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1RowMajor.html#a89225f007689acef0e17f6990e32c56e"> 136</a></span>  <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a89225f007689acef0e17f6990e32c56e">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  <span class="keywordflow">return</span> extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * stride_[0];</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> };</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span> </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html"> 142</a></span> <span class="keyword">class </span><a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">ColumnMajor</a> {</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00145"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a63ce5b9d779f46cebd9b40c39c6d06d4"> 145</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> </div><div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a5cf5e74b50b844269a07a93d7c018e7c"> 148</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336"> 151</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336">Index</a> = int32_t;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997"> 154</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997">LongIndex</a> = int64_t;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a62526c51489140fefaf7371bd53df02b"> 157</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00160"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a771b72a42239a8cdb2181633bc46ba59"> 160</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> </div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>  <span class="comment">//</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="comment">//</span></div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="comment">//</span></div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  <span class="comment">//</span></div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00177"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#adc69d6cd2cf938d1ab41c4f2ba0589a4"> 177</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#adc69d6cd2cf938d1ab41c4f2ba0589a4">ColumnMajor</a>(<a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>  </div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00181"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a0a9383ad9de01697e2df975c3a3e6ab8"> 181</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a0a9383ad9de01697e2df975c3a3e6ab8">ColumnMajor</a>(<a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">stride</a>): stride_(stride) { }</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00186"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#afd7374b993fd41d55a8c02691b02ead7"> 186</a></span>  <span class="keyword">static</span> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">ColumnMajor</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#afd7374b993fd41d55a8c02691b02ead7">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keywordflow">return</span> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">ColumnMajor</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>());</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  }</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00193"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a28531f0da7b36cfa1f42e84c04b8da04"> 193</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997">LongIndex</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a28531f0da7b36cfa1f42e84c04b8da04">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <span class="keywordflow">return</span> coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * stride_[0];</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00199"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4d2ea34ea48b0702da0d20ffcd21be30"> 199</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4d2ea34ea48b0702da0d20ffcd21be30">inverse</a>(<a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(<a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset % stride_[0]), <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset / stride_[0]));</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  }</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span> </div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00205"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a056a268507850446b15952d8f9dc37b0"> 205</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a056a268507850446b15952d8f9dc37b0">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cf5370ebfe182df8607ce5873151c83"> 211</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cf5370ebfe182df8607ce5873151c83">stride</a>() {</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>  }</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a90cd28f4ff4ab211f689bb94201597fa"> 217</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336">Index</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a90cd28f4ff4ab211f689bb94201597fa">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  }</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00223"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#a60e4d879f7de2ae46de85601c540c7d7"> 223</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336">Index</a> & <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a60e4d879f7de2ae46de85601c540c7d7">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span>  }</div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span> </div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00229"></a><span class="lineno"><a class="line" href="classcutlass_1_1layout_1_1ColumnMajor.html#ae0ede39a3011be136c9033327935170d"> 229</a></span>  <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997">LongIndex</a> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html#ae0ede39a3011be136c9033327935170d">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  <span class="keywordflow">return</span> extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * stride_[0];</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  }</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> };</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span> </div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> Interleave></div><div class="line"><a name="l00237"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html"> 237</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html">RowMajorInterleaved</a> {</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  </div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#af47a55a327b9561f8792413dcf89ac96"> 240</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a2fc89f8f53f6e27e99e66c47b844a3d4"> 243</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span> </div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972"> 246</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> = int32_t;</div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span> </div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe"> 249</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe">LongIndex</a> = int64_t;</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00252"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#aeb18d76565875530e8351b1fd28aa117"> 252</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ab86b7b4f8f92a7afafa8038822f42330"> 255</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> </div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac8c62a27c3c64309c24f9f0a02e9edfb"> 258</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kInterleave = Interleave;</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> </div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  <span class="comment">//</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span>  <span class="comment">//</span></div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span> </div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  <span class="comment">//</span></div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="comment">//</span></div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00275"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a9a965603dd8845191726450514c3463b"> 275</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a9a965603dd8845191726450514c3463b">RowMajorInterleaved</a>(<a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>  </div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00279"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a52b330ac2b80e6e38dfde427114baeea"> 279</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a52b330ac2b80e6e38dfde427114baeea">RowMajorInterleaved</a>(<a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">stride</a>): stride_(stride) { }</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span> </div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00283"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4c012aaca002750d6dda744388f6cd30"> 283</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html">RowMajorInterleaved</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4c012aaca002750d6dda744388f6cd30">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html">RowMajorInterleaved</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * kInterleave);</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  }</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00290"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a96a8d6609ee434b21e4a284874582672"> 290</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a96a8d6609ee434b21e4a284874582672">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> row_major = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() / kInterleave;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> row_minor = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() % kInterleave;</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <span class="keywordflow">return</span> row_major * stride_[0] + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * kInterleave + row_minor;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  }</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00298"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a34770f321b9fefd9c8052abbb1643deb"> 298</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a34770f321b9fefd9c8052abbb1643deb">inverse</a>(<a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00299"></a><span class="lineno"> 299</span> </div><div class="line"><a name="l00300"></a><span class="lineno"> 300</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> row_major = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset / stride_[0]);</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> residual = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset % stride_[0]);</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> column = residual / kInterleave;</div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> row_minor = residual % kInterleave;</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(row_major * kInterleave + row_minor, column);</div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  }</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span> </div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00311"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a75d4bf6a0c8acaa905263c9b81a17b0a"> 311</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a75d4bf6a0c8acaa905263c9b81a17b0a">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  }</div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span> </div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00317"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a8e146c433cca988c6a73bba6744b8ea1"> 317</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a8e146c433cca988c6a73bba6744b8ea1">stride</a>() {</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  }</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span> </div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00323"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#aa8462482c135a9ff7db7c095b0d28333"> 323</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#aa8462482c135a9ff7db7c095b0d28333">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  }</div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span> </div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00329"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4eb283431b3f584da127c90080d1e830"> 329</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4eb283431b3f584da127c90080d1e830">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span>  }</div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span> </div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00335"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a37d81b341052fb816b7a5373efd76c52"> 335</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a37d81b341052fb816b7a5373efd76c52">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  <span class="keywordflow">return</span> (extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() + kInterleave - 1) / kInterleave * stride_[0];</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  }</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> };</div><div class="line"><a name="l00339"></a><span class="lineno"> 339</span> </div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> Interleave></div><div class="line"><a name="l00343"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html"> 343</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html">ColumnMajorInterleaved</a> {</div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  </div><div class="line"><a name="l00346"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aad9b92ee9840d1566cfdbc0a1c62e447"> 346</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span> </div><div class="line"><a name="l00349"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a14ae8fdc44e1a349ffc1ec0ee217f75c"> 349</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span> </div><div class="line"><a name="l00352"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea"> 352</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> = int32_t;</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span> </div><div class="line"><a name="l00355"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240"> 355</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240">LongIndex</a> = int64_t;</div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span> </div><div class="line"><a name="l00358"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a05eb468b0a58af6b4955b6f9229b5a5c"> 358</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div><div class="line"><a name="l00361"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a5fea4214978c9d577c54ddcc086f8861"> 361</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span> </div><div class="line"><a name="l00364"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#afa55ccfb47e6460c7babcd30b43d0d63"> 364</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kInterleave = Interleave;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span> </div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span>  <span class="comment">//</span></div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  <span class="comment">//</span></div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span> </div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span> </div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span>  <span class="comment">//</span></div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  <span class="comment">//</span></div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span> </div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00381"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#acd4d70f17b74ebe3e55ea0027bac5899"> 381</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#acd4d70f17b74ebe3e55ea0027bac5899">ColumnMajorInterleaved</a>(<a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  </div><div class="line"><a name="l00384"></a><span class="lineno"> 384</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00385"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a2d4a85bbfbb919349e6fd2b859a0a461"> 385</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a2d4a85bbfbb919349e6fd2b859a0a461">ColumnMajorInterleaved</a>(<a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">stride</a>): stride_(stride) { }</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span> </div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> </div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00390"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#ab690e548a771a3e35357f454f3c924a5"> 390</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html">ColumnMajorInterleaved</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#ab690e548a771a3e35357f454f3c924a5">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html">ColumnMajorInterleaved</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * kInterleave);</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  }</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span> </div><div class="line"><a name="l00396"></a><span class="lineno"> 396</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00397"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a3917dbbf6f698bb3267a17f307664e21"> 397</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a3917dbbf6f698bb3267a17f307664e21">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> column_major = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() / kInterleave;</div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> column_minor = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() % kInterleave;</div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  <span class="keywordflow">return</span> column_major * stride_[0] + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * kInterleave + column_minor;</div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  }</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00405"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a7e5a49fed5354bfaf49213bf9b2483dd"> 405</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a7e5a49fed5354bfaf49213bf9b2483dd">inverse</a>(<a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span> </div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> column_major = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset / stride_[0]);</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> residual = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>(offset % stride_[0]);</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> row = residual / kInterleave;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> column_minor = residual % kInterleave;</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span> </div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(row, column_major * kInterleave + column_minor);</div><div class="line"><a name="l00414"></a><span class="lineno"> 414</span>  }</div><div class="line"><a name="l00415"></a><span class="lineno"> 415</span> </div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00418"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a5c651763f14af031cba81d5611fa4224"> 418</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a5c651763f14af031cba81d5611fa4224">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span>  }</div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span> </div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00424"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a01720029ba3761a51b43cb030646c245"> 424</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a01720029ba3761a51b43cb030646c245">stride</a>() {</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  }</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span> </div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00430"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#affc8b1731c858eefa55b169042593e93"> 430</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#affc8b1731c858eefa55b169042593e93">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  }</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> </div><div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00436"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#af015a6b8ccd665d2b285f8727228054d"> 436</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#af015a6b8ccd665d2b285f8727228054d">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  }</div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span> </div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00442"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a8233dbf6ef04491c79780bf27893f3e1"> 442</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a8233dbf6ef04491c79780bf27893f3e1">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  <span class="keywordflow">return</span> (extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() + kInterleave - 1) / kInterleave * stride_[0];</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  }</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> };</div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span> </div><div class="line"><a name="l00448"></a><span class="lineno"><a class="line" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c"> 448</a></span> <span class="keyword">enum class</span> <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> {</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span>  <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">kColumnMajor</a>, </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">kRowMajor</a> </div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span> };</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span> </div><div class="line"><a name="l00455"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html"> 455</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a> {</div><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> </div><div class="line"><a name="l00458"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab0539a0f69aa086431c00371536ff89b"> 458</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span> </div><div class="line"><a name="l00461"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6e67c889ff67dffb7fe78f316ad62838"> 461</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div><div class="line"><a name="l00464"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5"> 464</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> = int32_t;</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div><div class="line"><a name="l00467"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68"> 467</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> = int64_t;</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span> </div><div class="line"><a name="l00470"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a82a0f199285060d7fe0eaaefa782cfb6"> 470</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span> </div><div class="line"><a name="l00473"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ad665f29c959f80c965fc5a24ae173f8b"> 473</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div><div class="line"><a name="l00475"></a><span class="lineno"> 475</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00476"></a><span class="lineno"> 476</span>  <span class="comment">//</span></div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="comment">//</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span> </div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> layout_;</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span> </div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="comment">//</span></div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  <span class="comment">//</span></div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00493"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4515c6a78dadf99bf491137e6bb52451"> 493</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4515c6a78dadf99bf491137e6bb52451">ContiguousMatrix</a>(</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> ldm = 0, </div><div class="line"><a name="l00495"></a><span class="lineno"> 495</span>  <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> layout = <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a></div><div class="line"><a name="l00496"></a><span class="lineno"> 496</span>  ):</div><div class="line"><a name="l00497"></a><span class="lineno"> 497</span>  stride_(ldm), layout_(layout) { }</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span> </div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00501"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4c5f7cb47727b7ca7fdce09984c8669d"> 501</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4c5f7cb47727b7ca7fdce09984c8669d">packed</a>(</div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent, </div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">Matrix</a> layout = <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>) {</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span> </div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> ldm = 0;</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  <span class="keywordflow">if</span> (layout == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>) {</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span>  ldm = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  }</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layout == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">Matrix::kRowMajor</a>) {</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  ldm = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span>  }</div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html">ContiguousMatrix</a>(ldm, layout);</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  }</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span> </div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00518"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a1d93f4fd30ebb534de71c0b51bb8a0ef"> 518</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a1d93f4fd30ebb534de71c0b51bb8a0ef">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span>  <span class="keywordflow">if</span> (layout_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>) {</div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <span class="keywordflow">return</span> coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * stride_[0];</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  }</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layout_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">Matrix::kRowMajor</a>) {</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span>  <span class="keywordflow">return</span> coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * stride_[0] + coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  }</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  <span class="comment">// degenerate case</span></div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  }</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  }</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span> </div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00533"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab85bae46a22d05a7d216aefa68188c7f"> 533</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab85bae46a22d05a7d216aefa68188c7f">inverse</a>(<a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  <span class="comment">// TODO</span></div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(0, 0);</div><div class="line"><a name="l00536"></a><span class="lineno"> 536</span>  }</div><div class="line"><a name="l00537"></a><span class="lineno"> 537</span> </div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00540"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a18106fa95703e3cb62761e8ef764ed70"> 540</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a18106fa95703e3cb62761e8ef764ed70">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  }</div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00546"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a189419ce058858e99dbc9990011b6dee"> 546</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a189419ce058858e99dbc9990011b6dee">stride</a>() {</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span>  }</div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span> </div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00552"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a8ef21723cf41040fe2e33721a7cc25e0"> 552</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a8ef21723cf41040fe2e33721a7cc25e0">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  }</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span> </div><div class="line"><a name="l00557"></a><span class="lineno"> 557</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00558"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#aa07b705d092fd1f8030a2369b0405353"> 558</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#aa07b705d092fd1f8030a2369b0405353">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00559"></a><span class="lineno"> 559</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  }</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span> </div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00564"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#af7266ef6f5ba58567103e8792cb0484b"> 564</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ContiguousMatrix.html#af7266ef6f5ba58567103e8792cb0484b">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="keywordflow">if</span> (layout_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">Matrix::kColumnMajor</a>) {</div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="keywordflow">return</span> stride_[0] * extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  }</div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="keywordflow">else</span> <span class="keywordflow">if</span> (layout_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">Matrix::kRowMajor</a>) {</div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span>  <span class="keywordflow">return</span> stride_[0] * extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  }</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  <span class="comment">// degenerate case</span></div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span>  }</div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  }</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span> };</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> BlockRows, <span class="keywordtype">int</span> BlockColumns></div><div class="line"><a name="l00581"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html"> 581</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html">ColumnMajorBlockLinear</a> {</div><div class="line"><a name="l00583"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a721cb27c7abd4ccdd476cf5c64cfe82d"> 583</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span> </div><div class="line"><a name="l00586"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0732c2b94df9a0c10453cba940684cca"> 586</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span> </div><div class="line"><a name="l00589"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839"> 589</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839">Index</a> = int32_t;</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span> </div><div class="line"><a name="l00592"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838"> 592</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838">LongIndex</a> = int64_t;</div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span> </div><div class="line"><a name="l00595"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#ae097874037352b7bf9b7640a9830a3aa"> 595</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span> </div><div class="line"><a name="l00598"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a64a52f31aa332650601a37643adea428"> 598</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span> </div><div class="line"><a name="l00601"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a91fc032744a467348f1b89f31df7bbd6"> 601</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kBlockRows = BlockRows;</div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span> </div><div class="line"><a name="l00604"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a67c82c42797bb2b0f03c2bc4ee6b5e04"> 604</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kBlockColumns = BlockColumns;</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span> </div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  <span class="comment">//</span></div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span>  <span class="comment">//</span></div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span> </div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span> </div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  <span class="comment">//</span></div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="comment">//</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span> </div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00621"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a740b33237fd49dee4692946811e203ba"> 621</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a740b33237fd49dee4692946811e203ba">ColumnMajorBlockLinear</a>(<a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span> </div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00625"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a17c4a1e21d92742ca725379a963a3fc7"> 625</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html">ColumnMajorBlockLinear</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a17c4a1e21d92742ca725379a963a3fc7">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html">ColumnMajorBlockLinear</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() * kBlockRows * kBlockColumns);</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span>  }</div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span> </div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00632"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a849bbda685abc0b855352c429a8f7e08"> 632</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a849bbda685abc0b855352c429a8f7e08">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  <span class="keywordflow">return</span> </div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() % kBlockRows) + </div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() % kBlockColumns) * kBlockRows +</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() / kBlockRows) * kBlockRows * kBlockColumns +</div><div class="line"><a name="l00637"></a><span class="lineno"> 637</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() / kBlockColumns) * stride_[0];</div><div class="line"><a name="l00638"></a><span class="lineno"> 638</span>  }</div><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> </div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00642"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aaf2b7966340292ba65e3cb6163b4348a"> 642</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aaf2b7966340292ba65e3cb6163b4348a">inverse</a>(<a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span> </div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  <span class="comment">// TODO</span></div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(0, 0);</div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  }</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span> </div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00650"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a7cd57a34850bcf5badbbd760c89aed18"> 650</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a7cd57a34850bcf5badbbd760c89aed18">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  }</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00656"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a8c099a9478d79dbefb04b6918b2e53a1"> 656</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a8c099a9478d79dbefb04b6918b2e53a1">stride</a>() {</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00658"></a><span class="lineno"> 658</span>  }</div><div class="line"><a name="l00659"></a><span class="lineno"> 659</span> </div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00662"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#ae02aa695ed7a272c74153681d8d5c8e9"> 662</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839">Index</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#ae02aa695ed7a272c74153681d8d5c8e9">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  }</div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span> </div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00668"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aac5e52b103e49eb50b69e93ce058ed59"> 668</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aac5e52b103e49eb50b69e93ce058ed59">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  }</div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span> </div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00674"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#afa68813c9946c24aa27eae56848a52e6"> 674</a></span>  <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#afa68813c9946c24aa27eae56848a52e6">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <span class="keywordflow">return</span> (extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() + kBlockColumns - 1) / kBlockColumns * stride_[0];</div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  }</div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span> };</div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span> </div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span> <span class="keyword">template</span> <<span class="keywordtype">int</span> BlockRows, <span class="keywordtype">int</span> BlockColumns></div><div class="line"><a name="l00682"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html"> 682</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html">RowMajorBlockLinear</a> {</div><div class="line"><a name="l00684"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#ad52fddc5f2efe0d1bb2468b3f212779b"> 684</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span> </div><div class="line"><a name="l00687"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a7f37ee2ad80dd5c0d75cf12fd4da74b8"> 687</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 1;</div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span> </div><div class="line"><a name="l00690"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25"> 690</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25">Index</a> = int32_t;</div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span> </div><div class="line"><a name="l00693"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840"> 693</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840">LongIndex</a> = int64_t;</div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span> </div><div class="line"><a name="l00696"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#ad64c1c9f54b83558e76db33615c75b2a"> 696</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span> </div><div class="line"><a name="l00699"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a824db2e39add87bd14c1e3af8d0071bf"> 699</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span> </div><div class="line"><a name="l00702"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a09702f09686e247483f1767e8aa9ca62"> 702</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kBlockRows = BlockRows;</div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span> </div><div class="line"><a name="l00705"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a5a883183edfd68dd8dc3406c7b7164d5"> 705</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> kBlockColumns = BlockColumns;</div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span> </div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  <span class="comment">//</span></div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  <span class="comment">//</span></div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span> </div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span> </div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span>  <span class="comment">//</span></div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  <span class="comment">//</span></div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span> </div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00722"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#ac9c5464ff08cbf9a00a9bd6e87b4367e"> 722</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#ac9c5464ff08cbf9a00a9bd6e87b4367e">RowMajorBlockLinear</a>(<a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25">Index</a> ldm = 0): stride_(ldm) { }</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span> </div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00726"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a21b674f37ee92e3ef1413ece1e2f6d49"> 726</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html">RowMajorBlockLinear</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a21b674f37ee92e3ef1413ece1e2f6d49">packed</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent) {</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html">RowMajorBlockLinear</a>(extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() * kBlockRows * kBlockColumns);</div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  }</div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span> </div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00733"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a9faa57c538087f23bc1fe4abf0f6822b"> 733</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a9faa57c538087f23bc1fe4abf0f6822b">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  <span class="keywordflow">return</span> </div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() % kBlockColumns) +</div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() % kBlockRows) * kBlockColumns +</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>() / kBlockColumns) * kBlockRows * kBlockColumns +</div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  (coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() / kBlockRows) * stride_[0];</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  }</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span> </div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00743"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#abcb565659a5e7e3a601eb993d43ea71c"> 743</a></span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#abcb565659a5e7e3a601eb993d43ea71c">inverse</a>(<a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840">LongIndex</a> offset)<span class="keyword"> const </span>{</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  <span class="comment">// TODO</span></div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>(0, 0);</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  }</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span> </div><div class="line"><a name="l00749"></a><span class="lineno"> 749</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00750"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a78a2fa9241d7a75dd8c3dbe6a5070d18"> 750</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a78a2fa9241d7a75dd8c3dbe6a5070d18">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00751"></a><span class="lineno"> 751</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  }</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span> </div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00756"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#addfc2c5b1a65f3a3d5c6aa39edf7ff42"> 756</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#addfc2c5b1a65f3a3d5c6aa39edf7ff42">stride</a>() {</div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  }</div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span> </div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00762"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a599f93fa2e0b2c76f3fd5e050f4d377a"> 762</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25">Index</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a599f93fa2e0b2c76f3fd5e050f4d377a">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  }</div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span> </div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00768"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a02596fdc491279212259e1b8518d8bb7"> 768</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a02596fdc491279212259e1b8518d8bb7">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  }</div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  </div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00774"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4e39977f24228d8a2776ca1652336c3b"> 774</a></span>  <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4e39977f24228d8a2776ca1652336c3b">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="keywordflow">return</span> (extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>() + kBlockRows - 1) / kBlockRows * stride_[0];</div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  }</div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span> };</div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> </div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span> </div><div class="line"><a name="l00781"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html"> 781</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a> {</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span> </div><div class="line"><a name="l00784"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a7f9c6fefefa5e476ae8ba479c9f31ea4"> 784</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">kRank</a> = 2;</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span> </div><div class="line"><a name="l00787"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11fd27e0e5293d0256e9d413cea3605b"> 787</a></span>  <span class="keyword">static</span> <span class="keywordtype">int</span> <span class="keyword">const</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">kStrideRank</a> = 2;</div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span> </div><div class="line"><a name="l00790"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a"> 790</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> = int32_t;</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span> </div><div class="line"><a name="l00793"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b"> 793</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> = int64_t;</div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span> </div><div class="line"><a name="l00796"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11b8b5dfdbeae6e669451ef0eaf5a7cb"> 796</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1MatrixCoord.html">TensorCoord</a> = <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a>;</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> </div><div class="line"><a name="l00799"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c"> 799</a></span>  <span class="keyword">using</span> <a class="code" href="structcutlass_1_1Coord.html">Stride</a> = <a class="code" href="structcutlass_1_1Coord.html">Coord<kStrideRank, Index></a>;</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span> </div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span> <span class="keyword">private</span>:</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  <span class="comment">//</span></div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  <span class="comment">// Data members</span></div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span>  <span class="comment">//</span></div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span> </div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  <a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> layout_id_;</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span> </div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> stride_;</div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span> </div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00812"></a><span class="lineno"> 812</span>  <span class="comment">//</span></div><div class="line"><a name="l00813"></a><span class="lineno"> 813</span>  <span class="comment">// Methods</span></div><div class="line"><a name="l00814"></a><span class="lineno"> 814</span>  <span class="comment">//</span></div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span> </div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00818"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1a8ec23dfd1bb09295f14a8cd67b6c77"> 818</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1a8ec23dfd1bb09295f14a8cd67b6c77">GeneralMatrix</a>(): layout_id_(<a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a>::<a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">kColumnMajor</a>), stride_(<a class="code" href="namespacecutlass.html#a7419519fa453a121dfa5f26bf87318d9">make_Coord</a>(0, 1)) { }</div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span> </div><div class="line"><a name="l00821"></a><span class="lineno"> 821</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00822"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9d9d6cc19f37652321050696e0a06cc0"> 822</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9d9d6cc19f37652321050696e0a06cc0">GeneralMatrix</a>(</div><div class="line"><a name="l00823"></a><span class="lineno"> 823</span>  <a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> layout_id, </div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> ldm, </div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> interleave): layout_id_(layout_id), stride_(<a class="code" href="namespacecutlass.html#a7419519fa453a121dfa5f26bf87318d9">make_Coord</a>(ldm, interleave)) { }</div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span> </div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00829"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a41dac2461e2f7b652fd06df7631df259"> 829</a></span>  <span class="keyword">static</span> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a41dac2461e2f7b652fd06df7631df259">packed</a>(</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent, </div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  <a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> layout_id = <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">MatrixLayout::kColumnMajor</a>, </div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> interleave = 1) {</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> c;</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span>  <span class="keywordflow">if</span> (layout_id == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">MatrixLayout::kRowMajor</a>) {</div><div class="line"><a name="l00836"></a><span class="lineno"> 836</span>  c = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00837"></a><span class="lineno"> 837</span>  }</div><div class="line"><a name="l00838"></a><span class="lineno"> 838</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  c = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  }</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span> </div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> ldm = c * interleave;</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span> </div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  <span class="keywordflow">return</span> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a>(layout_id, ldm, interleave);</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  }</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span> </div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00850"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a3d01a8ce1802bd6c6d4edc5095b1fcb8"> 850</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a3d01a8ce1802bd6c6d4edc5095b1fcb8">operator()</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &coord)<span class="keyword"> const </span>{</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> c, s;</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  <span class="keywordflow">if</span> (layout_id_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">MatrixLayout::kRowMajor</a>) {</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  c = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  s = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  }</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  s = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  c = coord.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  }</div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span> </div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> v = s / stride_[1];</div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> residual = (s % stride_[1]);</div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span> </div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  <span class="keywordflow">return</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(c) * <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(stride_[1]) + <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(v) * <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(stride_[0]) + residual;</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span>  }</div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span> </div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00869"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a5c8b38673989bcdb8534885cdbb23466"> 869</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a5c8b38673989bcdb8534885cdbb23466">stride</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00870"></a><span class="lineno"> 870</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00871"></a><span class="lineno"> 871</span>  }</div><div class="line"><a name="l00872"></a><span class="lineno"> 872</span> </div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00874"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce"> 874</a></span>  <a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce">layout_id</a>()<span class="keyword"> const </span>{</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span>  <span class="keywordflow">return</span> layout_id_;</div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  }</div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span> </div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00880"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9b709dc34939b6873c2cc54ae13b1f24"> 880</a></span>  <a class="code" href="structcutlass_1_1Coord.html">Stride</a> & <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9b709dc34939b6873c2cc54ae13b1f24">stride</a>() {</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span>  <span class="keywordflow">return</span> stride_;</div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  }</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span> </div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00885"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ac49a8ab921f16e8b1411b67e33f0f8e9"> 885</a></span>  <a class="code" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> & <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ac49a8ab921f16e8b1411b67e33f0f8e9">layout_id</a>() {</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  <span class="keywordflow">return</span> layout_id_;</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span>  }</div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span> </div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00891"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1d3cb2dc9f0a4609979525a5bcc6e495"> 891</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1d3cb2dc9f0a4609979525a5bcc6e495">stride</a>(<span class="keywordtype">int</span> idx)<span class="keyword"> const </span>{</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span>  }</div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span> </div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00897"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a91821e7e581e22d3b01221345af3a998"> 897</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> & <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a91821e7e581e22d3b01221345af3a998">stride</a>(<span class="keywordtype">int</span> idx) {</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  <span class="keywordflow">return</span> stride_[idx];</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span>  }</div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  </div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  <a class="code" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="line"><a name="l00903"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a435e6e78b25296cd7ccaada3dcd4e16b"> 903</a></span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a435e6e78b25296cd7ccaada3dcd4e16b">capacity</a>(<a class="code" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> <span class="keyword">const</span> &extent)<span class="keyword"> const </span>{</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> s;</div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  <span class="keywordflow">if</span> (layout_id_ == <a class="code" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">MatrixLayout::kRowMajor</a>) {</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  s = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">row</a>();</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  }</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  <span class="keywordflow">else</span> {</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span>  s = extent.<a class="code" href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">column</a>();</div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  }</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span> </div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span>  <a class="code" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> v = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">Index</a>((s + stride_[1] - 1) / stride_[1]);</div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <span class="keywordflow">return</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(v) * <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">LongIndex</a>(stride_[0]);</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  }</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span> };</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> </div><div class="line"><a name="l00918"></a><span class="lineno"> 918</span> </div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span> <span class="keyword">template</span> <<span class="keyword">typename</span> Layout></div><div class="line"><a name="l00921"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1LayoutTranspose.html"> 921</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1LayoutTranspose.html">LayoutTranspose</a>;</div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span> </div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00925"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1LayoutTranspose_3_01layout_1_1RowMajor_01_4.html"> 925</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1LayoutTranspose.html">LayoutTranspose</a><layout::<a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">RowMajor</a>> {</div><div class="line"><a name="l00926"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1LayoutTranspose_3_01layout_1_1RowMajor_01_4.html#a7b495e82a051115bd7d5d6f38c8106f8"> 926</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">type</a> = <a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">layout::ColumnMajor</a>;</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span> };</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span> </div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span> <span class="keyword">template</span> <></div><div class="line"><a name="l00931"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1LayoutTranspose_3_01layout_1_1ColumnMajor_01_4.html"> 931</a></span> <span class="keyword">struct </span><a class="code" href="structcutlass_1_1layout_1_1LayoutTranspose.html">LayoutTranspose</a><layout::<a class="code" href="classcutlass_1_1layout_1_1ColumnMajor.html">ColumnMajor</a>> {</div><div class="line"><a name="l00932"></a><span class="lineno"><a class="line" href="structcutlass_1_1layout_1_1LayoutTranspose_3_01layout_1_1ColumnMajor_01_4.html#a7389683eb6d1b2f50abd037e1d5b803a"> 932</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">type</a> = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">layout::RowMajor</a>;</div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span> };</div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span> </div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span> </div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span> } <span class="comment">// namespace layout</span></div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span> } <span class="comment">// namespace cutlass</span></div><div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a5cac7085fc5058fce51bc771b94f49d5"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a5cac7085fc5058fce51bc771b94f49d5">cutlass::layout::ContiguousMatrix::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:464</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a4c012aaca002750d6dda744388f6cd30"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4c012aaca002750d6dda744388f6cd30">cutlass::layout::RowMajorInterleaved::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE RowMajorInterleaved packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:283</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_aa8462482c135a9ff7db7c095b0d28333"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#aa8462482c135a9ff7db7c095b0d28333">cutlass::layout::RowMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:323</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a4062a36ab044fdea058504ed52ee60b8"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a4062a36ab044fdea058504ed52ee60b8">cutlass::layout::RowMajor::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:62</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_aac5e52b103e49eb50b69e93ce058ed59"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aac5e52b103e49eb50b69e93ce058ed59">cutlass::layout::ColumnMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:668</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a85c8727c1bf645ac264dfed8186a1240"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a85c8727c1bf645ac264dfed8186a1240">cutlass::layout::ColumnMajorInterleaved< 4 >::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:355</div></div>
|
|
<div class="ttc" id="structcutlass_1_1MatrixCoord_html_afbdcc5ca5b91f11f29046667b0bfde7b"><div class="ttname"><a href="structcutlass_1_1MatrixCoord.html#afbdcc5ca5b91f11f29046667b0bfde7b">cutlass::MatrixCoord::column</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const & column() const </div><div class="ttdoc">Returns the column of the coordinate. </div><div class="ttdef"><b>Definition:</b> matrix_coord.h:85</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a18106fa95703e3cb62761e8ef764ed70"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a18106fa95703e3cb62761e8ef764ed70">cutlass::layout::ContiguousMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:540</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a21b674f37ee92e3ef1413ece1e2f6d49"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a21b674f37ee92e3ef1413ece1e2f6d49">cutlass::layout::RowMajorBlockLinear::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE RowMajorBlockLinear packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:726</div></div>
|
|
<div class="ttc" id="namespacecutlass_html"><div class="ttname"><a href="namespacecutlass.html">cutlass</a></div><div class="ttdef"><b>Definition:</b> aligned_buffer.h:35</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a78a2fa9241d7a75dd8c3dbe6a5070d18"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a78a2fa9241d7a75dd8c3dbe6a5070d18">cutlass::layout::RowMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:750</div></div>
|
|
<div class="ttc" id="namespacecutlass_1_1layout_html_af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca"><div class="ttname"><a href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">cutlass::layout::Matrix::kColumnMajor</a></div><div class="ttdoc">leading dimension refers to stride between columns; stride along rows is 1 </div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a75d4bf6a0c8acaa905263c9b81a17b0a"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a75d4bf6a0c8acaa905263c9b81a17b0a">cutlass::layout::RowMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:311</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a02596fdc491279212259e1b8518d8bb7"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a02596fdc491279212259e1b8518d8bb7">cutlass::layout::RowMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:768</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_acd4d70f17b74ebe3e55ea0027bac5899"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#acd4d70f17b74ebe3e55ea0027bac5899">cutlass::layout::ColumnMajorInterleaved::ColumnMajorInterleaved</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ColumnMajorInterleaved(Index ldm=0)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:381</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a9d9d6cc19f37652321050696e0a06cc0"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9d9d6cc19f37652321050696e0a06cc0">cutlass::layout::GeneralMatrix::GeneralMatrix</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE GeneralMatrix(MatrixLayout layout_id, Index ldm, Index interleave)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:822</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a3560440cff27c7723c731efd75b3e838"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a3560440cff27c7723c731efd75b3e838">cutlass::layout::ColumnMajorBlockLinear::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:592</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html">cutlass::layout::ContiguousMatrix</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:455</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html">cutlass::layout::GeneralMatrix</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:781</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_ae02aa695ed7a272c74153681d8d5c8e9"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#ae02aa695ed7a272c74153681d8d5c8e9">cutlass::layout::ColumnMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:662</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a8233dbf6ef04491c79780bf27893f3e1"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a8233dbf6ef04491c79780bf27893f3e1">cutlass::layout::ColumnMajorInterleaved::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:442</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a6113f2f748c70e41b2bef047a6a61fd7"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a6113f2f748c70e41b2bef047a6a61fd7">cutlass::layout::RowMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:130</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a9d99c511509c83687bfd0b959c64016d"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a9d99c511509c83687bfd0b959c64016d">cutlass::layout::RowMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:124</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a6f84cee3bc8d376971745b00f2eade68"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a6f84cee3bc8d376971745b00f2eade68">cutlass::layout::ContiguousMatrix::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:467</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a4b39c8accf5d11d6cc8d33aeb2b2e5fe"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4b39c8accf5d11d6cc8d33aeb2b2e5fe">cutlass::layout::RowMajorInterleaved< 4 >::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:249</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a3917dbbf6f698bb3267a17f307664e21"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a3917dbbf6f698bb3267a17f307664e21">cutlass::layout::ColumnMajorInterleaved::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:397</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_afe6f769cf227aa2e8f8aedb7012c789b"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">cutlass::layout::GeneralMatrix::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:793</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a080409ff8bd04625b959055476271840"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a080409ff8bd04625b959055476271840">cutlass::layout::RowMajorBlockLinear::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:693</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a1f8883b913b10d3c3512118c4817c71c"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a1f8883b913b10d3c3512118c4817c71c">cutlass::layout::RowMajor::kRank</a></div><div class="ttdeci">static int const kRank</div><div class="ttdoc">Logical rank of tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:53</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a4cf5370ebfe182df8607ce5873151c83"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cf5370ebfe182df8607ce5873151c83">cutlass::layout::ColumnMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:211</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a4eb283431b3f584da127c90080d1e830"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a4eb283431b3f584da127c90080d1e830">cutlass::layout::RowMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:329</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_aa3e25100889b6dfb1a8c1a256e9185ea"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#aa3e25100889b6dfb1a8c1a256e9185ea">cutlass::layout::ColumnMajorInterleaved< 4 >::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:352</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_aa07b705d092fd1f8030a2369b0405353"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#aa07b705d092fd1f8030a2369b0405353">cutlass::layout::ContiguousMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:558</div></div>
|
|
<div class="ttc" id="namespacecutlass_html_a7419519fa453a121dfa5f26bf87318d9"><div class="ttname"><a href="namespacecutlass.html#a7419519fa453a121dfa5f26bf87318d9">cutlass::make_Coord</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Coord< 1 > make_Coord(int _0)</div><div class="ttdoc">Helper to make a 2-element coordinate. </div><div class="ttdef"><b>Definition:</b> coord.h:387</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a4cc90aa67c4692f0a2cd9f59b8a07997"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a4cc90aa67c4692f0a2cd9f59b8a07997">cutlass::layout::ColumnMajor::LongIndex</a></div><div class="ttdeci">int64_t LongIndex</div><div class="ttdoc">Long index type used for offsets. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:154</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_adc69d6cd2cf938d1ab41c4f2ba0589a4"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#adc69d6cd2cf938d1ab41c4f2ba0589a4">cutlass::layout::ColumnMajor::ColumnMajor</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ColumnMajor(Index ldm=0)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:177</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a34770f321b9fefd9c8052abbb1643deb"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a34770f321b9fefd9c8052abbb1643deb">cutlass::layout::RowMajorInterleaved::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:298</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a9faa57c538087f23bc1fe4abf0f6822b"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a9faa57c538087f23bc1fe4abf0f6822b">cutlass::layout::RowMajorBlockLinear::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:733</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_ac827eba11d5fb935273a295d8eb1b972"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#ac827eba11d5fb935273a295d8eb1b972">cutlass::layout::RowMajorInterleaved< 4 >::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:246</div></div>
|
|
<div class="ttc" id="structcutlass_1_1MatrixCoord_html_a0580610f28427e376b24b71f67602d03"><div class="ttname"><a href="structcutlass_1_1MatrixCoord.html#a0580610f28427e376b24b71f67602d03">cutlass::MatrixCoord::row</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index const & row() const </div><div class="ttdoc">Returns the row of the coordinate. </div><div class="ttdef"><b>Definition:</b> matrix_coord.h:77</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a89225f007689acef0e17f6990e32c56e"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a89225f007689acef0e17f6990e32c56e">cutlass::layout::RowMajor::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:136</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a5c651763f14af031cba81d5611fa4224"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a5c651763f14af031cba81d5611fa4224">cutlass::layout::ColumnMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:418</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a0778f24212e546694887f308679426db"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a0778f24212e546694887f308679426db">cutlass::layout::RowMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:112</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a37d81b341052fb816b7a5373efd76c52"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a37d81b341052fb816b7a5373efd76c52">cutlass::layout::RowMajorInterleaved::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:335</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_ac2508255cec15a07a2c082f9a58b7e6d"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#ac2508255cec15a07a2c082f9a58b7e6d">cutlass::layout::RowMajor::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:106</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html">cutlass::layout::ColumnMajorBlockLinear</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:581</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html">cutlass::layout::ColumnMajor</a></div><div class="ttdoc">Mapping function for column-major matrices. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:142</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_ac49a8ab921f16e8b1411b67e33f0f8e9"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#ac49a8ab921f16e8b1411b67e33f0f8e9">cutlass::layout::GeneralMatrix::layout_id</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixLayout & layout_id()</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:885</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a599f93fa2e0b2c76f3fd5e050f4d377a"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a599f93fa2e0b2c76f3fd5e050f4d377a">cutlass::layout::RowMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:762</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a1d3cb2dc9f0a4609979525a5bcc6e495"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1d3cb2dc9f0a4609979525a5bcc6e495">cutlass::layout::GeneralMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:891</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a1a8ec23dfd1bb09295f14a8cd67b6c77"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1a8ec23dfd1bb09295f14a8cd67b6c77">cutlass::layout::GeneralMatrix::GeneralMatrix</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE GeneralMatrix()</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:818</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_aa49e242b14b4f482bc6bdd082acfb576"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#aa49e242b14b4f482bc6bdd082acfb576">cutlass::layout::RowMajor::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:59</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a7cd57a34850bcf5badbbd760c89aed18"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a7cd57a34850bcf5badbbd760c89aed18">cutlass::layout::ColumnMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:650</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_aaf2b7966340292ba65e3cb6163b4348a"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#aaf2b7966340292ba65e3cb6163b4348a">cutlass::layout::ColumnMajorBlockLinear::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:642</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a91821e7e581e22d3b01221345af3a998"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a91821e7e581e22d3b01221345af3a998">cutlass::layout::GeneralMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:897</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_abb932e4b3cb345451a8c6b682d4e7e2d"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#abb932e4b3cb345451a8c6b682d4e7e2d">cutlass::layout::RowMajor::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:100</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_ad36a59739ba2eb58f19e2094cfddb24a"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">cutlass::layout::GeneralMatrix::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:790</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1LayoutTranspose_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1LayoutTranspose.html">cutlass::layout::LayoutTranspose</a></div><div class="ttdoc">Defines transposes of matrix layouts. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:921</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a849bbda685abc0b855352c429a8f7e08"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a849bbda685abc0b855352c429a8f7e08">cutlass::layout::ColumnMajorBlockLinear::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:632</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_af7266ef6f5ba58567103e8792cb0484b"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#af7266ef6f5ba58567103e8792cb0484b">cutlass::layout::ContiguousMatrix::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:564</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a0ed618d4bb2250c01db5bf9ca61e6839"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a0ed618d4bb2250c01db5bf9ca61e6839">cutlass::layout::ColumnMajorBlockLinear::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:589</div></div>
|
|
<div class="ttc" id="namespacecutlass_1_1layout_html_af6b33640063b02d26c261efd25053e6c"><div class="ttname"><a href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6c">cutlass::layout::Matrix</a></div><div class="ttdeci">Matrix</div><div class="ttdoc">Enumerated type for canonical pitch-linear matrix layouts. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:448</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a1d93f4fd30ebb534de71c0b51bb8a0ef"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a1d93f4fd30ebb534de71c0b51bb8a0ef">cutlass::layout::ContiguousMatrix::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:518</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a4d2ea34ea48b0702da0d20ffcd21be30"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a4d2ea34ea48b0702da0d20ffcd21be30">cutlass::layout::ColumnMajor::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:199</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html">cutlass::layout::RowMajorBlockLinear</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:682</div></div>
|
|
<div class="ttc" id="namespacecutlass_html_af99b012f0e1795ca7dc167b7b109dd19"><div class="ttname"><a href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">cutlass::MatrixLayout</a></div><div class="ttdeci">MatrixLayout</div><div class="ttdef"><b>Definition:</b> matrix_traits.h:36</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_af015a6b8ccd665d2b285f8727228054d"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#af015a6b8ccd665d2b285f8727228054d">cutlass::layout::ColumnMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:436</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a4b71b9a7a3e0f9972885798861a18d25"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4b71b9a7a3e0f9972885798861a18d25">cutlass::layout::RowMajorBlockLinear::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:690</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a52b330ac2b80e6e38dfde427114baeea"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a52b330ac2b80e6e38dfde427114baeea">cutlass::layout::RowMajorInterleaved::RowMajorInterleaved</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE RowMajorInterleaved(Stride stride)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:279</div></div>
|
|
<div class="ttc" id="cutlass_8h_html_a28c2443a142676d3d71effdae1a986b1"><div class="ttname"><a href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="ttdeci">#define CUTLASS_HOST_DEVICE</div><div class="ttdef"><b>Definition:</b> cutlass.h:89</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_ab85bae46a22d05a7d216aefa68188c7f"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#ab85bae46a22d05a7d216aefa68188c7f">cutlass::layout::ContiguousMatrix::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:533</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_abcb565659a5e7e3a601eb993d43ea71c"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#abcb565659a5e7e3a601eb993d43ea71c">cutlass::layout::RowMajorBlockLinear::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:743</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_afd7374b993fd41d55a8c02691b02ead7"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#afd7374b993fd41d55a8c02691b02ead7">cutlass::layout::ColumnMajor::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE ColumnMajor packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:186</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_addfc2c5b1a65f3a3d5c6aa39edf7ff42"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#addfc2c5b1a65f3a3d5c6aa39edf7ff42">cutlass::layout::RowMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:756</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_a4e39977f24228d8a2776ca1652336c3b"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#a4e39977f24228d8a2776ca1652336c3b">cutlass::layout::RowMajorBlockLinear::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:774</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a41dac2461e2f7b652fd06df7631df259"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a41dac2461e2f7b652fd06df7631df259">cutlass::layout::GeneralMatrix::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE GeneralMatrix packed(MatrixCoord const &extent, MatrixLayout layout_id=MatrixLayout::kColumnMajor, Index interleave=1)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:829</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_ae0ede39a3011be136c9033327935170d"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#ae0ede39a3011be136c9033327935170d">cutlass::layout::ColumnMajor::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:229</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a6cc1feff4d21b7f5f0cbda665f56a844"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a6cc1feff4d21b7f5f0cbda665f56a844">cutlass::layout::RowMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:118</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a4c5f7cb47727b7ca7fdce09984c8669d"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4c5f7cb47727b7ca7fdce09984c8669d">cutlass::layout::ContiguousMatrix::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE ContiguousMatrix packed(MatrixCoord const &extent, Matrix layout=Matrix::kColumnMajor)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:501</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a056a268507850446b15952d8f9dc37b0"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a056a268507850446b15952d8f9dc37b0">cutlass::layout::ColumnMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:205</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a01720029ba3761a51b43cb030646c245"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a01720029ba3761a51b43cb030646c245">cutlass::layout::ColumnMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:424</div></div>
|
|
<div class="ttc" id="namespacecutlass_1_1layout_html_af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9"><div class="ttname"><a href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6ca1ebc644af759b214a70279505401a0b9">cutlass::layout::Matrix::kRowMajor</a></div><div class="ttdoc">leading dimension refers to stride between rows; stride along columns is 1 </div></div>
|
|
<div class="ttc" id="structcutlass_1_1Coord_html"><div class="ttname"><a href="structcutlass_1_1Coord.html">cutlass::Coord< kStrideRank, Index ></a></div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html">cutlass::layout::RowMajor</a></div><div class="ttdoc">Mapping function for row-major matrices. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:50</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a28531f0da7b36cfa1f42e84c04b8da04"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a28531f0da7b36cfa1f42e84c04b8da04">cutlass::layout::ColumnMajor::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:193</div></div>
|
|
<div class="ttc" id="matrix__coord_8h_html"><div class="ttname"><a href="matrix__coord_8h.html">matrix_coord.h</a></div><div class="ttdoc">Defines a canonical coordinate for rank=2 matrices offering named indices. </div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a1fe768ae500e1960013c2cb95e58dce8"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a1fe768ae500e1960013c2cb95e58dce8">cutlass::layout::RowMajor::RowMajor</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE RowMajor(Stride stride)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:89</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a9b709dc34939b6873c2cc54ae13b1f24"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9b709dc34939b6873c2cc54ae13b1f24">cutlass::layout::GeneralMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:880</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a96a8d6609ee434b21e4a284874582672"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a96a8d6609ee434b21e4a284874582672">cutlass::layout::RowMajorInterleaved::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:290</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a4515c6a78dadf99bf491137e6bb52451"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a4515c6a78dadf99bf491137e6bb52451">cutlass::layout::ContiguousMatrix::ContiguousMatrix</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ContiguousMatrix(Index ldm=0, Matrix layout=Matrix::kColumnMajor)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:493</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_affc8b1731c858eefa55b169042593e93"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#affc8b1731c858eefa55b169042593e93">cutlass::layout::ColumnMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:430</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a8e146c433cca988c6a73bba6744b8ea1"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a8e146c433cca988c6a73bba6744b8ea1">cutlass::layout::RowMajorInterleaved::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:317</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a8ef21723cf41040fe2e33721a7cc25e0"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a8ef21723cf41040fe2e33721a7cc25e0">cutlass::layout::ContiguousMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:552</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a90cd28f4ff4ab211f689bb94201597fa"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a90cd28f4ff4ab211f689bb94201597fa">cutlass::layout::ColumnMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index stride(int idx) const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:217</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a17c4a1e21d92742ca725379a963a3fc7"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a17c4a1e21d92742ca725379a963a3fc7">cutlass::layout::ColumnMajorBlockLinear::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE ColumnMajorBlockLinear packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:625</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a2d4a85bbfbb919349e6fd2b859a0a461"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a2d4a85bbfbb919349e6fd2b859a0a461">cutlass::layout::ColumnMajorInterleaved::ColumnMajorInterleaved</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ColumnMajorInterleaved(Stride stride)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:385</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a3d01a8ce1802bd6c6d4edc5095b1fcb8"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a3d01a8ce1802bd6c6d4edc5095b1fcb8">cutlass::layout::GeneralMatrix::operator()</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex operator()(MatrixCoord const &coord) const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:850</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html">cutlass::layout::ColumnMajorInterleaved</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:343</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a6409273d6b40acb27aff0564eb038336"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a6409273d6b40acb27aff0564eb038336">cutlass::layout::ColumnMajor::Index</a></div><div class="ttdeci">int32_t Index</div><div class="ttdoc">Index type used for coordinates. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:151</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a5c8b38673989bcdb8534885cdbb23466"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a5c8b38673989bcdb8534885cdbb23466">cutlass::layout::GeneralMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride stride() const </div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:869</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a8c099a9478d79dbefb04b6918b2e53a1"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a8c099a9478d79dbefb04b6918b2e53a1">cutlass::layout::ColumnMajorBlockLinear::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:656</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a770edcc93145fc3dfa4dfdf37a7c515e"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a770edcc93145fc3dfa4dfdf37a7c515e">cutlass::layout::RowMajor::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE RowMajor packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:93</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html_a9a965603dd8845191726450514c3463b"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html#a9a965603dd8845191726450514c3463b">cutlass::layout::RowMajorInterleaved::RowMajorInterleaved</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE RowMajorInterleaved(Index ldm=0)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:275</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorBlockLinear_html_ac9c5464ff08cbf9a00a9bd6e87b4367e"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorBlockLinear.html#ac9c5464ff08cbf9a00a9bd6e87b4367e">cutlass::layout::RowMajorBlockLinear::RowMajorBlockLinear</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE RowMajorBlockLinear(Index ldm=0)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:722</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_a435e6e78b25296cd7ccaada3dcd4e16b"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#a435e6e78b25296cd7ccaada3dcd4e16b">cutlass::layout::GeneralMatrix::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:903</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_a7e5a49fed5354bfaf49213bf9b2483dd"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#a7e5a49fed5354bfaf49213bf9b2483dd">cutlass::layout::ColumnMajorInterleaved::inverse</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixCoord inverse(LongIndex offset) const </div><div class="ttdoc">Inverse of layout function, mapping linear offset to logical coordinate. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:405</div></div>
|
|
<div class="ttc" id="matrix__traits_8h_html"><div class="ttname"><a href="matrix__traits_8h.html">matrix_traits.h</a></div><div class="ttdoc">Defines properties of matrices used to denote layout and operands to GEMM kernels. </div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorInterleaved_html_ab690e548a771a3e35357f454f3c924a5"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorInterleaved.html#ab690e548a771a3e35357f454f3c924a5">cutlass::layout::ColumnMajorInterleaved::packed</a></div><div class="ttdeci">static CUTLASS_HOST_DEVICE ColumnMajorInterleaved packed(MatrixCoord const &extent)</div><div class="ttdoc">Helper returns a layout to a tightly packed tensor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:390</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a60e4d879f7de2ae46de85601c540c7d7"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a60e4d879f7de2ae46de85601c540c7d7">cutlass::layout::ColumnMajor::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Index & stride(int idx)</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:223</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ContiguousMatrix_html_a189419ce058858e99dbc9990011b6dee"><div class="ttname"><a href="structcutlass_1_1layout_1_1ContiguousMatrix.html#a189419ce058858e99dbc9990011b6dee">cutlass::layout::ContiguousMatrix::stride</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE Stride & stride()</div><div class="ttdoc">Returns the stride of the layout. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:546</div></div>
|
|
<div class="ttc" id="cutlass_8h_html"><div class="ttname"><a href="cutlass_8h.html">cutlass.h</a></div><div class="ttdoc">Basic include for CUTLASS. </div></div>
|
|
<div class="ttc" id="structcutlass_1_1MatrixCoord_html"><div class="ttname"><a href="structcutlass_1_1MatrixCoord.html">cutlass::MatrixCoord</a></div><div class="ttdef"><b>Definition:</b> matrix_coord.h:39</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_afa68813c9946c24aa27eae56848a52e6"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#afa68813c9946c24aa27eae56848a52e6">cutlass::layout::ColumnMajorBlockLinear::capacity</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE LongIndex capacity(MatrixCoord const &extent) const </div><div class="ttdoc">Compute the number of contiguous elements needed to store a tensor with the given size...</div><div class="ttdef"><b>Definition:</b> layout/matrix.h:674</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1ColumnMajor_html_a0a9383ad9de01697e2df975c3a3e6ab8"><div class="ttname"><a href="classcutlass_1_1layout_1_1ColumnMajor.html#a0a9383ad9de01697e2df975c3a3e6ab8">cutlass::layout::ColumnMajor::ColumnMajor</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ColumnMajor(Stride stride)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:181</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_a4bf573d3c00092f8117ff960b82e2f12"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#a4bf573d3c00092f8117ff960b82e2f12">cutlass::layout::RowMajor::kStrideRank</a></div><div class="ttdeci">static int const kStrideRank</div><div class="ttdoc">Rank of stride vector. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:56</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1ColumnMajorBlockLinear_html_a740b33237fd49dee4692946811e203ba"><div class="ttname"><a href="structcutlass_1_1layout_1_1ColumnMajorBlockLinear.html#a740b33237fd49dee4692946811e203ba">cutlass::layout::ColumnMajorBlockLinear::ColumnMajorBlockLinear</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE ColumnMajorBlockLinear(Index ldm=0)</div><div class="ttdoc">Ctor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:621</div></div>
|
|
<div class="ttc" id="classcutlass_1_1layout_1_1RowMajor_html_afdf845a439366f97f2bece7a6f9f03c4"><div class="ttname"><a href="classcutlass_1_1layout_1_1RowMajor.html#afdf845a439366f97f2bece7a6f9f03c4">cutlass::layout::RowMajor::RowMajor</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE RowMajor(Index ldm=0)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:85</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1GeneralMatrix_html_ae6f7e08582ccc177fca1f27a3518f1ce"><div class="ttname"><a href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce">cutlass::layout::GeneralMatrix::layout_id</a></div><div class="ttdeci">CUTLASS_HOST_DEVICE MatrixLayout layout_id() const </div><div class="ttdef"><b>Definition:</b> layout/matrix.h:874</div></div>
|
|
<div class="ttc" id="structcutlass_1_1layout_1_1RowMajorInterleaved_html"><div class="ttname"><a href="structcutlass_1_1layout_1_1RowMajorInterleaved.html">cutlass::layout::RowMajorInterleaved</a></div><div class="ttdef"><b>Definition:</b> layout/matrix.h:237</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.11
|
|
</small></address>
|
|
</body>
|
|
</html>
|