Hi Romain, oh thanks! I haven't recognized this one, even though I use armadillo now for more than a half year ;)
best Simon On Jun 6, 2013, at 6:48 PM, Romain Francois <rom...@r-enthusiasts.com> wrote: > Le 06/06/13 18:38, Simon Zehnder a écrit : >> Hi Dirk, >> >> thanks for the fast reply. It seems, that using ints is the only possibility >> here. I understand though, that the arma::umat has type 'unsigned int', >> hasn't it? So in this case I wouldn't be able to use umat, but rather >> mat<int>, right? > > Which is arma::imat > > See http://arma.sourceforge.net/docs.html#Mat > >> Best >> >> Simon >> >> >> On Jun 6, 2013, at 6:32 PM, Dirk Eddelbuettel <e...@debian.org> wrote: >> >>> >>> On 6 June 2013 at 18:03, Simon Zehnder wrote: >>> | What I need is an arma::umat in C++ and if possible in addition an >>> integer array in R. Is this possible? >>> >>> R itself has no unsigned integers (just as it has no [signed or unsigned] >>> short or long integeger). >>> >>> You should be able to write wrappers though, but this MUST entail copies for >>> that very reason. So maybe stick to ints? >>> >>> Dirk > > > -- > Romain Francois > Professional R Enthusiast > +33(0) 6 28 91 30 30 > > R Graph Gallery: http://gallery.r-enthusiasts.com > > blog: http://blog.r-enthusiasts.com > |- http://bit.ly/Zs97qg : highlight 0.4.1 > `- http://bit.ly/10X94UM : Mobile version of the graph gallery > > _______________________________________________ > 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 _______________________________________________ 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