Displaying 7 results from an estimated 7 matches for "seed_in".
2009 Jul 30
3
user supplied random number generators
...pplied which are called with no arguments and should return pointers
to the number of seeds and to an integer array of seeds. Calls to
\code{GetRNGstate} and \code{PutRNGstate} will then copy this array to
and from \code{.Random.seed}.
And it offers as an example
void user_unif_init(Int32 seed_in) { seed = seed_in; }
int * user_unif_nseed() { return &nseed; }
int * user_unif_seedloc() { return (int *) &seed; }
First question: what is the lifetime of the buffers pointed to by the
user_unif-* functions, and who is responsible for cleaning them up? In
the help file they are stati...
1997 Jul 28
0
R-alpha: R 0.50.a1 S_alloc BUG, priority = URGENT
...*p = R_alloc(nelem, eltsize);
for(i=0 ; i<size; i++)
p[i] = 0;
return p;
}
which segfaults because `size' is not initialized. I am not what the
right fix is, adding
size = nelem * eltsize;
before the loop seems to work.
As an aside ... I think the seed* functions in S are called
seed_in
seed_out
and not seeds_in and seeds_out as currently in src/main/random.c.
Thanks,
-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]...
2009 Feb 13
2
Generate random numbers in Fortran
Hi!!!
It would like to know if it exists a form to use the functions to
generate variates in FORTRAN with the same easiness I use that them in
C? Or not?
If yes. They would have some example? I would like to use the functions rbeta, rlnorm and others!
Sorry my english..rsrsrs
Thanks!!!
Fábio Mathias Corrêa University Federal of the Lavras - Brazil
Veja quais são os
1997 Aug 05
3
R-alpha: Version 0.50-a1 patches
...a.frame"
was being attached to a character vector. Now only lists
can become data frames.
o There is now a -gdb option to the R front end as well as -xxgdb.
o Documentation of NChisquare fixed.
o Definition of S_alloc fixed.
o Changed the names of seeds_in and seeds_out to seed_in and
seed_out as per Kurt's request.
o "unlist(c(2))" fixed.
o "data.frame(x=2)" fixed.
o Bug in do_title fixed.
o Scoping for subset methods by forcing an eval of the args on
entry fixed (bug reported by Patric Lindsay).
o subsetting of data frames fix...
2001 Jul 24
4
Debugging ssh-keygen dsa on Solaris8
...flags;
(/opt/SUNWspro/bin/../WS6U2/bin/sparcv9/dbx)
where
=>[1] DSA_new_method(meth = ???) (optimized), at 0x4b6b8 (line ~127) in
"dsa_lib.c"
[2] DSA_new() (optimized), at 0x4b580 (line ~86) in "dsa_lib.c"
[3] DSA_generate_parameters(bits = ???, seed_in = ???, seed_len = ???,
counter_ret = ???, h_ret = ???, callback = ???, cb_arg = ???)
(optimized), at 0x4ace4 (line ~115) in "dsa_gen.c"
[4] dsa_generate_private_key(bits = 1024U), line 560 in "key.c"
[5] key_generate(type = 2, bits = 1024U), line 576 in "key.c"
[...
1999 May 03
1
problems compiling R-0.63.3 on alpha
...tro/local/src/rstat/R-0.63.3/src/librar
y/lqs'
make[4]: Entering directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/librar
y/lqs/src'
gcc -ieee_with_inexact -g -I../../../../include -c lqs.c -o lqs.o
ld -shared -lm -o lqs.so lqs.o
ld:
Warning: Unresolved:
unif_rand
calloc
free
R_PosInf
seed_in
dqrdc2_
dqrsl_
rsort
rPsort
sqrt
seed_out
log
__exc_add_pc_range_table
__exc_add_gp_range
__exc_remove_pc_range_table
__exc_remove_gp_range
make[4]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/library
/lqs/src'
make[3]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0.63...
1999 May 03
0
compilation of R-0.63.3 on alpha (PR#183)
...local/src/rstat/R-0.63.3/src/=
librar
y/lqs'
make[4]: Entering directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/=
librar
y/lqs/src'
gcc -ieee_with_inexact -g -I../../../../include -c lqs.c -o lqs.o
ld -shared -lm -o lqs.so lqs.o
ld:
Warning: Unresolved:
unif_rand
calloc
free
R_PosInf
seed_in
dqrdc2_
dqrsl_
rsort
rPsort
sqrt
seed_out
log
__exc_add_pc_range_table
__exc_add_gp_range
__exc_remove_pc_range_table
__exc_remove_gp_range
make[4]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0.63.3/src/l=
ibrary
/lqs/src'
make[3]: Leaving directory `/mn/vega/astro/local/src/rstat/R-0....