="block">CP rexpand operation (single input, single output), the classic example of this operation is one hot encoding of a
 column to multiple columns.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>in</code> - Input matrix</dd>
<dd><code>ret</code> - Output matrix</dd>
<dd><code>max</code> - Number of rows/cols of the output</dd>
<dd><code>rows</code> - If the expansion is in rows direction</dd>
<dd><code>cast</code> - If the values contained should be cast to double (rounded up