cutlass/docs/structcutlass_1_1layout_1_1...

568 lines
32 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: cutlass::layout::GeneralMatrix Struct Reference</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&#160;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 class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><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="annotated.html"><span>Class&#160;List</span></a></li>
<li><a href="classes.html"><span>Class&#160;Index</span></a></li>
<li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class&#160;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="namespacecutlass.html">cutlass</a></li><li class="navelem"><a class="el" href="namespacecutlass_1_1layout.html">layout</a></li><li class="navelem"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-static-attribs">Static Public Attributes</a> &#124;
<a href="structcutlass_1_1layout_1_1GeneralMatrix-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">cutlass::layout::GeneralMatrix Struct Reference</div> </div>
</div><!--header-->
<div class="contents">
<p><code>#include &lt;<a class="el" href="layout_2matrix_8h_source.html">matrix.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:ad36a59739ba2eb58f19e2094cfddb24a"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> = int32_t</td></tr>
<tr class="memdesc:ad36a59739ba2eb58f19e2094cfddb24a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Index type used for coordinates. <a href="#ad36a59739ba2eb58f19e2094cfddb24a">More...</a><br /></td></tr>
<tr class="separator:ad36a59739ba2eb58f19e2094cfddb24a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe6f769cf227aa2e8f8aedb7012c789b"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> = int64_t</td></tr>
<tr class="memdesc:afe6f769cf227aa2e8f8aedb7012c789b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Long index type used for offsets. <a href="#afe6f769cf227aa2e8f8aedb7012c789b">More...</a><br /></td></tr>
<tr class="separator:afe6f769cf227aa2e8f8aedb7012c789b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11b8b5dfdbeae6e669451ef0eaf5a7cb"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11b8b5dfdbeae6e669451ef0eaf5a7cb">TensorCoord</a> = <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a></td></tr>
<tr class="memdesc:a11b8b5dfdbeae6e669451ef0eaf5a7cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logical coordinate. <a href="#a11b8b5dfdbeae6e669451ef0eaf5a7cb">More...</a><br /></td></tr>
<tr class="separator:a11b8b5dfdbeae6e669451ef0eaf5a7cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3369b1c00755f430237fcf9d8ac451c"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">Stride</a> = <a class="el" href="structcutlass_1_1Coord.html">Coord</a>&lt; <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11fd27e0e5293d0256e9d413cea3605b">kStrideRank</a>, <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> &gt;</td></tr>
<tr class="memdesc:ae3369b1c00755f430237fcf9d8ac451c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Stride vector. <a href="#ae3369b1c00755f430237fcf9d8ac451c">More...</a><br /></td></tr>
<tr class="separator:ae3369b1c00755f430237fcf9d8ac451c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a1a8ec23dfd1bb09295f14a8cd67b6c77"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1a8ec23dfd1bb09295f14a8cd67b6c77">GeneralMatrix</a> ()</td></tr>
<tr class="memdesc:a1a8ec23dfd1bb09295f14a8cd67b6c77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor. <a href="#a1a8ec23dfd1bb09295f14a8cd67b6c77">More...</a><br /></td></tr>
<tr class="separator:a1a8ec23dfd1bb09295f14a8cd67b6c77"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d9d6cc19f37652321050696e0a06cc0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9d9d6cc19f37652321050696e0a06cc0">GeneralMatrix</a> (<a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce">layout_id</a>, <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> ldm, <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> interleave)</td></tr>
<tr class="memdesc:a9d9d6cc19f37652321050696e0a06cc0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ctor. <a href="#a9d9d6cc19f37652321050696e0a06cc0">More...</a><br /></td></tr>
<tr class="separator:a9d9d6cc19f37652321050696e0a06cc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d01a8ce1802bd6c6d4edc5095b1fcb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a3d01a8ce1802bd6c6d4edc5095b1fcb8">operator()</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;coord) const </td></tr>
<tr class="separator:a3d01a8ce1802bd6c6d4edc5095b1fcb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c8b38673989bcdb8534885cdbb23466"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">Stride</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a5c8b38673989bcdb8534885cdbb23466">stride</a> () const </td></tr>
<tr class="memdesc:a5c8b38673989bcdb8534885cdbb23466"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout. <a href="#a5c8b38673989bcdb8534885cdbb23466">More...</a><br /></td></tr>
<tr class="separator:a5c8b38673989bcdb8534885cdbb23466"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6f7e08582ccc177fca1f27a3518f1ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce">layout_id</a> () const </td></tr>
<tr class="separator:ae6f7e08582ccc177fca1f27a3518f1ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b709dc34939b6873c2cc54ae13b1f24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">Stride</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a9b709dc34939b6873c2cc54ae13b1f24">stride</a> ()</td></tr>
<tr class="memdesc:a9b709dc34939b6873c2cc54ae13b1f24"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout. <a href="#a9b709dc34939b6873c2cc54ae13b1f24">More...</a><br /></td></tr>
<tr class="separator:a9b709dc34939b6873c2cc54ae13b1f24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac49a8ab921f16e8b1411b67e33f0f8e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ac49a8ab921f16e8b1411b67e33f0f8e9">layout_id</a> ()</td></tr>
<tr class="separator:ac49a8ab921f16e8b1411b67e33f0f8e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d3cb2dc9f0a4609979525a5bcc6e495"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a1d3cb2dc9f0a4609979525a5bcc6e495">stride</a> (int idx) const </td></tr>
<tr class="memdesc:a1d3cb2dc9f0a4609979525a5bcc6e495"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout. <a href="#a1d3cb2dc9f0a4609979525a5bcc6e495">More...</a><br /></td></tr>
<tr class="separator:a1d3cb2dc9f0a4609979525a5bcc6e495"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91821e7e581e22d3b01221345af3a998"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a91821e7e581e22d3b01221345af3a998">stride</a> (int idx)</td></tr>
<tr class="memdesc:a91821e7e581e22d3b01221345af3a998"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the stride of the layout. <a href="#a91821e7e581e22d3b01221345af3a998">More...</a><br /></td></tr>
<tr class="separator:a91821e7e581e22d3b01221345af3a998"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a435e6e78b25296cd7ccaada3dcd4e16b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a435e6e78b25296cd7ccaada3dcd4e16b">capacity</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;extent) const </td></tr>
<tr class="memdesc:a435e6e78b25296cd7ccaada3dcd4e16b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute the number of contiguous elements needed to store a tensor with the given size. <a href="#a435e6e78b25296cd7ccaada3dcd4e16b">More...</a><br /></td></tr>
<tr class="separator:a435e6e78b25296cd7ccaada3dcd4e16b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a41dac2461e2f7b652fd06df7631df259"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a41dac2461e2f7b652fd06df7631df259">packed</a> (<a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;extent, <a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae6f7e08582ccc177fca1f27a3518f1ce">layout_id</a>=<a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">MatrixLayout::kColumnMajor</a>, <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> interleave=1)</td></tr>
<tr class="memdesc:a41dac2461e2f7b652fd06df7631df259"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper returns a layout to a tightly packed tensor. <a href="#a41dac2461e2f7b652fd06df7631df259">More...</a><br /></td></tr>
<tr class="separator:a41dac2461e2f7b652fd06df7631df259"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
Static Public Attributes</h2></td></tr>
<tr class="memitem:a7f9c6fefefa5e476ae8ba479c9f31ea4"><td class="memItemLeft" align="right" valign="top">static int const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a7f9c6fefefa5e476ae8ba479c9f31ea4">kRank</a> = 2</td></tr>
<tr class="memdesc:a7f9c6fefefa5e476ae8ba479c9f31ea4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Logical rank of tensor. <a href="#a7f9c6fefefa5e476ae8ba479c9f31ea4">More...</a><br /></td></tr>
<tr class="separator:a7f9c6fefefa5e476ae8ba479c9f31ea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11fd27e0e5293d0256e9d413cea3605b"><td class="memItemLeft" align="right" valign="top">static int const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11fd27e0e5293d0256e9d413cea3605b">kStrideRank</a> = 2</td></tr>
<tr class="memdesc:a11fd27e0e5293d0256e9d413cea3605b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rank of stride vector. <a href="#a11fd27e0e5293d0256e9d413cea3605b">More...</a><br /></td></tr>
<tr class="separator:a11fd27e0e5293d0256e9d413cea3605b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Typedef Documentation</h2>
<a class="anchor" id="ad36a59739ba2eb58f19e2094cfddb24a"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">cutlass::layout::GeneralMatrix::Index</a> = int32_t</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="afe6f769cf227aa2e8f8aedb7012c789b"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">cutlass::layout::GeneralMatrix::LongIndex</a> = int64_t</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ae3369b1c00755f430237fcf9d8ac451c"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">cutlass::layout::GeneralMatrix::Stride</a> = <a class="el" href="structcutlass_1_1Coord.html">Coord</a>&lt;<a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11fd27e0e5293d0256e9d413cea3605b">kStrideRank</a>, <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&gt;</td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a11b8b5dfdbeae6e669451ef0eaf5a7cb"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">using <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#a11b8b5dfdbeae6e669451ef0eaf5a7cb">cutlass::layout::GeneralMatrix::TensorCoord</a> = <a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a></td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a1a8ec23dfd1bb09295f14a8cd67b6c77"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::layout::GeneralMatrix::GeneralMatrix </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9d9d6cc19f37652321050696e0a06cc0"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> cutlass::layout::GeneralMatrix::GeneralMatrix </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a>&#160;</td>
<td class="paramname"><em>layout_id</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&#160;</td>
<td class="paramname"><em>ldm</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&#160;</td>
<td class="paramname"><em>interleave</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a435e6e78b25296cd7ccaada3dcd4e16b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> cutlass::layout::GeneralMatrix::capacity </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
<td class="paramname"><em>extent</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ae6f7e08582ccc177fca1f27a3518f1ce"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a> cutlass::layout::GeneralMatrix::layout_id </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="ac49a8ab921f16e8b1411b67e33f0f8e9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a>&amp; cutlass::layout::GeneralMatrix::layout_id </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a3d01a8ce1802bd6c6d4edc5095b1fcb8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#afe6f769cf227aa2e8f8aedb7012c789b">LongIndex</a> cutlass::layout::GeneralMatrix::operator() </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
<td class="paramname"><em>coord</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns the offset of a coordinate in linear memory. Assumes coordinate has convention (row, column) </p>
</div>
</div>
<a class="anchor" id="a41dac2461e2f7b652fd06df7631df259"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html">GeneralMatrix</a> cutlass::layout::GeneralMatrix::packed </td>
<td>(</td>
<td class="paramtype"><a class="el" href="structcutlass_1_1MatrixCoord.html">MatrixCoord</a> const &amp;&#160;</td>
<td class="paramname"><em>extent</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespacecutlass.html#af99b012f0e1795ca7dc167b7b109dd19">MatrixLayout</a>&#160;</td>
<td class="paramname"><em>layout_id</em> = <code><a class="el" href="namespacecutlass_1_1layout.html#af6b33640063b02d26c261efd25053e6cabbcb6d9641fe76477dcbe3b209efa7ca">MatrixLayout::kColumnMajor</a></code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&#160;</td>
<td class="paramname"><em>interleave</em> = <code>1</code>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a5c8b38673989bcdb8534885cdbb23466"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">Stride</a> cutlass::layout::GeneralMatrix::stride </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a9b709dc34939b6873c2cc54ae13b1f24"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ae3369b1c00755f430237fcf9d8ac451c">Stride</a>&amp; cutlass::layout::GeneralMatrix::stride </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a1d3cb2dc9f0a4609979525a5bcc6e495"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a> cutlass::layout::GeneralMatrix::stride </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>idx</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a91821e7e581e22d3b01221345af3a998"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a> <a class="el" href="structcutlass_1_1layout_1_1GeneralMatrix.html#ad36a59739ba2eb58f19e2094cfddb24a">Index</a>&amp; cutlass::layout::GeneralMatrix::stride </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>idx</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a7f9c6fefefa5e476ae8ba479c9f31ea4"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int const cutlass::layout::GeneralMatrix::kRank = 2</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<a class="anchor" id="a11fd27e0e5293d0256e9d413cea3605b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">int const cutlass::layout::GeneralMatrix::kStrideRank = 2</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="layout_2matrix_8h_source.html">layout/matrix.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>