<div>I'll see if I can dig up the old benchmarks I wrote looking at it; I'm pretty sure I tried using both the (i,j) and .at(i,j) methods for accessing, but I'll have to double-check. In any case, it was pretty much the same sort of test as the code in my initial email - looping over a moderate sized matrix, multiplying certain individual elements and adding. Of course, I may well be overstating the "much"! It's been a couple of months since I looked at it, IIRC.</div>
<div> </div>
<div>- Andy<br><br></div>
<div class="gmail_quote">On Wed, Aug 1, 2012 at 5:34 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>| > Since RcppArmadillo was much slower than using STL vectors last time I tried<br>| > it, I decided to benchmark Eigen before rewriting any code (see code below<br><br></div>Could you try to demonstrate that with a quick example? I'd be surprised if<br>
it were generally true, outside of maybe a corner-case or unusual config you<br>may have hit upon.<br><span><font color="#888888"><br>Dirk<br><br>--<br>Dirk Eddelbuettel | <a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a> | <a href="http://dirk.eddelbuettel.com/" target="_blank">http://dirk.eddelbuettel.com</a><br>
</font></span></blockquote></div><br>