ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
combv.cpp File Reference

(Last Changed on August 06, 2022 for git-revision 808780089317c67198079de06b64df009a4a6543.)

$Id$ Author: Unknown More...

#include <fvar.hpp>

Go to the source code of this file.

Functions

dvariable factln (const dvariable &n)
 Log-factorial $\ln(n!)$. More...
 
double factln (double n)
 Log-factorial $\ln(n!)$. More...
 
dvar_vector factln (const dvar_vector &r)
 Log-factorial of an array. More...
 
dvariable gammln (const dvariable &xx)
 
dvar_vector gammln (const dvar_vector &v)
 Log-Gamma of an array. More...
 
dvariable gammln (const prevariable &z)
 
static dvariable gammlnguts (const prevariable &_z)
 
dvariable log_comb (const dvariable &n, double k)
 Log of the binomial coefficent i.e log of 'n choose k'. More...
 
dvariable log_comb (const dvariable &n, const dvariable &k)
 Log of the binomial coefficent i.e log of 'n choose k'. More...
 
dvariable log_comb (double n, const dvariable &k)
 Log of the binomial coefficent i.e log of 'n choose k'. More...
 
dvar_vector log_comb (const dvar_vector &n, const dvar_vector &r)
 Log-binomial of two arrays. More...
 
dvar_vector log_comb (const dvector &n, const dvar_vector &r)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (const dvar_vector &n, const dvector &r)
 Log-binomial of two arrays. More...
 
dvar_vector log_comb (const dvariable &n, const dvector &r)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (const dvariable &n, const dvar_vector &r)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (double n, const dvar_vector &r)
 Log-binomial of a number with an arrays. More...
 

Detailed Description

$Id$ Author: Unknown

This file has routines for the variable type log-factorial, log-binomial, and log-gamma functions

Definition in file combv.cpp.

Function Documentation

dvariable factln ( const dvariable n)

Log-factorial $\ln(n!)$.

Parameters
na number
Returns
log of the factorial

Definition at line 59 of file combv.cpp.

dvar_vector factln ( const dvar_vector r)

Log-factorial of an array.

Parameters
ran array
Returns
log of the factorial

Definition at line 193 of file combv.cpp.

dvariable gammln ( const dvariable xx)
dvar_vector gammln ( const dvar_vector v)

Log-Gamma of an array.

Parameters
van array
Returns
log of the factorial

Definition at line 234 of file combv.cpp.

dvariable gammln ( const prevariable z)

Definition at line 291 of file combv.cpp.

static dvariable gammlnguts ( const prevariable _z)
static

Definition at line 249 of file combv.cpp.

Referenced by gammln().

dvariable log_comb ( const dvariable n,
double  k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters
na number
ka number
Returns
log of the binomial coefficent

Definition at line 24 of file combv.cpp.

dvariable log_comb ( const dvariable n,
const dvariable k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters
na number
ka number
Returns
log of the binomial coefficent

Definition at line 36 of file combv.cpp.

dvariable log_comb ( double  n,
const dvariable k 
)

Log of the binomial coefficent i.e log of 'n choose k'.

Parameters
na number
ka number
Returns
log of the binomial coefficent

Definition at line 49 of file combv.cpp.

dvar_vector log_comb ( const dvar_vector n,
const dvar_vector r 
)

Log-binomial of two arrays.

Parameters
nan array
ran array
Returns
log of the binomial coefficent

Definition at line 70 of file combv.cpp.

dvar_vector log_comb ( const dvector n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters
na number
ran array
Returns
log of the binomial coefficent

Definition at line 98 of file combv.cpp.

dvar_vector log_comb ( const dvar_vector n,
const dvector r 
)

Log-binomial of two arrays.

Parameters
nan array
ran array
Returns
log of the binomial coefficent

Definition at line 125 of file combv.cpp.

dvar_vector log_comb ( const dvariable n,
const dvector r 
)

Log-binomial of a number with an arrays.

Parameters
na number
ran array
Returns
log of the binomial coefficent

Definition at line 152 of file combv.cpp.

dvar_vector log_comb ( const dvariable n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters
na number
ran array
Returns
log of the binomial coefficent

Definition at line 173 of file combv.cpp.

dvar_vector log_comb ( double  n,
const dvar_vector r 
)

Log-binomial of a number with an arrays.

Parameters
na number
ran array
Returns
log of the binomial coefficent

Definition at line 214 of file combv.cpp.