GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
randgamma.cc File Reference
#include <cmath>
#include "lo-ieee.h"
#include "randgamma.h"
#include "randmtzig.h"
Include dependency graph for randgamma.cc:

Go to the source code of this file.

Macros

#define INFINITE   lo_ieee_isinf
 
#define REXP   oct_rande()
 
#define REXP   oct_float_rande()
 
#define RNOR   oct_randn()
 
#define RNOR   oct_float_randn()
 
#define RUNI   oct_randu()
 
#define RUNI   oct_float_randu()
 

Functions

void oct_fill_float_randg (float a, octave_idx_type n, float *r)
 
void oct_fill_randg (double a, octave_idx_type n, double *r)
 
float oct_float_randg (float a)
 
double oct_randg (double a)
 

Macro Definition Documentation

◆ INFINITE

#define INFINITE   lo_ieee_isinf

◆ REXP [1/2]

#define REXP   oct_rande()

Definition at line 148 of file randgamma.cc.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

◆ REXP [2/2]

#define REXP   oct_float_rande()

Definition at line 148 of file randgamma.cc.

◆ RNOR [1/2]

#define RNOR   oct_randn()

Definition at line 147 of file randgamma.cc.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

◆ RNOR [2/2]

#define RNOR   oct_float_randn()

Definition at line 147 of file randgamma.cc.

◆ RUNI [1/2]

#define RUNI   oct_randu()

Definition at line 146 of file randgamma.cc.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

◆ RUNI [2/2]

#define RUNI   oct_float_randu()

Definition at line 146 of file randgamma.cc.

Function Documentation

◆ oct_fill_float_randg()

void oct_fill_float_randg ( float  a,
octave_idx_type  n,
float r 
)

Definition at line 151 of file randgamma.cc.

References a, c, d, i, INFINITE, log(), NaN(), REXP, RNOR, RUNI, u, and x.

Referenced by octave_rand::fill(), and oct_float_randg().

◆ oct_fill_randg()

void oct_fill_randg ( double  a,
octave_idx_type  n,
double r 
)

Definition at line 96 of file randgamma.cc.

References a, c, d, i, INFINITE, log(), NaN(), REXP, RNOR, RUNI, u, and x.

Referenced by octave_rand::fill(), and oct_randg().

◆ oct_float_randg()

float oct_float_randg ( float  a)

Definition at line 191 of file randgamma.cc.

References a, and oct_fill_float_randg().

Referenced by octave_rand::do_float_scalar().

◆ oct_randg()

double oct_randg ( double  a)

Definition at line 136 of file randgamma.cc.

References a, and oct_fill_randg().

Referenced by octave_rand::do_scalar().