Your message dated Sat, 28 Jan 2012 01:37:58 +0530 (IST)
with message-id <[email protected]>
and subject line Re: Bug#657573: r-mathlib: The following code (using rgamma)
hangs
has caused the Debian Bug report #657573,
regarding r-mathlib: The following code (using rgamma) hangs
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
657573: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657573
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: r-mathlib
Version: 2.14.1-1
Severity: normal
Hi Dirk,
The following C++ code hangs, with both r-mathlib 2.11.1-6 and
2.14.1-1. The problem is the rgamma function, but I have not attempted
to debug it. Any idea what is going on here? Thanks.
#define MATHLIB_STANDALONE
#include <Rmath.h>
#include <iostream>
using std::cout;
using std::endl;
// double rgamma(double a, double scale)
// Input: a = parameter (mean) of the standard gamma distribution.
int main(void)
{
set_seed(0, 0);
cout << "gets to here" << endl;
rgamma(1, 1);
}
-- System Information:
Debian Release: 6.0.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (50, 'unstable'), (50,
'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-vserver-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages r-mathlib depends on:
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libgomp1 4.7-20111231-1 GCC OpenMP (GOMP) support library
Versions of packages r-mathlib recommends:
ii r-base-core 2.11.1-6 GNU R core of statistical computat
pn r-base-dev <none> (no description available)
r-mathlib suggests no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Dirk,
On Fri, 27 Jan 2012, Dirk Eddelbuettel wrote:
Also:
edd@max:/tmp$ cat faheem.cpp
#define MATHLIB_STANDALONE
#include <Rmath.h>
#include <iostream>
using std::cout;
using std::endl;
int main(void)
{
set_seed(0, 0);
cout << "one normal " << norm_rand() << endl;
}
edd@max:/tmp$ g++ -o faheem faheem.cpp -lRmath; ./faheem
one normal -inf
edd@max:/tmp$
It should be more tolerant to (0,0), I presume. In any event, if ther eis a
bug (in terms of this not being documented), there is nothing Debian-specific
here and stricly nothing I can do for you.
I suggest to close this, and encourage you to report this on r-devel.
Ok, closing as you wish.
Just wanted to check, can you reproduce this problem?
Also, have you any idea what is going on with the get_seed/set_seed
functions? See my earlier emails about this.
Regards, Faheem
--- End Message ---