GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <ctime>
#include <string>
#include "f77-fcn.h"
#include "lo-mappers.h"
#include "oct-rand.h"
#include "quit.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "oct-obj.h"
#include "unwind-prot.h"
#include "utils.h"
#include "ov-re-mat.h"
Go to the source code of this file.
Functions | |
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) |
Variables | |
static std::string | current_distribution = octave_rand::distribution () |
|
static |
Definition at line 57 of file rand.cc.
References action_container::add_fcn(), Range::all_elements_are_ints(), octave_value_list::array_value(), Range::base(), dim_vector::chop_trailing_singletons(), d, Array< T >::dims(), octave_rand::distribution(), octave_value::double_value(), error(), error_state, octave_rand::exponential_distribution(), octave_rand::float_nd_array(), octave_rand::float_scalar(), Array< T >::fortran_vec(), octave_rand::gamma_distribution(), gripe_wrong_type_arg(), Range::inc(), octave_value::int_vector_value(), octave_value::is_matrix_type(), octave_value::is_range(), octave_value::is_scalar_type(), octave_value::is_string(), Array< T >::length(), octave_rand::nd_array(), Range::nelem(), NINTbig(), octave_rand::normal_distribution(), octave_rand::poisson_distribution(), octave_value::range_value(), octave_rand::reset(), dim_vector::resize(), octave_rand::scalar(), octave_rand::seed(), octave_rand::state(), octave_value::string_value(), octave_rand::uniform_distribution(), and xisnan().
Referenced by Frand(), Frande(), Frandg(), Frandn(), and Frandp().
OCTAVE_EXPORT octave_value_list Frand | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 455 of file rand.cc.
References do_rand(), and octave_value::length().
OCTAVE_EXPORT octave_value_list Frande | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 654 of file rand.cc.
References do_rand(), and octave_value::length().
OCTAVE_EXPORT octave_value_list Frandg | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 795 of file rand.cc.
References do_rand(), error(), and octave_value::length().
OCTAVE_EXPORT octave_value_list Frandn | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 583 of file rand.cc.
References do_rand(), and octave_value::length().
OCTAVE_EXPORT octave_value_list Frandp | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1018 of file rand.cc.
References do_rand(), error(), and octave_value::length().
OCTAVE_EXPORT octave_value_list Frandperm | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 1129 of file rand.cc.
References error(), error_state, floor(), Array< T >::fortran_vec(), octave_rand::nd_array(), print_usage(), and Array< T >::resize().
|
static |