w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

nrandom.c File Reference
#include "random_deviate.h"
Include dependency graph for nrandom.c:

Go to the source code of this file.

Functions

static int H (gmp_randstate_t r, mpfr_random_deviate_t p, mpfr_random_deviate_t q)
 
static unsigned long G (gmp_randstate_t r, mpfr_random_deviate_t p, mpfr_random_deviate_t q)
 
static int P (unsigned long m, unsigned long n, gmp_randstate_t r, mpfr_random_deviate_t p, mpfr_random_deviate_t q)
 
static int C (unsigned long m, gmp_randstate_t r)
 
static int B (unsigned long k, mpfr_random_deviate_t x, gmp_randstate_t r, mpfr_random_deviate_t p, mpfr_random_deviate_t q)
 
int mpfr_nrandom (mpfr_t z, gmp_randstate_t r, mpfr_rnd_t rnd)
 

Function Documentation

◆ B()

◆ C()

static int C ( unsigned long  m,
gmp_randstate_t  r 
)
static

Definition at line 119 of file nrandom.c.

References gmp_urandomm_ui(), m, n, and r.

Referenced by B().

◆ G()

static unsigned long G ( gmp_randstate_t  r,
mpfr_random_deviate_t  p,
mpfr_random_deviate_t  q 
)
static

Definition at line 81 of file nrandom.c.

References H(), MPFR_ASSERTN, n, p, q, and r.

Referenced by mpfr_nrandom().

◆ H()

Definition at line 62 of file nrandom.c.

References mpfr_random_deviate_less(), mpfr_random_deviate_reset(), mpfr_random_deviate_tstbit(), p, q, and r.

Referenced by G(), and P().

◆ mpfr_nrandom()

◆ P()

static int P ( unsigned long  m,
unsigned long  n,
gmp_randstate_t  r,
mpfr_random_deviate_t  p,
mpfr_random_deviate_t  q 
)
static

Definition at line 98 of file nrandom.c.

References H(), k, m, n, p, q, and r.

Referenced by mpfr_nrandom().