I tried with Rcpp::NumericMatrix but I have segmentation fault :-( This is probably because I'm learning C++ just now...and I don't know how to deal with pointers and so on...
I don't know how to declare NumericMatrix in my objects... if I do it I have segfault... How can I send you the source archive ? Is it possible to attach them in ML ? Thanks ! On Fri, Sep 24, 2010 at 2:55 PM, Romain Francois <[email protected]>wrote: > Le 24/09/10 14:51, Alessandro Torrisi a écrit : > > Installed versions: >> >> Rcpp "Rcpp" "/usr/lib/R/site-library" "0.8.6" >> RInside "RInside" "/usr/lib/R/site-libRomain Francois < >> [email protected]>rary" "0.2.3" >> >> About the example, what do you exactly need ? I'm a newbie :-D >> > > Something self contained I can compile on my machine and that shows the > error you see. > > > I ran the tests and everything seems to go fine with their compilation >> and execution. >> I can't see any errors, only "good" output from R and C++. >> > > That's good news. It means we really need to see your example. > > > About the vector< vector<double> > I'm trying to set a matrix instead of >> a list of vectors because the source of our portfolioBenchmark function >> needs that kind of data type. >> > > Do you have to store it as a vector< vector<double> > ? > Can't you use, e.g. a Rcpp::NumericMatrix ? > > Romain > > Thanks again, >> Alex >> >> On Fri, Sep 24, 2010 at 1:55 PM, Dirk Eddelbuettel <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> On 24 September 2010 at 13:41, Romain Francois wrote: >> | > My environment is Linux Ubuntu 32 bit with R version 2.11.1 >> (2010-05-31). >> | > Do you need more info ? >> | >> | What versions of Rcpp and RInside are you using ? >> | >> | It would be useful if you can provide a small reproducible example so >> | that we can debug it on our end. >> >> Also, do all RInside examples work for you? Do something like >> >> e...@max:~/svn/rcppbook/papers/rjournal-2010$ mkdir /tmp/check >> e...@max:~/svn/rcppbook/papers/rjournal-2010$ cd /tmp/check/ >> e...@max:/tmp/check$ cp -vax >> /usr/local/lib/R/site-library/RInside/examples/standard/* . >> e...@max:/tmp/check$ make >> >> and run the examples via >> >> e...@max:/tmp/check$ make runAll >> >> Some of these do run portfolio optim. tests from Rmetrics so it'll >> give you >> an idea. They should all work on released pairs of Rcpp + RInside -- >> it is >> part of our testing. >> >> Dirk >> >> >> -- >> Dirk Eddelbuettel | [email protected] <mailto:[email protected]> | >> >> http://dirk.eddelbuettel.com >> >> >> >> >> -- >> Alessandro Torrisi >> Information Technology Consultant >> Email: [email protected] <mailto:[email protected]> >> >> Skype: alessandro.torrisi >> Tel: +39/333/2442546 >> >> "Questo documento è formato esclusivamente per il destinatario. Tutte le >> informazioni ivi contenute, compresi eventuali allegati, sono soggette a >> riservatezza a termini del vigente D.Lgs. 196/2003 in materia di >> "privacy" e quindi ne è proibita l'utilizzazione. Se avete ricevuto per >> errore questo messaggio, Vi preghiamo cortesemente di contattare >> immediatamente il mittente e cancellare la e-mail. Grazie." >> >> >> >> _______________________________________________ >> Rcpp-devel mailing list >> [email protected] >> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel >> > > > -- > Romain Francois > Professional R Enthusiast > +33(0) 6 28 91 30 30 > http://romainfrancois.blog.free.fr > |- http://bit.ly/cCmbgg : Rcpp 0.8.6 > |- http://bit.ly/bzoWrs : Rcpp svn revision 2000 > `- http://bit.ly/b8VNE2 : Rcpp at LondonR, oct 5th > > > -- Alessandro Torrisi Information Technology Consultant Email: [email protected] Skype: alessandro.torrisi Tel: +39/333/2442546 "Questo documento è formato esclusivamente per il destinatario. Tutte le informazioni ivi contenute, compresi eventuali allegati, sono soggette a riservatezza a termini del vigente D.Lgs. 196/2003 in materia di "privacy" e quindi ne è proibita l'utilizzazione. Se avete ricevuto per errore questo messaggio, Vi preghiamo cortesemente di contattare immediatamente il mittente e cancellare la e-mail. Grazie."
_______________________________________________ Rcpp-devel mailing list [email protected] https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel
