<p>Hi again Ryan,</p>

<p>Thanks for the tips about using 64 bit words, I certainly got myself into something bad there...<br>
I followed the linear algebra through properly, and it would seem I needed to take the transpose of the design matrix x. Having done this before passing to the mlpack function, all works as expected!</p>

<p>I'm not sure whether this is my oversight, or that the mlpack function does not follow convention?<br>
(to recap, I was supplying predictors with 3069 rows and 1 column, and equally dimensioned responses. If I take the transpose of the responses so they're 1x3069 instead all is well)<br>
My reading of <a href="https://en.wikipedia.org/wiki/Design_matrix">https://en.wikipedia.org/wiki/Design_matrix</a> suggests the latter, but I might well have got that wrong.</p>

<p>Either way, perhaps a test + error on the initial dimensions would be preferable to a segfault?</p>

<p>Thanks again for all your help, and for a great bit of software!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/428#issuecomment-88130711">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDb63-YukXItulzCI0gcSuXYO_IPks5n6rOYgaJpZM4D3Y7n.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/428#issuecomment-88130711"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>