Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
gmp_randclass Class Reference

#include <gmpfrxx.h>

Public Member Functions

 gmp_randclass (gmp_randalg_t alg, unsigned long int size)
 
 gmp_randclass (__gmp_randinit_default_t *f)
 
 gmp_randclass (__gmp_randinit_lc_2exp_t *f, mpz_class z, unsigned long int l1, unsigned long int l2)
 
 gmp_randclass (__gmp_randinit_lc_2exp_size_t *f, unsigned long int size)
 
 ~gmp_randclass ()
 
void seed ()
 
void seed (unsigned long int s)
 
void seed (const mpz_class &z)
 
__gmp_expr< mpz_t, __gmp_urandomb_valueget_z_bits (unsigned long int l)
 
__gmp_expr< mpz_t, __gmp_urandomb_valueget_z_bits (const mpz_class &z)
 
__gmp_expr< mpz_t, __gmp_urandomm_valueget_z_range (const mpz_class &z)
 
__gmp_expr< mpfr_t, __gmp_urandomb_valueget_f (unsigned long int prec=0)
 

Private Member Functions

 gmp_randclass (const gmp_randclass &)
 
void operator= (const gmp_randclass &)
 

Private Attributes

gmp_randstate_t state
 

Detailed Description

Definition at line 4224 of file gmpfrxx.h.

Constructor & Destructor Documentation

◆ gmp_randclass() [1/5]

gmp_randclass::gmp_randclass ( const gmp_randclass )
private

◆ gmp_randclass() [2/5]

gmp_randclass::gmp_randclass ( gmp_randalg_t  alg,
unsigned long int  size 
)
inline

Definition at line 4234 of file gmpfrxx.h.

◆ gmp_randclass() [3/5]

gmp_randclass::gmp_randclass ( __gmp_randinit_default_t f)
inline

Definition at line 4246 of file gmpfrxx.h.

◆ gmp_randclass() [4/5]

gmp_randclass::gmp_randclass ( __gmp_randinit_lc_2exp_t f,
mpz_class  z,
unsigned long int  l1,
unsigned long int  l2 
)
inline

Definition at line 4249 of file gmpfrxx.h.

References __gmp_expr< mpz_t, mpz_t >::get_mpz_t().

◆ gmp_randclass() [5/5]

gmp_randclass::gmp_randclass ( __gmp_randinit_lc_2exp_size_t f,
unsigned long int  size 
)
inline

Definition at line 4254 of file gmpfrxx.h.

◆ ~gmp_randclass()

gmp_randclass::~gmp_randclass ( )
inline

Definition at line 4261 of file gmpfrxx.h.

Member Function Documentation

◆ get_f()

__gmp_expr< mpfr_t, __gmp_urandomb_value > gmp_randclass::get_f ( unsigned long int  prec = 0)
inline

Definition at line 4278 of file gmpfrxx.h.

◆ get_z_bits() [1/2]

__gmp_expr< mpz_t, __gmp_urandomb_value > gmp_randclass::get_z_bits ( const mpz_class z)
inline

Definition at line 4272 of file gmpfrxx.h.

References __gmp_expr< mpz_t, mpz_t >::get_ui().

◆ get_z_bits() [2/2]

__gmp_expr< mpz_t, __gmp_urandomb_value > gmp_randclass::get_z_bits ( unsigned long int  l)
inline

Definition at line 4269 of file gmpfrxx.h.

References l.

◆ get_z_range()

__gmp_expr< mpz_t, __gmp_urandomm_value > gmp_randclass::get_z_range ( const mpz_class z)
inline

Definition at line 4275 of file gmpfrxx.h.

◆ operator=()

void gmp_randclass::operator= ( const gmp_randclass )
private

◆ seed() [1/3]

void gmp_randclass::seed ( )

◆ seed() [2/3]

void gmp_randclass::seed ( const mpz_class z)
inline

Definition at line 4266 of file gmpfrxx.h.

References __gmp_expr< mpz_t, mpz_t >::get_mpz_t().

◆ seed() [3/3]

void gmp_randclass::seed ( unsigned long int  s)
inline

Definition at line 4265 of file gmpfrxx.h.

Member Data Documentation

◆ state

gmp_randstate_t gmp_randclass::state
private

Definition at line 4227 of file gmpfrxx.h.


The documentation for this class was generated from the following file: