Armadillo -> Sparse matrix with repeated (translated) rows
<p>Is there an optimal way of using such a construct? Let <code>M</code> be a matrix</p>

<pre><code>xx0000...

00xx00...

0000xx...
</code></pre>

<p>Forgive the <code>ASCII</code> description of the matrix, I could not get latex to work.</p>

<p>I am dealing with huge matrices, so an optimization is needed. I thank you in advance.</p>