GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Macros | Functions
randgamma.c File Reference
#include <stdio.h>
#include "lo-ieee.h"
#include "lo-math.h"
#include "randmtzig.h"
#include "randgamma.h"
Include dependency graph for randgamma.c:

Go to the source code of this file.

Macros

#define INFINITE   lo_ieee_isinf
 
#define NAN   octave_NaN
 
#define NAN   octave_Float_NaN
 
#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

#define INFINITE   lo_ieee_isinf

Definition at line 93 of file randgamma.c.

Referenced by oct_fill_float_randg(), oct_fill_randg(), and QConsolePrivate::startCommand().

#define NAN   octave_NaN

Definition at line 150 of file randgamma.c.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

#define NAN   octave_Float_NaN

Definition at line 150 of file randgamma.c.

#define REXP   oct_rande()

Definition at line 153 of file randgamma.c.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

#define REXP   oct_float_rande()

Definition at line 153 of file randgamma.c.

#define RNOR   oct_randn()

Definition at line 152 of file randgamma.c.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

#define RNOR   oct_float_randn()

Definition at line 152 of file randgamma.c.

#define RUNI   oct_randu()

Definition at line 151 of file randgamma.c.

Referenced by oct_fill_float_randg(), and oct_fill_randg().

#define RUNI   oct_float_randu()

Definition at line 151 of file randgamma.c.

Function Documentation

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

Definition at line 156 of file randgamma.c.

References d, INFINITE, NAN, REXP, RNOR, RUNI, and x.

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

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

Definition at line 99 of file randgamma.c.

References d, INFINITE, NAN, REXP, RNOR, RUNI, and x.

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

float oct_float_randg ( float  a)

Definition at line 196 of file randgamma.c.

References oct_fill_float_randg().

Referenced by octave_rand::do_float_scalar().

double oct_randg ( double  a)

Definition at line 139 of file randgamma.c.

References oct_fill_randg().

Referenced by octave_rand::do_scalar().