#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 83 of file rand.cc.
References dim_vector::chop_trailing_singletons(), ColumnVector, d, Array< T, Alloc >::dims(), rand::distribution(), err_wrong_type_arg(), error(), rand::exponential_distribution(), rand::float_nd_array(), rand::float_scalar(), 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(), isinf(), len, m, n, rand::nd_array(), nint_big(), rand::normal_distribution(), Array< T, Alloc >::numel(), octave_value::octave_idx_type_vector_value(), rand::poisson_distribution(), r, octave_value::range_value(), rand::reset(), dim_vector::resize(), rand::scalar(), rand::seed(), rand::state(), octave_value::string_value(), rand::uniform_distribution(), and Array< T, Alloc >::xelem().
Referenced by Frand(), Frande(), Frandg(), Frandn(), and Frandp().
◆ Frand()
◆ Frande()
◆ Frandg()
◆ Frandn()
◆ Frandp()
◆ Frandperm()
Definition at line 1125 of file rand.cc.
References error(), floor(), Array< T, Alloc >::fortran_vec(), m, n, rand::nd_array(), ovl(), print_usage(), r, and Array< T, Alloc >::resize().
◆ current_distribution