GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 (uint32_t *init_key, int key_length) |
OCTAVE_API void | oct_init_by_entropy (void) |
OCTAVE_API void | oct_init_by_int (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 (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 861 of file randmtzig.cc.
References oct_float_rande().
Referenced by octave_rand::fill().
OCTAVE_API void oct_fill_float_randn | ( | octave_idx_type | n, |
float * | p | ||
) |
Definition at line 853 of file randmtzig.cc.
References oct_float_randn().
Referenced by octave_rand::fill().
OCTAVE_API void oct_fill_float_randu | ( | octave_idx_type | n, |
float * | p | ||
) |
Definition at line 845 of file randmtzig.cc.
References oct_float_randu().
Referenced by octave_rand::fill().
OCTAVE_API void oct_fill_rande | ( | octave_idx_type | n, |
double * | p | ||
) |
Definition at line 837 of file randmtzig.cc.
References oct_rande().
Referenced by octave_rand::fill().
OCTAVE_API void oct_fill_randn | ( | octave_idx_type | n, |
double * | p | ||
) |
Definition at line 829 of file randmtzig.cc.
References oct_randn().
Referenced by octave_rand::fill().
OCTAVE_API void oct_fill_randu | ( | octave_idx_type | n, |
double * | p | ||
) |
Definition at line 821 of file randmtzig.cc.
References oct_randu().
Referenced by octave_rand::fill().
OCTAVE_API float oct_float_rande | ( | void | ) |
Definition at line 793 of file randmtzig.cc.
References create_ziggurat_float_tables(), ERANDI, ffe, fke, fwe, 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 752 of file randmtzig.cc.
References create_ziggurat_float_tables(), ffi, fki, fwi, 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 415 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 302 of file randmtzig.cc.
References left, MT_N, and state.
Referenced by octave_rand::get_internal_state().
OCTAVE_API void oct_init_by_array | ( | uint32_t * | init_key, |
int | key_length | ||
) |
Definition at line 213 of file randmtzig.cc.
References k, 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 254 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 | ( | uint32_t | s | ) |
Definition at line 192 of file randmtzig.cc.
Referenced by oct_init_by_array().
OCTAVE_API double oct_rande | ( | void | ) |
Definition at line 627 of file randmtzig.cc.
References create_ziggurat_tables(), ERANDI, fe, 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 562 of file randmtzig.cc.
References create_ziggurat_tables(), fi, 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 408 of file randmtzig.cc.
References randu53().
Referenced by octave_rand::do_scalar(), and oct_fill_randu().
OCTAVE_API void oct_set_state | ( | uint32_t * | save | ) |
Definition at line 292 of file randmtzig.cc.
References MT_N, next, and state.
Referenced by octave_rand::set_internal_state().