#include "octave-config.h"
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) |
#define MT_N 624 |
Definition at line 69 of file randmtzig.h.
Referenced by octave_rand::get_internal_state(), next_state(), oct_get_state(), oct_init_by_array(), oct_init_by_entropy(), oct_init_by_int(), oct_set_state(), and octave_rand::set_internal_state().
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().
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().
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().
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().
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().
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().
OCTAVE_API float oct_float_rande | ( | void | ) |
Definition at line 788 of file randmtzig.cc.
References create_ziggurat_float_tables(), ERANDI, ffe, fke, fwe, inittf, log(), RANDU, x, ZIGGURAT_EXP_R, and ZIGINT.
Referenced by octave_rand::do_float_scalar(), and oct_fill_float_rande().
OCTAVE_API float oct_float_randn | ( | void | ) |
Definition at line 747 of file randmtzig.cc.
References create_ziggurat_float_tables(), ffi, fki, fwi, inittf, LMASK, log(), randi32, RANDU, x, ZIGGURAT_NOR_INV_R, and ZIGGURAT_NOR_R.
Referenced by octave_rand::do_float_scalar(), and oct_fill_float_randn().
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().
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().
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().
OCTAVE_API void oct_init_by_entropy | ( | void | ) |
Definition at line 253 of file randmtzig.cc.
References fclose, MT_N, now, oct_init_by_array(), octave::sys::time::unix_time(), and octave::sys::time::usec().
Referenced by octave_rand::do_reset(), octave_rand::initialize_mersenne_twister(), and next_state().
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().
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().
OCTAVE_API double oct_randn | ( | void | ) |
Definition at line 557 of file randmtzig.cc.
References create_ziggurat_tables(), fi, initt, ki, log(), NRANDI, p, randi32, RANDU, UMASK, wi, x, ZIGGURAT_NOR_INV_R, and ZIGGURAT_NOR_R.
Referenced by octave_rand::do_scalar(), and oct_fill_randn().
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().
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().