GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
randpoisson.cc File Reference
#include <cmath>
#include <cstddef>
#include "f77-fcn.h"
#include "lo-error.h"
#include "lo-ieee.h"
#include "randmtzig.h"
#include "randpoisson.h"

Go to the source code of this file.

Macros

#define C0   9.18938533204672742e-01
 
#define C1   8.33333333333333333e-02
 
#define C3   -2.77777777777777778e-03
 
#define C5   7.93650793650793651e-04
 
#define C7   -5.95238095238095238e-04
 
#define TABLESIZE   46
 

Functions

template<typename T >
rand_poisson (T L_arg)
 
template<typename T >
void rand_poisson (T L_arg, octave_idx_type n, T *p)
 
template double rand_poisson< double > (double)
 
template void rand_poisson< double > (double, octave_idx_type, double *)
 
template float rand_poisson< float > (float)
 
template void rand_poisson< float > (float, octave_idx_type, float *)
 

Macro Definition Documentation

◆ C0

#define C0   9.18938533204672742e-01

◆ C1

#define C1   8.33333333333333333e-02

◆ C3

#define C3   -2.77777777777777778e-03

◆ C5

#define C5   7.93650793650793651e-04

◆ C7

#define C7   -5.95238095238095238e-04

◆ TABLESIZE

#define TABLESIZE   46

Definition at line 293 of file randpoisson.cc.

Function Documentation

◆ rand_poisson() [1/2]

template<typename T >
T rand_poisson ( L_arg)

Definition at line 440 of file randpoisson.cc.

References floor(), lo_ieee_isinf, and NaN.

◆ rand_poisson() [2/2]

template<typename T >
void rand_poisson ( L_arg,
octave_idx_type  n,
T *  p 
)

Definition at line 403 of file randpoisson.cc.

References lo_ieee_isinf, n, and NaN.

◆ rand_poisson< double >() [1/2]

template double rand_poisson< double > ( double  )

◆ rand_poisson< double >() [2/2]

template void rand_poisson< double > ( double  ,
octave_idx_type  ,
double *   
)

◆ rand_poisson< float >() [1/2]

template float rand_poisson< float > ( float  )

◆ rand_poisson< float >() [2/2]

template void rand_poisson< float > ( float  ,
octave_idx_type  ,
float *   
)