[Rcpp-devel] Convert R matrix to boost ublas?

Charles Determan cdetermanjr at gmail.com
Wed May 27 15:59:42 CEST 2015


Thanks for the points Dale.  As I said, it would be more of a Rcpp exercise
than anything.  It could potentially be useful for others but it was just
curiosity and a small side project.

Regards,
Charles

On Wed, May 27, 2015 at 8:45 AM, Dale Smith <DSmith at nexidia.com> wrote:

>  Before you undertake any work on ublas, I would read the FAQ carefully.
> There have been no significant commits since 2009.
>
>
>
> http://www.boost.org/doc/libs/1_58_0/libs/numeric/ublas/doc/index.html
>
>
>
> “*Performance?* There are faster alternatives. *Cutting edge?* uBLAS is
> more than 10 years old and missed all new stuff from C++11.”
>
>
>
>
> *Dale Smith, Ph.D.*
> Data Scientist
>> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20logo.png]
> <http://nexidia.com/>
>
> * d.* 404.495.7220 x 4008   *f.* 404.795.7221
> Nexidia Corporate | 3565 Piedmont Road, Building Two, Suite 400 | Atlanta,
> GA 30305
>
> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20Blog.jpeg]
> <http://blog.nexidia.com/> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20LinkedIn.jpeg]
> <https://www.linkedin.com/company/nexidia> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20Google.jpeg]
> <https://plus.google.com/u/0/107921893643164441840/posts> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20twitter.jpeg]
> <https://twitter.com/Nexidia> [image:
> http://host.msgapp.com/Extranet/96621/Signature%20Images/sig%20Youtube.jpeg]
> <https://www.youtube.com/user/NexidiaTV>
>
>
>
> *From:* rcpp-devel-bounces at lists.r-forge.r-project.org [mailto:
> rcpp-devel-bounces at lists.r-forge.r-project.org] *On Behalf Of *Charles
> Determan
> *Sent:* Wednesday, May 27, 2015 8:10 AM
> *To:* Dirk Eddelbuettel
> *Cc:* rcpp-devel at lists.r-forge.r-project.org
> *Subject:* Re: [Rcpp-devel] Convert R matrix to boost ublas?
>
>
>
> 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?
>
> Regards,
>
> Charles
>
>
>
> On Tue, May 26, 2015 at 4:00 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
>
>
> On 26 May 2015 at 15:32, Charles Determan wrote:
> | I have seen in the archives a discussion of converting a boost ublas
> matrix to
> | Rcpp (http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011-June/
> | 002402.html) but I didn't see anything about passing an R matrix in to a
> ublas
> | object.  There doesn't appear to be an 'as' method for it (unless I have
> | somehow overlooked it).  Any recommendations on efficiently getting an R
> matrix
> | in to a boost ublas matrix?
>
> Correct, as far as Rcpp is concerned uBlas is 'a new external entity' so
> you
> would have to start with as<>() and wrap() converters.
>
> Almost everybody I talked to about ublas "is aware" of it, yet nobody seems
> to like it all that much.   Any reason Armadillo or Eigen won't do for you?
>
> Dirk
>
> --
> http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 8361 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 762 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0005.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 765 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0006.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 740 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0007.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 753 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0008.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 749 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20150527/55d2e6e9/attachment-0009.jpg>


More information about the Rcpp-devel mailing list