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? Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel