><code>cols</code> - number of columns</dd>
<dd><code>rowwise</code> - if true, reshape by row</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>output matrix</dd>
</dl>
</li>
</ul>
<a id="reshape(org.apache.sysds.runtime.matrix.data.MatrixBlock,org.apache.sysds.runtime.matrix.data.MatrixBlock,int,int,boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>reshape</h4>
<pre class="methodSignature">public static&nbsp;<a href="MatrixBlock.html" title="class in org.apache.sysds.r