<div dir="ltr"><div><div>This was more of a curiosity question.  Armadillo and Eigen are great and I will likely use them for most of my purposes.  I have just been exploring more of the boost library and was wondering about it.  That said, it would be a potentially useful exercise for me when I have some more time to devote to it.  You mention starting with the as<>() and wrap() converters.  Is there any documentation on developing additional Rcpp functions or should I just go in to the source and try to find my way around?<br><br></div>Regards,<br></div>Charles<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 26, 2015 at 4:00 PM, Dirk Eddelbuettel <span dir="ltr"><<a href="mailto:edd@debian.org" target="_blank">edd@debian.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
On 26 May 2015 at 15:32, Charles Determan wrote:<br>
| I have seen in the archives a discussion of converting a boost ublas matrix to<br>
| Rcpp (<a href="http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/" target="_blank">http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/</a><br>
| 002402.html) but I didn't see anything about passing an R matrix in to a ublas<br>
| object.  There doesn't appear to be an 'as' method for it (unless I have<br>
| somehow overlooked it).  Any recommendations on efficiently getting an R matrix<br>
| in to a boost ublas matrix?<br>
<br>
</div></div>Correct, as far as Rcpp is concerned uBlas is 'a new external entity' so you<br>
would have to start with as<>() and wrap() converters.<br>
<br>
Almost everybody I talked to about ublas "is aware" of it, yet nobody seems<br>
to like it all that much.   Any reason Armadillo or Eigen won't do for you?<br>
<span class="HOEnZb"><font color="#888888"><br>
Dirk<br>
<br>
--<br>
<a href="http://dirk.eddelbuettel.com" target="_blank">http://dirk.eddelbuettel.com</a> | @eddelbuettel | <a href="mailto:edd@debian.org">edd@debian.org</a><br>
</font></span></blockquote></div><br></div>