[Rcpp-devel] return Colvec as vector

Sokol Serguei serguei.sokol at gmail.com
Sat Jul 29 10:47:14 CEST 2017


Dirk Eddelbuettel has written at  Fri, 28 Jul 2017 17:28:11 -0500
> On 28 July 2017 at 14:59, Serguei Sokol wrote:
> | Le 28/07/2017 à 13:45, Dirk Eddelbuettel a écrit :
> | > Don't think so, but I have thought about it too, and I was planning to bring
> | > this up.  I also find the 'always forced to be dimension one matrix' to be a
> | > (very early) design decision I would not make again.  And I have been
> | > thinking along similar lines---we need an option to restore it / keep it as
> | > the defaults, and a newer alternative to let this collapse to a dimless
> | > vector.  What you rprose could work (maybe by prefixing RCPP_ARMADILLO_ to
> | > the #define though).
> | Cool. Then to be complete, we can think about a full set of options, smth. like:
> | RCPP_ARMADILLO_RETURN_COLVEC_AS_VECTOR
> | RCPP_ARMADILLO_RETURN_ROWVEC_AS_VECTOR
> | RCPP_ARMADILLO_RETURN_ANYVEC_AS_VECTOR
>
> Thumbs up!
>
> Do you want to sketch a pull request, or shall we take this offline?
A pull request #151 is awaiting your exam.

Serguei.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20170729/5592687d/attachment.html>


More information about the Rcpp-devel mailing list