<p>So it turns out <code>dot(A, B)</code> also works for matrices, so this could be another alternative. either way, I'm still not sure about the slow down, but I think we need to fix the optimizer first (and I'm working on writing up a summary of my findings now). </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/pull/2#issuecomment-68506548">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFACv7y8SKAZn38rHXPM7ct4q5CeMks5ndf-ygaJpZM4DK2qy.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/pull/2#issuecomment-68506548"></link>
    <meta itemprop="name" content="View Pull Request"></meta>
  </div>
  <meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>