Skip to content

[Rcpp-devel] R.e. Fwd: problem with rmultinom function

2 messages · s niani, Dirk Eddelbuettel

#
On Wed, Jun 1, 2011 at 3:51 AM, Christian Gunning <xian at unm.edu> wrote:

            
Yeah, I did the same mistake.
worked perfectly for small datasets, but for some large datasets,
it doesn't work

There were a few offhand things that I modified, e.g. maxItr wasn't
code, in the original code I have to pick a topic for each word in each
question and also pick a persona for each question in document, and I think
I have no other option.

Lastly, are you *just* using rmultinom and Cwhich to roll a K or P
Thanks
my code to this format and ran it on one of the largest dataset, it is still
running and usually it takes 3,4 days to be completed for 3000 iteration, so
far I haven't seen the former exceptions that happened in .Call version, I
hope it doesn't occur again. I let you know if it ends without any
exception.
but still I cant understand why that exceptions happen in .Call version.
Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20110601/52915ae3/attachment.htm>
#
On 1 June 2011 at 15:24, s niani wrote:
| Thanks you so much for suggesting inline, it really helped me. ?I changed my
| code to this format and ran it on one of the largest dataset, it is still
| running and usually it takes 3,4 days to be completed for 3000 iteration, so
| far I?haven't?seen the former exceptions that?happened in .Call version, I
| hope it?doesn't?occur again. I let you know if it ends without any exception.
| but still I cant?understand?why that exceptions happen in .Call version.

You are seemingly confused: every Rcpp-based function uses .Call() as that
is R's interface for SEXP types. This includes inline which simply happens to
write the code around .Call() for you (and then some).

Dirk