GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
randmtzig.h File Reference
#include "octave-config.h"
Include dependency graph for randmtzig.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MT_N   624
 

Functions

OCTAVE_API void oct_fill_float_rande (octave_idx_type n, float *p)
 
OCTAVE_API void oct_fill_float_randn (octave_idx_type n, float *p)
 
OCTAVE_API void oct_fill_float_randu (octave_idx_type n, float *p)
 
OCTAVE_API void oct_fill_rande (octave_idx_type n, double *p)
 
OCTAVE_API void oct_fill_randn (octave_idx_type n, double *p)
 
OCTAVE_API void oct_fill_randu (octave_idx_type n, double *p)
 
OCTAVE_API float oct_float_rande (void)
 
OCTAVE_API float oct_float_randn (void)
 
OCTAVE_API float oct_float_randu (void)
 
OCTAVE_API void oct_get_state (uint32_t *save)
 
OCTAVE_API void oct_init_by_array (const uint32_t *init_key, const int key_length)
 
OCTAVE_API void oct_init_by_entropy (void)
 
OCTAVE_API void oct_init_by_int (const uint32_t s)
 
OCTAVE_API double oct_rande (void)
 
OCTAVE_API double oct_randn (void)
 
OCTAVE_API double oct_randu (void)
 
OCTAVE_API void oct_set_state (const uint32_t *save)
 

Macro Definition Documentation

◆ MT_N

Function Documentation

◆ oct_fill_float_rande()

OCTAVE_API void oct_fill_float_rande ( octave_idx_type  n,
float p 
)

Definition at line 846 of file randmtzig.cc.

References oct_float_rande(), and p.

Referenced by octave_rand::fill().

◆ oct_fill_float_randn()

OCTAVE_API void oct_fill_float_randn ( octave_idx_type  n,
float p 
)

Definition at line 840 of file randmtzig.cc.

References oct_float_randn(), and p.

Referenced by octave_rand::fill().

◆ oct_fill_float_randu()

OCTAVE_API void oct_fill_float_randu ( octave_idx_type  n,
float p 
)

Definition at line 834 of file randmtzig.cc.

References oct_float_randu(), and p.

Referenced by octave_rand::fill().

◆ oct_fill_rande()

OCTAVE_API void oct_fill_rande ( octave_idx_type  n,
double p 
)

Definition at line 828 of file randmtzig.cc.

References oct_rande(), and p.

Referenced by octave_rand::fill().

◆ oct_fill_randn()

OCTAVE_API void oct_fill_randn ( octave_idx_type  n,
double p 
)

Definition at line 822 of file randmtzig.cc.

References oct_randn(), and p.

Referenced by octave_rand::fill().

◆ oct_fill_randu()

OCTAVE_API void oct_fill_randu ( octave_idx_type  n,
double p 
)

Definition at line 816 of file randmtzig.cc.

References oct_randu(), and p.

Referenced by octave_rand::fill().

◆ oct_float_rande()

OCTAVE_API float oct_float_rande ( void  )

◆ oct_float_randn()

OCTAVE_API float oct_float_randn ( void  )

◆ oct_float_randu()

OCTAVE_API float oct_float_randu ( void  )

Definition at line 410 of file randmtzig.cc.

References randu32().

Referenced by octave_rand::do_float_scalar(), and oct_fill_float_randu().

◆ oct_get_state()

OCTAVE_API void oct_get_state ( uint32_t *  save)

Definition at line 299 of file randmtzig.cc.

References left, MT_N, and state.

Referenced by octave_rand::get_internal_state().

◆ oct_init_by_array()

OCTAVE_API void oct_init_by_array ( const uint32_t *  init_key,
const int  key_length 
)

Definition at line 212 of file randmtzig.cc.

References i, initf, k, left, MT_N, oct_init_by_int(), and state.

Referenced by oct_init_by_entropy(), and octave_rand::set_internal_state().

◆ oct_init_by_entropy()

OCTAVE_API void oct_init_by_entropy ( void  )

◆ oct_init_by_int()

OCTAVE_API void oct_init_by_int ( const uint32_t  s)

Definition at line 191 of file randmtzig.cc.

References initf, left, MT_N, s, and state.

Referenced by oct_init_by_array().

◆ oct_rande()

OCTAVE_API double oct_rande ( void  )

Definition at line 622 of file randmtzig.cc.

References create_ziggurat_tables(), ERANDI, fe, initt, ke, log(), RANDU, we, x, ZIGGURAT_EXP_R, and ZIGINT.

Referenced by octave_rand::do_scalar(), and oct_fill_rande().

◆ oct_randn()

OCTAVE_API double oct_randn ( void  )

◆ oct_randu()

OCTAVE_API double oct_randu ( void  )

Definition at line 403 of file randmtzig.cc.

References randu53().

Referenced by octave_rand::do_scalar(), and oct_fill_randu().

◆ oct_set_state()

OCTAVE_API void oct_set_state ( const uint32_t *  save)

Definition at line 291 of file randmtzig.cc.

References left, MT_N, next, and state.

Referenced by octave_rand::set_internal_state().