search for: defrand2_real

Displaying 5 results from an estimated 5 matches for "defrand2_real".

2016 Jun 30
2
Calling C implementations of rnorm and friends
...e "C_rnorm" or "norm"? Also, I was looking for the C source code of rnorm, because I wanted to understand how the function works. Looking at Winston Chang's github R mirror, I found rnorm in the random.c file in the stats package. However, the code I find for it: #define DEFRAND2_REAL(name) \ SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ return random2(sn, sa, sb, name, REALSXP); \ } DEFRAND2_REAL(rnorm) Doesn't help me at all in understanding how it works. It should create a function random2(sn, sa, sb, norm, REALSXP); I understand that is a version of the random2 fun...
2016 Jul 01
2
Calling C implementations of rnorm and friends
...ing for the C source code of rnorm, because I wanted to >> understand how the function works. Looking at Winston Chang's github R >> mirror, I found rnorm in the random.c file in the stats package. However, >> the code I find for it: >> >> >> >> #define DEFRAND2_REAL(name) \ >> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >> return random2(sn, sa, sb, name, REALSXP); \ >> } >> DEFRAND2_REAL(rnorm) >> >> >> Doesn't help me at all in understanding how it works. It should create a >> function random2(sn, sa,...
2016 Jun 30
0
Calling C implementations of rnorm and friends
...? > > Also, I was looking for the C source code of rnorm, because I wanted to > understand how the function works. Looking at Winston Chang's github R > mirror, I found rnorm in the random.c file in the stats package. However, > the code I find for it: > > > > #define DEFRAND2_REAL(name) \ > SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > return random2(sn, sa, sb, name, REALSXP); \ > } > DEFRAND2_REAL(rnorm) > > > Doesn't help me at all in understanding how it works. It should create a > function random2(sn, sa, sb, norm, REALSXP); I understan...
2016 Jul 01
1
Calling C implementations of rnorm and friends
...;> understand how the function works. Looking at Winston Chang's github R > >>> mirror, I found rnorm in the random.c file in the stats package. > However, > >>> the code I find for it: > >>> > >>> > >>> > >>> #define DEFRAND2_REAL(name) \ > >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ > >>> return random2(sn, sa, sb, name, REALSXP); \ > >>> } > >>> DEFRAND2_REAL(rnorm) > >>> > >>> > >>> Doesn't help me at all in understanding how...
2016 Jul 01
0
Calling C implementations of rnorm and friends
...rnorm, because I wanted to >>> understand how the function works. Looking at Winston Chang's github R >>> mirror, I found rnorm in the random.c file in the stats package. However, >>> the code I find for it: >>> >>> >>> >>> #define DEFRAND2_REAL(name) \ >>> SEXP do_##name(SEXP sn, SEXP sa, SEXP sb) { \ >>> return random2(sn, sa, sb, name, REALSXP); \ >>> } >>> DEFRAND2_REAL(rnorm) >>> >>> >>> Doesn't help me at all in understanding how it works. It should create a >&...