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