<p><a href="https://github.com/stereomatchingkiss" class="user-mention">@stereomatchingkiss</a> it took me a little time to learn openMP, using the code above, I got slightly worse result of 0.191777s (previous one being 0.129665s)with same 1000000 iterations. (10 x 10 matrix)</p>

<p>I wasn't sure of where mlpack defines number of threads, but I manually set 4 threads while running this.</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/pull/666#issuecomment-224671094">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIH7Nb-oiH3wnME7HO64vjmj0H2cks5qJv88gaJpZM4IsxhK">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFOtM4AxqaUwwxDYu35gIM7zqxVaTks5qJv88gaJpZM4IsxhK.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/666#issuecomment-224671094"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>