Re: [Rcpp-devel] Is declaring an argument as a reference the same as declaring it a pointer?

2010-03-29 Thread Romain Francois
Le 27/03/10 23:10, Douglas Bates a écrit : > > I am writing code to interface from Rcpp to the Lapack linear algebra > code which is written in Fortran. > > Because Lapack is written in Fortran all arguments must be passed from > C as pointers. There are many examples of the C versions of the > d

Re: [Rcpp-devel] Rcpp shortcut for R's as.matrix and as.vector

2010-03-29 Thread Romain Francois
Le 29/03/10 15:36, Douglas Bates a écrit : > > Most Lapack routines for solving linear systems from factorizations > allow the right hand side to be a matrix, thereby providing for > solving multiple systems in one call. I would like to preserve this > capability while also allowing for the most

Re: [Rcpp-devel] Warning in R-forge revision 949 of Rcpp

2010-03-29 Thread Romain Francois
Le 28/03/10 18:45, Douglas Bates a écrit : > > I haven't encountered this before. When the -Wall flag is set for a > compilation of a package that includes Rcpp.h you get a warning > > /home/bates/R/x86_64-unknown-linux-gnu-library/2.11/Rcpp/lib/Rcpp/Vector.h: > In member function ‘Rcpp::Vector& >

Re: [Rcpp-devel] Segfault problem when adding RcppFrame to RcppResultSet on gcc 4.1.2

2010-03-29 Thread Romain Francois
Hello, Which version of Rcpp is this ? I think this has been fixed in 0.7.11 Romain Le 30/03/10 03:00, R_help Help a écrit : > > Hi, > > I'm a bit puzzled. I uses exactly the same code in RcppExamples > package to try adding RcppFrame object to RcppResultSet. When running > it gives me segmentat

Re: [Rcpp-devel] RcppArmadillo error

2010-03-29 Thread Romain Francois
Hi, If you want to compile the code that is here http://dirk.eddelbuettel.com/code/rcpp.armadillo.html directly from R CMD SHLIB, you can do this: rom...@naxos /tmp $ export PKG_CXXFLAGS=`Rscript -e "RcppArmadillo:::CxxFlags()"` rom...@naxos /tmp $ export PKG_LIBS=`Rscript -e "RcppArmadillo:::

Re: [Rcpp-devel] c++ graphics device

2010-03-29 Thread Romain Francois
Le 26/03/10 13:18, Dirk Eddelbuettel a écrit : > (resending, this time to list as well, sorry --Dirk) > > On 26 March 2010 at 07:44, Romain Francois wrote: > | Hello, > | > | R's graphics device drivers are currently written using poor man's c++: > | you are supposed to create a pDevDesc struct (de

[Rcpp-devel] Segfault problem when adding RcppFrame to RcppResultSet on gcc 4.1.2

2010-03-29 Thread R_help Help
Hi, I'm a bit puzzled. I uses exactly the same code in RcppExamples package to try adding RcppFrame object to RcppResultSet. When running it gives me segmentation fault problem. I'm using gcc 4.1.2 on redhat 64bit. I'm not sure if this is the cause of the problem. Any advice would be greatly appre

[Rcpp-devel] Rcpp shortcut for R's as.matrix and as.vector

2010-03-29 Thread Douglas Bates
Most Lapack routines for solving linear systems from factorizations allow the right hand side to be a matrix, thereby providing for solving multiple systems in one call. I would like to preserve this capability while also allowing for the most common case where the rhs is a vector. Also, I would