Venelin,

For completeness, things also work for me on conversion vectors 'in':

R> cppFunction("SEXP uvec2(arma::uvec v) { arma::uvec w = 2*v; return(wrap(w)); 
}", depends="RcppArmadillo")
R> uvec2(seq(1L, 3L))
     [,1]
[1,]    2
[2,]    4
[3,]    6
R> cppFunction("SEXP ivec2(arma::ivec v) { arma::ivec w = 2*v; return(wrap(w)); 
}", depends="RcppArmadillo")
R> ivec2(seq(1L, 3L))
     [,1]
[1,]    2
[2,]    4
[3,]    6
R> 

A reproducible example would be good.

Dirk

-- 
Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to