![]() |
LINE Solver (C++)
Templated C++ port of the LINE queueing solver
|
#include <line/opt/de/numpy_random_state.h>
Public Member Functions | |
| NumpyRandomState (std::uint64_t seed) | |
| MT19937 & | generator () |
| const MT19937 & | generator () const |
| double | random_sample () |
| NumPy random_sample(): one 53-bit double from two generator words. | |
| std::vector< double > | random_sample (std::size_t n) |
| double | uniform (double low=0.0, double high=1.0) |
| std::vector< double > | uniform (double low, double high, std::size_t n) |
| std::uint64_t | randint (std::uint64_t low, std::uint64_t high) |
| std::uint64_t | randint (std::uint64_t high) |
| std::uint64_t | random_interval (std::uint64_t max_value) |
| template<class T> | |
| void | shuffle (std::vector< T > &values) |
| std::vector< std::size_t > | permutation (std::size_t n) |
Definition at line 31 of file numpy_random_state.h.
|
inlineexplicit |
Definition at line 33 of file numpy_random_state.h.
|
inline |
Definition at line 35 of file numpy_random_state.h.
|
inline |
Definition at line 36 of file numpy_random_state.h.
|
inline |
Definition at line 97 of file numpy_random_state.h.
References shuffle().
|
inline |
|
inline |
Definition at line 62 of file numpy_random_state.h.
References line::InputError::InputError().
|
inline |
Definition at line 78 of file numpy_random_state.h.
References line::InputError::InputError().
Referenced by shuffle().
|
inline |
NumPy random_sample(): one 53-bit double from two generator words.
Definition at line 39 of file numpy_random_state.h.
Referenced by random_sample(), uniform(), and uniform().
|
inline |
Definition at line 46 of file numpy_random_state.h.
References random_sample().
|
inline |
Definition at line 90 of file numpy_random_state.h.
References random_interval().
Referenced by permutation().
|
inline |
Definition at line 56 of file numpy_random_state.h.
References random_sample().
|
inline |
Definition at line 52 of file numpy_random_state.h.
References random_sample().