#include <ctime>
#include <unordered_map>
#include <string>
#include "f77-fcn.h"
#include "lo-mappers.h"
#include "oct-rand.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "unwind-prot.h"
#include "utils.h"
#include "ov-re-mat.h"
Go to the source code of this file.
|
static octave_value | do_rand (const octave_value_list &args, int nargin, const char *fcn, const std::string &distribution, bool additional_arg=false) |
|
OCTAVE_EXPORT octave_value_list | Frand (const octave_value_list &args, int) |
|
OCTAVE_EXPORT octave_value_list | Frande (const octave_value_list &args, int) |
|
OCTAVE_EXPORT octave_value_list | Frandg (const octave_value_list &args, int) |
|
OCTAVE_EXPORT octave_value_list | Frandn (const octave_value_list &args, int) |
|
OCTAVE_EXPORT octave_value_list | Frandp (const octave_value_list &args, int) |
|
OCTAVE_EXPORT octave_value_list | Frandperm (const octave_value_list &args, int) |
|
◆ do_rand()
static octave_value do_rand |
( |
const octave_value_list & |
args, |
|
|
int |
nargin, |
|
|
const char * |
fcn, |
|
|
const std::string & |
distribution, |
|
|
bool |
additional_arg = false |
|
) |
| |
|
static |
Definition at line 82 of file rand.cc.
References octave::action_container::add_fcn(), dim_vector::chop_trailing_singletons(), d, Array< T >::dims(), octave::rand::distribution(), err_wrong_type_arg(), error(), octave::rand::exponential_distribution(), octave::rand::float_nd_array(), octave::rand::float_scalar(), octave::rand::gamma_distribution(), octave_value::idx_type_value(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::is_string(), octave::math::isinf(), len, m, n, octave::rand::nd_array(), octave::math::nint_big(), octave::rand::normal_distribution(), Array< T >::numel(), octave_value::octave_idx_type_vector_value(), octave::rand::poisson_distribution(), r, octave_value::range_value(), octave::rand::reset(), dim_vector::resize(), retval, octave::rand::scalar(), octave::rand::seed(), octave::rand::state(), octave_value::string_value(), octave::rand::uniform_distribution(), and Array< T >::xelem().
Referenced by Frand(), Frande(), Frandg(), Frandn(), and Frandp().
◆ Frand()
◆ Frande()
◆ Frandg()
◆ Frandn()
◆ Frandp()
◆ Frandperm()
Definition at line 1116 of file rand.cc.
References Array< octave_idx_type >, error(), octave::math::floor(), Array< T >::fortran_vec(), m, n, octave::rand::nd_array(), ovl(), print_usage(), r, and Array< T >::resize().
◆ current_distribution