80 #if defined (HAVE_CONFIG_H) 90 #define INFINITE lo_ieee_isinf 91 #define RUNI oct_randu() 92 #define RNOR oct_randn() 93 #define REXP oct_rande() 100 const double d = (
a < 1. ? 1.+
a :
a) - 1./3.;
101 const double c = 1./std::sqrt (9.*
d);
106 for (
i=0;
i < n;
i++)
111 for (
i=0;
i < n;
i++)
130 for (
i = 0;
i < n;
i++)
146 #define RUNI oct_float_randu() 147 #define RNOR oct_float_randn() 148 #define REXP oct_float_rande() 155 const float d = (
a < 1. ? 1.+
a :
a) - 1./3.;
156 const float c = 1./std::sqrt (9.*
d);
161 for (
i=0;
i < n;
i++)
166 for (
i=0;
i < n;
i++)
185 for (
i = 0;
i < n;
i++)
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the base of natural logarithms The constant ex $e satisfies the equation log(e)
void oct_fill_randg(double a, octave_idx_type n, double *r)
nd example oindent opens the file binary numeric values will be read assuming they are stored in IEEE format with the least significant bit and then converted to the native representation Opening a file that is already open simply opens it again and returns a separate file id It is not an error to open a file several though writing to the same file through several different file ids may produce unexpected results The possible values of text mode reading and writing automatically converts linefeeds to the appropriate line end character for the you may append a you must also open the file in binary mode The parameter conversions are currently only supported for and permissions will be set to and then everything is written in a single operation This is very efficient and improves performance c
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
float oct_float_randg(float a)
double oct_randg(double a)
void oct_fill_float_randg(float a, octave_idx_type n, float *r)
OCTAVE_EXPORT octave_value_list or N dimensional array whose elements are all equal to the IEEE symbol NaN(Not a Number). NaN is the result of operations which do not produce a well defined 0 result. Common operations which produce a NaN are arithmetic with infinity ex($\infty - \infty$)
F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T const F77_DBLE * x