Re: [Rcpp-devel] binding, combining vectors

2012-12-13 Thread Andreas Alfons
suggestions : combine, bind ? > > The idea is to avoid writing code like this: > > CharacterVector x, y ; > CharacterVector z( x.size() + y.size() ) ; > int i=0; > for( ; i for( int j=0; j > I know it is not a big deal for people to write this code, but for > example this do

Re: [Rcpp-devel] OpenMP and Rinside

2012-08-01 Thread Andreas Alfons
cook up an example for a simple and easily-to-use parallel > problem. > > Dirk > > -- > Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com > ___ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org

Re: [Rcpp-devel] Using sparse matrices from the Matrix package in Rcpp

2012-06-25 Thread Andreas Alfons
> To me it seems that I can not acces entries (i,j) using A(i,j) when A is a > sparse matrix. Is that so? - and if yes, any suggestions on what I can do > alternatively? Take a look at the coeff() method, e.g., A.coeff(i,j) See also its documentation: http://eigen.tuxfamily.org/dox-devel/classE

Re: [Rcpp-devel] Eigen vs Arma -- was: Re: Ceres nonlinear least squares solver

2012-05-07 Thread Andreas Alfons
es the > things, even for her statistics research, but I don't seem to "get it".) > > -- Mike > ___ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org<mailto:Rcpp-devel@lists.r-forge.r-project.org> >

Re: [Rcpp-devel] RcppEigen: .conservativeResize() on 32-bit Windows

2012-04-05 Thread Andreas Alfons
s, but also with doubles. Maybe it is an alignment issue? - Andreas > As I don't have easy access to a Windows system with the R development > tools installed I don't think I can help debug this. -- Andreas Alfons Faculty of Business

Re: [Rcpp-devel] RcppEigen: .conservativeResize() on 32-bit Windows

2012-04-04 Thread Andreas Alfons
t's only my machine, since the checks on win-builder also threw an error when I submitted my package (it could not run the examples). - Andreas -- Andreas Alfons Faculty of Business and Economics, KU Leuven www.econ.kuleuven.be/andreas.alfons/public/ _

[Rcpp-devel] RcppEigen: .conservativeResize() on 32-bit Windows

2012-04-04 Thread Andreas Alfons
s 7, too, so maybe I this will provide a workaround for now. Thanks in advance for your help and sorry for the quite long mail! - Andreas -- Andreas Alfons Faculty of Business and Economics, KU Leuven www.econ.kuleuven.be/andreas.alfons/public/ ___ Rcpp-deve