<p>The QUIC-SVD method doesn't work if <code>m = n</code>, however as pointed out in the paper <strong>QUIC-SVD: Fast SVD Using Cosine Trees</strong>:</p>

<blockquote>
<p>Throughout this paper we assume m ≥ n, such that sampling rows gives bigger speedup than sampling columns.</p>
</blockquote>

<p>it should work. One problem is that the CosineNodeSplit(); returns <code>if numColumns &lt; 2</code> so the upcoming operations result in an error:</p>

<pre><code>// Split the node into left and right children.
currentNode-&gt;CosineNodeSplit();

// Obtain pointers to the left and right children of the current node.
CosineTree *currentLeft, *currentRight;
currentLeft = currentNode-&gt;Left();
currentRight = currentNode-&gt;Right();
</code></pre>

<p>Right now, I can't see an easy fix, without changing some bigger parts of the code. Maybe someone else has a simple idea? Maybe <a href="https://github.com/siddharth-agrawal" class="user-mention">@siddharth-agrawal</a>  has an idea?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/issues/717">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIazg6cvMy9hRgGN8CunInTi5K5wks5qTOwPgaJpZM4JHAzz">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFITcEuUWAwoX-KPz-qdE2YITN44aks5qTOwPgaJpZM4JHAzz.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/717"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>