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

(Last Changed on August 07, 2022 for git-revision 0a920593f1602d0b526036677a330e80065904b7.)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...

#include <cmath>
#include <tiny_ad.hpp>
#include <fcntl.h>
#include <fstream>
#include <stdio.h>
#include <iomanip.h>
#include <strstream.h>
#include <dfpool.h>
#include <ivector.h>
#include <gradient_structure.h>
#include "vector_shapex.h"
#include "dvector.h"
#include <stdlib.h>
#include "factors.h"
#include <imatrix.h>
#include <adstring.hpp>
#include <sys/time.h>
#include <iostream>

Go to the source code of this file.

Classes

class  ad_comm
 Description not yet available. More...
 
class  ad_double
 Stores double value. More...
 
class  ad_integer
 Stores integer. More...
 
class  adkludge
 Description not yet available. More...
 
class  adtimer
 Description not yet available. More...
 
class  arr_link
 Description not yet available. More...
 
class  arr_list
 Description not yet available. More...
 
class  banded_lower_triangular_dmatrix
 Description not yet available. More...
 
class  banded_lower_triangular_dvar_matrix
 Description not yet available. More...
 
class  banded_symmetric_dmatrix
 Description not yet available. More...
 
class  banded_symmetric_dvar_matrix
 Description not yet available. More...
 
class  cubic_spline_function
 Description not yet available. More...
 
class  d3_array
 Description not yet available. More...
 
class  d3_array_position
 Description not yet available. More...
 
class  d3_index
 Description not yet available. More...
 
class  d4_array
 Description not yet available. More...
 
class  d5_array
 Description not yet available. More...
 
class  d6_array
 Description not yet available. More...
 
class  d7_array
 Description not yet available. More...
 
class  dcompressed_triplet
 Description not yet available. More...
 
class  dependent_variables_information
 Description not yet available. More...
 
class  dfsdmat
 Description not yet available. More...
 
class  dfunction_tweaker
 Description not yet available. More...
 
class  dlink
 Node in dlist. More...
 
class  dlist
 Link list. More...
 
class  dmatrix
 Description not yet available. More...
 
class  dmatrix_index
 Description not yet available. More...
 
class  dmatrix_position
 Description not yet available. More...
 
class  double_and_int
 Holds the data for the prevariable class. More...
 
class  double_index
 Description not yet available. More...
 
class  double_index_guts
 Description not yet available. More...
 
class  double_index_type
 Description not yet available. More...
 
class  dvar3_array
 Description not yet available. More...
 
class  dvar4_array
 Description not yet available. More...
 
class  dvar5_array
 Description not yet available. More...
 
class  dvar6_array
 Description not yet available. More...
 
class  dvar7_array
 Description not yet available. More...
 
class  dvar_compressed_triplet
 Description not yet available. More...
 
class  dvar_matrix
 Class definition of matrix with derivitive information . More...
 
class  dvar_matrix_position
 Description not yet available. More...
 
class  dvar_vector
 ADMB variable vector. More...
 
class  dvar_vector_position
 Description not yet available. More...
 
class  dvariable
 Fundamental data type for reverse mode automatic differentiation. More...
 
class  dvector_index
 Description not yet available. More...
 
class  dvector_position
 Description not yet available. More...
 
class  fmm
 Functions and variables for function minimizer. More...
 
class  fmm_control
 Function minimizer control. More...
 
class  fmmc
 Description not yet available. More...
 
class  fmmq
 Description not yet available. More...
 
class  fmmt
 Description not yet available. More...
 
class  fmmt1
 Description not yet available. More...
 
class  four_array_shape
 Description not yet available. More...
 
class  function_minimizer_exception
 Description not yet available. More...
 
class  function_tweaker
 Description not yet available. More...
 
class  funnel_dvariable
 Description not yet available. More...
 
class  grad_stack
 Description not yet available. More...
 
class  grad_stack_entry
 Holds derivative information for arithmetic operators and math library functions. More...
 
class  hs_symbolic
 Description not yet available. More...
 
class  i3_array
 Description not yet available. More...
 
class  i3_index
 Derived class of index types for i3_array. More...
 
class  i4_array
 Description not yet available. More...
 
class  i4_index
 Derived class of index types for i4_array. More...
 
class  i5_array
 Description not yet available. More...
 
class  independent_variables
 Description not yet available. More...
 
class  index_guts
 Abstract base class for different index types. More...
 
class  index_type
 Uses polymorphism to get index information from various data types to be used in constructing and allocating admb matrices and vectors. More...
 
class  indvar_offset_list
 Description not yet available. More...
 
class  ivector_position
 Description not yet available. More...
 
class  kkludge_object
 Null class to allow specialized function overloads. More...
 
class  lmatrix
 Description not yet available. More...
 
class  lmatrix_position
 Description not yet available. More...
 
class  lower_triangular_dmatrix
 Description not yet available. More...
 
class  lvector
 Description not yet available. More...
 
class  lvector_position
 Description not yet available. More...
 
class  mat_shape
 Description not yet available. More...
 
class  mat_shapex
 Description not yet available. More...
 
class  matrix_index
 Derived class of index types for imatrix. More...
 
class  multi_index
 Description not yet available. More...
 
class  number_index
 Derived class of index types for ad_integer. More...
 
class  pre_column_print
 Description not yet available. More...
 
class  pre_double_index_type
 Description not yet available. More...
 
class  pre_index_type
 Description not yet available. More...
 
class  pre_zero_print
 Description not yet available. More...
 
class  predvar_vector
 Description not yet available. More...
 
class  predvector
 Description not yet available. More...
 
class  prefixed
 
class  preivector
 Description not yet available. More...
 
class  prescientific
 
class  preshowpoint
 
class  prevariable
 Base class for dvariable. More...
 
class  prevariable_position
 Description not yet available. More...
 
class  ptr_vector
 Description not yet available. More...
 
class  random_number_generator
 Description not yet available. More...
 
class  sdmatrix
 Description not yet available. More...
 
class  sing_val_decomp
 Description not yet available. More...
 
class  smart_counter
 Keeps track of total number of copies. More...
 
class  spdll_exception
 Description not yet available. More...
 
class  three_array_shape
 Description not yet available. More...
 
class  ts_vector_shape_pool
 Description not yet available. More...
 
class  uistream
 Description not yet available. More...
 
class  uostream
 Description not yet available. More...
 
class  vcubic_spline_function
 Description not yet available. More...
 
class  vector_index
 Derived class of index types for ivector. More...
 
class  vector_range_exception
 Description not yet available. More...
 
class  vector_shape
 Description not yet available. More...
 
class  vector_shape_pool
 Description not yet available. More...
 

Namespaces

 defaults
 

Macros

#define __GNU__
 
#define __NUMBERVECTOR__
 
#define __USE_IOSTREAM__
 
#define _VECTOR_SHAPE
 
#define AD_LONG_INT   long int
 
#define AD_SET_DERIVATIVES1(depvar, indvar, df)
 
#define AD_SET_DERIVATIVES2(depvar, indvar1, df1, indvar2, df2)
 
#define AD_SET_DERIVATIVES3(depvar, indvar1, df1, indvar2, df2, indvar3, df3)
 
#define AD_SET_DERIVATIVES4(depvar, indvar1, df1, indvar2, df2, indvar3, df3, indvar4, df4)
 
#define ADJOINT_CODE(x)   gradient_structure::GRAD_STACK1->set_gradient_stack(x);
 
#define ADUNCONST(type, obj)   type & obj = (type&) _##obj;
 Creates a shallow copy of obj that is not CONST. More...
 
#define BEGIN_MINIMIZATION(nvar, objective_function, ind_vars, gradient, cntrl)
 
#define END_MINIMIZATION(nvar, gradient)
 
#define LSEEK   lseek
 
#define M_PI   3.14159265358979323846
 
#define MFCL2_CONSTRUCTORS
 
#define O_BINARY   0
 
#define OFF_T   off_t
 
#define PI   M_PI
 
#define READ   read
 
#define TINY_AD_USE_TINY_VEC   1
 
#define USE_VECTOR_SHAPE_POOL
 
#define WRITE   write
 

Typedefs

typedef struct cs_symbolic css
 
typedef void(* exitptr )(int)
 

Functions

dvector acos (const dvector &t1)
 Returns dvector with principal value of the arc cosine of vec, expressed in radians. More...
 
dvar_vector acos (const dvar_vector &t1)
 Description not yet available. More...
 
void ad_begin_funnel (void)
 Description not yet available. More...
 
int ad_chdir (const char *s)
 Description not yet available. More...
 
void ad_getcd (const adstring &s)
 Description not yet available. More...
 
template<class... Args>
int ad_printf (FILE *stream, const char *format, Args...args)
 
template<class... Args>
int ad_printf (const char *format, Args...args)
 
void ad_set_new_handler (void)
 Description not yet available. More...
 
double * address (const prevariable &v1)
 
int admax (int i, int j)
 
void ADMB_getcallindex (int)
 
void ADMB_getcallindex (double)
 
void ADMB_getcallindex (const dvector &)
 
void ADMB_getcallindex (const dmatrix &)
 
void ADMB_getcallindex (const d3_array &)
 
void ADMB_getcallindex (const d4_array &)
 
void ADMB_getcallindex (const prevariable &)
 
void ADMB_getcallindex (const dvar_vector &)
 
void ADMB_getcallindex (const dvar_matrix &)
 
void ADMB_getcallindex (const dvar3_array &)
 
void ADMB_getcallindex (dvar4_array &)
 
int admin (int i, int j)
 
int allocated (const ivector &v)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
int allocated (const lvector &v)
 Returns true if lvector is allocated, otherwise false. More...
 
int allocated (const dvector &v)
 Returns true if lvector is allocated, otherwise false. More...
 
int allocated (const dvar_vector &v)
 Returns true if variables is allocated, otherwise false. More...
 
int allocated (const imatrix &v)
 Returns true if imat is allocated, otherwise false. More...
 
int allocated (const dmatrix &v)
 Returns true if dmat is allocated, otherwise false. More...
 
int allocated (const dvar_matrix &v)
 Returns true if vmat is allocated, otherwise false. More...
 
int allocated (const i3_array &v)
 Returns true if iarr3 is allocated, otherwise false. More...
 
int allocated (const d3_array &v)
 Returns true if arr3 is allocated, otherwise false. More...
 
int allocated (const dvar3_array &v)
 Returns true if varr3 is allocated, otherwise false. More...
 
int allocated (const i4_array &v)
 Returns true if iarr4 is allocated, otherwise false. More...
 
int allocated (const d4_array &v)
 Returns true if arr4 is allocated, otherwise false. More...
 
int allocated (const dvar4_array &v)
 Returns true if varr4 is allocated, otherwise false. More...
 
int allocated (const i5_array &iarr5)
 Returns true if iarr5 is allocated, otherwise false. More...
 
int allocated (const d5_array &v)
 Returns true if arr5 is allocated, otherwise false. More...
 
int allocated (const dvar5_array &v)
 Returns true if varr5 is allocated, otherwise false. More...
 
int allocated (const d6_array &v)
 Returns true if arr6 is allocated, otherwise false. More...
 
int allocated (const dvar6_array &v)
 Returns true if varr6 is allocated, otherwise false. More...
 
int allocated (const d7_array &v)
 Returns true if arr7 is allocated, otherwise false. More...
 
int allocated (const dvar7_array &v)
 Returns true if varr7 is allocated, otherwise false. More...
 
int allocated (const dcompressed_triplet &t)
 
int allocated (const dvar_compressed_triplet &t)
 
void arr_free (double_and_int *)
 
ivector as_factor (const dvector &v, const double eps=1.0e-6)
 
dvector asin (const dvector &t1)
 Returns dvector with principal value of the arc sine of vec, expressed in radians. More...
 
dvar_vector asin (const dvar_vector &t1)
 Description not yet available. More...
 
dvector atan (const dvector &t1)
 Returns dvector with principal value of the arc tangent of vec, expressed in radians. More...
 
dvar_vector atan (const dvar_vector &t1)
 Computes atan of each element in v1 to a dvar_vector. More...
 
dvector atan2 (const dvector &t1, const dvector &t2)
 
dvector atan2 (const dvector &t1, double t2)
 
dvector atan2 (double t1, const dvector &t2)
 
dvar_vector atan2 (const dvar_vector &t1, const dvar_vector &t2)
 
dvar_vector atan2 (const dvar_vector &t1, double t2)
 
dvar_vector atan2 (double t1, const dvar_vector &t2)
 
dvector atlas_solve_spd (const dmatrix &M, const dvector &x)
 
dvector atlas_solve_spd (const dmatrix &M, const dvector &x, int &ierr)
 
dmatrix atlas_solve_spd (const dmatrix &M, const dmatrix &x)
 
dmatrix atlas_solve_spd_trans (const dmatrix &M, const dmatrix &x)
 
dvariable avg (const prevariable &x, const prevariable &y)
 Description not yet available. More...
 
double avg (double x, double y)
 Average of two numbers; constant objects. More...
 
dvariable besselI (dvariable x, int nu)
 
double besselI (double x, int nu)
 
dvariable besselJ (dvariable x, int nu)
 
double besselJ (double x, int nu)
 
dvariable besselK (dvariable x, int nu)
 
double besselK (double x, int nu)
 
dvariable besselY (dvariable x, int nu)
 
double besselY (double x, int nu)
 
dvariable beta_deviate (const prevariable &_x, const prevariable &_a, const prevariable &_b, double eps=1.e-7)
 Description not yet available. More...
 
double beta_deviate (double x, double a, double b, double eps=1.e-7)
 Description not yet available. More...
 
double betacf (const double a, const double b, double x, int maxit=100)
 
dvariable betacf (const dvariable &a, const dvariable &b, const dvariable &x, int maxit=100)
 
dvariable betai (const dvariable a, const dvariable b, const dvariable x, int maxit=100)
 Incomplete beta function for variable objects. More...
 
double betai (const double a, const double b, const double x, int maxit=100)
 Incomplete beta function for constant objects. More...
 
prevariablebounded_cumd_norm (const prevariable &x, double)
 Description not yet available. More...
 
double bounded_cumd_norm (double x, double)
 Description not yet available. More...
 
double bounder (double x, double min, double max, double scale)
 Description not yet available. More...
 
dvariable bounder (const prevariable &x, double min, double max, double scale)
 Description not yet available. More...
 
double boundp (double x, double fmin, double fmax, const double &fpen)
 Compute penalty for exceeding bounds on parameter; constant ojbects. More...
 
double boundp (double x, double fmin, double fmax)
 Return scaled variable to original units; constant objects. More...
 
dvariable boundp (const prevariable &x, double fmin, double fmax, const prevariable &fpen)
 Compute penalty for exceeding bounds on parameter; variable ojbects. More...
 
dvariable boundp (const prevariable &x, double fmin, double fmax, const prevariable &fpen, double s)
 Compute penalty for exceeding bounds on parameter; variable ojbects. More...
 
dvariable boundp (double, double, double, double *)
 
double boundpin (double x, double fmin, double fmax)
 Scale model variable over [-1,1]; constant objects. More...
 
double boundpin (const prevariable &x, double fmin, double fmax)
 Scale model variable over [-1,1]; variable objects. More...
 
double boundpin (const prevariable &x, double fmin, double fmax, double s)
 Scale model variable over [-1,1]; variable objects. More...
 
void check_choleski_decomp (const banded_symmetric_dvar_matrix &MM, int &ierr)
 
void check_derivative_values (const char *s)
 Description not yet available. More...
 
void check_derivative_values (const char *s, int i)
 Description not yet available. More...
 
void check_derivative_values_break (const char *s, int i, int b)
 Description not yet available. More...
 
dmatrix choleski_decomp (const dmatrix &M)
 Description not yet available. More...
 
dvar_matrix choleski_decomp (const dvar_matrix &M)
 Description not yet available. More...
 
banded_lower_triangular_dmatrix choleski_decomp (const banded_symmetric_dmatrix &S, int &ierr)
 
banded_lower_triangular_dvar_matrix choleski_decomp (const banded_symmetric_dvar_matrix &S, int &ierr)
 
dmatrix choleski_decomp_error (const dmatrix &M, int &ierror)
 Description not yet available. More...
 
dmatrix choleski_decomp_neghess_error (const dmatrix &M, int &ierror)
 Description not yet available. More...
 
dmatrix choleski_decomp_positive (const dmatrix &MM, const int &ierr)
 Description not yet available. More...
 
dmatrix choleski_decomp_positive (const dmatrix &MM, double bound)
 Description not yet available. More...
 
banded_lower_triangular_dvar_matrix choleski_decomp_positive (const banded_symmetric_dvar_matrix &S, double eps, dvariable &fpen)
 Description not yet available. More...
 
banded_lower_triangular_dmatrix choleski_decomp_trust_bound (const banded_symmetric_dmatrix &_M, const int &_ierr)
 Description not yet available. More...
 
dvector choleski_solve_error (dmatrix M, dvector &v, int &ierror)
 Description not yet available. More...
 
dvector choleski_solve_neghess_error (dmatrix M, dvector &v, int &ierror)
 Description not yet available. More...
 
void clean (ivector &v, int level)
 Set elements of ivec to zero starting from level + 1;. More...
 
dvar_vector colsum (const dvar_matrix &)
 Description not yet available. More...
 
dvector colsum (const dmatrix &)
 Returns dvector where each element contains the sum total of each column in matrix. More...
 
ivector colsum (const imatrix &)
 Returns integer vector colsums where each element is the sum of the jth column in matrix. More...
 
int colsum (const imatrix &, int column)
 Return sum of matrix at specified column index. More...
 
double colsum (const dmatrix &, int column)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvariable colsum (const dvar_matrix &, int column)
 Description not yet available. More...
 
ivector column (const imatrix &m, int i)
 Return copy of column vector from matrix at specified column index. More...
 
dvector column (const dmatrix &m, int i)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_vector column (const dvar_matrix &m, int i)
 Description not yet available. More...
 
pre_column_print column_print (const dvector &v)
 Description not yet available. More...
 
dvector column_value (const dvar_matrix &m, int i)
 Description not yet available. More...
 
dmatrix column_vector (const dvector &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_matrix column_vector (const dvar_vector &)
 Returns dmatrix with a single column using values from v. More...
 
dvector cos (const dvector &t1)
 Returns dvector with cosine for each value of vec. More...
 
dvar_vector cos (const dvar_vector &t1)
 Description not yet available. More...
 
dmatrix cos (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix cos (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array cos (const d3_array &m)
 Returns d3_array results with computed cos from elements in arr3. More...
 
dvar3_array cos (const dvar3_array &m)
 Computes cos of each element in m to a dvar3_array. More...
 
dvector cosh (const dvector &t1)
 Returns dvector with hyperbolic cosine for each value of vec. More...
 
dvar_vector cosh (const dvar_vector &t1)
 Description not yet available. More...
 
int count_factor (const dvector &v, const double &eps)
 
int count_factor (const ivector &v)
 
dvector csolve (const dmatrix &aa, const dvector &z)
 Solve a linear system using LU decomposition. More...
 
double cube (double x)
 Cube of a number; constant objects. More...
 
dvector cube (const dvector &x)
 Returns dvector with cube value of each element in vec. More...
 
dmatrix cube (const dmatrix &x)
 Returns dmatrix with cube value of each element in mat. More...
 
d3_array cube (const d3_array &x)
 Description not yet available. More...
 
prevariablecube (const prevariable &x)
 Returns variable result of v1 cubed. More...
 
dvar_vector cube (const dvar_vector &x)
 Description not yet available. More...
 
dvar_matrix cube (const dvar_matrix &x)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar3_array cube (const dvar3_array &x)
 Returns dvar3_array where each element (i, j, k) is equal to varmat(i, j, k)^3. More...
 
dvariable cumbvn (const dvariable &x, const dvariable &y, const dvariable &rho)
 Cumulative bivariate normal distribution. More...
 
dvariable cumbvn (const dvariable &xl, const dvariable &yl, const dvariable &xu, const dvariable &yu, const dvariable &rho)
 Cumulative bivariate normal distribution. More...
 
dvariable cumd_bivariate_normal (const prevariable &xu, const prevariable &yu, const prevariable &rho, int nbox)
 
double cumd_cauchy (const double &x)
 Description not yet available. More...
 
dvariable cumd_cauchy (const prevariable &x)
 Description not yet available. More...
 
dvariable cumd_exponential (const prevariable &x)
 Description not yet available. More...
 
double cumd_exponential (double x)
 Description not yet available. More...
 
dvariable cumd_gamma (const dvariable &x, const dvariable &a)
 
double cumd_gamma (double x, double a)
 
double cumd_logistic (const double &x)
 Description not yet available. More...
 
dvariable cumd_logistic (const prevariable &x)
 Description not yet available. More...
 
double cumd_norm (const double &x)
 Culative normal distribution; constant objects. More...
 
double cumd_norm (const double &x, double)
 
prevariablecumd_norm (const prevariable &x)
 Culative normal distribution; variable objects. More...
 
prevariablecumd_norm_logistic (const prevariable &x, double)
 Description not yet available. More...
 
double cumd_norm_logistic (double x, double)
 Description not yet available. More...
 
dvariable cumd_normal_cauchy_mixture (const prevariable &_x, double _a)
 
dvar_vector cumd_normal_cauchy_mixture (const dvar_vector &_x, double _a)
 
dvariable cumd_normal_mixture (const prevariable &_x, double _a)
 
dvar_vector cumd_normal_mixture (const dvar_vector &_x, double _a)
 
dvector cumd_pareto (const dvector &_y, double alpha, double xm)
 
dvar_vector cumd_pareto (const dvar_vector &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable cumd_pareto (const prevariable &_y, const prevariable &alpha, const prevariable &xm)
 
double cumd_pareto (double _y, double alpha, double xm)
 
dvector cumd_upper_trunc_pareto (const dvector &_y, double alpha, double xm)
 
dvar_vector cumd_upper_trunc_pareto (const dvar_vector &_y, const prevariable &alpha, const prevariable &xmin, const prevariable &xmax)
 
dvariable cumd_upper_trunc_pareto (const prevariable &_y, const prevariable &alpha, const prevariable &xmin, const prevariable &xmax)
 
void default_evaluation (void)
 Description not yet available. More...
 
void default_evaluation0 (void)
 Description not yet available. More...
 
void default_evaluation1 (void)
 Description not yet available. More...
 
void default_evaluation1m (void)
 Description not yet available. More...
 
void default_evaluation2 (void)
 Description not yet available. More...
 
void default_evaluation3 (void)
 Description not yet available. More...
 
void default_evaluation3ind (void)
 Description not yet available. More...
 
void default_evaluation4 (void)
 Description not yet available. More...
 
void default_evaluation4ind (void)
 Description not yet available. More...
 
void default_evaluation4m (void)
 Description not yet available. More...
 
double density_cauchy (const double &x)
 Description not yet available. More...
 
void derch (const double &f, const independent_variables &x, const dvector &g, int n, const int &ireturn)
 Description not yet available. More...
 
void derch (const double &f, const dvector &x, const dvector &gg, int n, const int &ireturn)
 Description not yet available. More...
 
void df_check_derivative_values (void)
 Description not yet available. More...
 
void df_check_derivative_values_indexed (void)
 Description not yet available. More...
 
void df_check_derivative_values_indexed_break (void)
 Description not yet available. More...
 
dvariable dfatan1 (dvariable, double, double, const prevariable &fpen)
 Scale input variable between upper and lower bounds and compute a penalty for exceeding the bounds. More...
 
dvariable dfatan1 (dvariable, double, double, double *)
 
dvariable dfboundp (double, double, double, double *)
 
dvariable dfboundp (const prevariable &, double, double)
 Computes the derivative of dvariable boundp(const prevariable& x, double fmin, double fmax,const prevariable& _fpen) More...
 
void dfinvpret (void)
 Adjoint code for dvar_matrix inv(const dvar_matrix& aa). More...
 
double dflogistic (double a, double b, const double &x)
 
dvariable dflogistic (double a, double b, const prevariable &x)
 Description not yet available. More...
 
double dfposfun (const double &x, const double eps)
 Adjoint code for posfun; possibly not used. More...
 
dvariable dfposfun (const prevariable &x, const double eps)
 Adjoint code for posfun; possibly not used. More...
 
double dfposfun1 (const double &x, const double eps)
 Adjoint code for posfun; possibly not used. More...
 
double dftinv (double, double, double)
 Inverse of dvariable dfatan1(dvariable x, double fmin, double fmax, const prevariable& _fpen) More...
 
dvector diagonal (const dmatrix &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ivector diagonal (const imatrix &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_vector diagonal (const dvar_matrix &)
 Description not yet available. More...
 
dmatrix diagonal_matrix (const dvector &v)
 
dvar_matrix diagonal_matrix (const dvar_vector &v)
 
double dmax (double i, double j)
 Returns the maximum of two numbers. More...
 
void dmdm_prod (void)
 Description not yet available. More...
 
double dmin (double, double)
 Returns the minimum of two numbers. More...
 
double dot (const dmatrix &M, const dmatrix &d2)
 Description not yet available. More...
 
dvariable dtweedie (const double y, dvariable &mu, dvariable &phi, dvariable &p, const bool use_log)
 dtweedie is a wrapper to _dtweedie using ADMB data types. More...
 
void dv_init (void)
 Description not yet available. More...
 
void dvdv_dot (void)
 
dvector eigenvalues (const dmatrix &m1)
 Eigenvalues. More...
 
dvar_vector eigenvalues (const dvar_matrix &m1)
 
dvector eigenvalues (const banded_symmetric_dmatrix &_SS)
 Description not yet available. More...
 
dmatrix eigenvectors (const dmatrix &m1)
 Eigenvectors. More...
 
dmatrix eigenvectors (const dmatrix &m1, const dvector &eigenvalues)
 Eigenvectors. More...
 
dvar_matrix eigenvectors (const dvar_matrix &m1)
 Eigenvectors. More...
 
dmatrix eigenvectors (const banded_symmetric_dmatrix &_SS, const dvector &e)
 Description not yet available. More...
 
dmatrix elem_div (const dmatrix &m, const dmatrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_div (const dvar_matrix &m, const dvar_matrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_div (const dvar_matrix &m, const dmatrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_div (const dmatrix &m, const dvar_matrix &m2)
 Description not yet available. More...
 
d3_array elem_div (const d3_array &m1, const d3_array &m2)
 Returns d3_array results with computed elements division of a(i, j, k) / b(i, j, k). More...
 
dvar3_array elem_div (const dvar3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array elem_div (const d3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array elem_div (const dvar3_array &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to the element product m1(i, j, k) / m2(i, j, k). More...
 
dmatrix elem_prod (const dmatrix &m, const dmatrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_prod (const dvar_matrix &m, const dvar_matrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_prod (const dvar_matrix &m, const dmatrix &m2)
 Description not yet available. More...
 
dvar_matrix elem_prod (const dmatrix &m, const dvar_matrix &m2)
 Description not yet available. More...
 
d3_array elem_prod (const d3_array &m1, const d3_array &m2)
 Returns d3_array results with computed elements product of a(i, j, k) * b(i, j, k). More...
 
dvar3_array elem_prod (const dvar3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array elem_prod (const d3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array elem_prod (const dvar3_array &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to the element product m1(i, j, k) * m2(i, j, k). More...
 
dvar_matrix empirical_covariance (const dvar_matrix &v1)
 Description not yet available. More...
 
dvar_matrix empirical_covariance (const dvar_matrix &v1, const imatrix &missflags)
 Description not yet available. More...
 
void exit_handler (int k)
 Description not yet available. More...
 
dvector exp (const dvector &t1)
 Description not yet available. More...
 
dvar_vector exp (const dvar_vector &t1)
 Description not yet available. More...
 
dmatrix exp (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix exp (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array exp (const d3_array &m)
 Returns d3_array results with computed exp from elements in arr3. More...
 
dvar3_array exp (const dvar3_array &m)
 Computes exp of each element in m to a dvar3_array. More...
 
d4_array exp (const d4_array &x)
 Returns results in a d4_array with the computed exponential of the elements in darray. More...
 
dvar4_array exp (const dvar4_array &x)
 Description not yet available. More...
 
d5_array exp (const d5_array &x)
 
dvar5_array exp (const dvar5_array &x)
 Description not yet available. More...
 
double expdev (const random_number_generator &_rng)
 Description not yet available. More...
 
dmatrix expm (const dmatrix &A)
 Matrix exponential. More...
 
dvar_matrix expm (const dvar_matrix &A)
 Matrix exponential. More...
 
dvector extract_column (const dmatrix &m, int i)
 Extract copy of jth column vector from matrix m. More...
 
dvar_vector extract_column (const dvar_matrix &m, int i)
 Description not yet available. More...
 
dvector extract_row (const dmatrix &m, int j)
 Returns a copied row for matrix at i. More...
 
dvar_vector extract_row (const dvar_matrix &m, int j)
 Description not yet available. More...
 
dmatrix fabs (const dmatrix &m)
 Description not yet available. More...
 
d3_array fabs (const d3_array &m)
 
dvar3_array fabs (const dvar3_array &m)
 
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 &n)
 Log-factorial of an array. More...
 
dvector factln (const dvector &n)
 Log-factorial of an array. More...
 
void * farptr_norm (void *)
 
dmatrix fillout (const lower_triangular_dmatrix &M)
 Description not yet available. More...
 
dmatrix fillout_trans (const lower_triangular_dmatrix &M)
 Description not yet available. More...
 
void fmin (double f, const independent_variables &x, const dvector &g, const int &n, const dvector &w, const dvector &h, const fmm_control &fmc)
 
void fmmdisp (const dvector &x, const dvector &g, const int &nvar, int scroll_flag, int noprintx=0)
 Description not yet available. More...
 
void fmmdisp (const double *x, const double *g, const int &nvar, int scroll_flag, int noprintx=0)
 Description not yet available. More...
 
double fourth (double x)
 Fourth power of a number; constant objects. More...
 
double gamma_density (double _x, double r, double mu)
 Gamma probability density function; constant objects. More...
 
dvariable gamma_density (const prevariable &_x, double r, double mu)
 Gamma probability density function; variable objects. More...
 
dvariable gamma_density (const dvariable &_x, const dvariable &_r, const dvariable &_mu)
 Gamma probability density function; variable objects. More...
 
double gamma_deviate (double _x, double _a)
 
dvariable gamma_deviate (const prevariable &_x, const prevariable &_a)
 
dvar_vector gammln (const dvar_vector &n)
 Log-Gamma of an array. More...
 
dvector gammln (const dvector &n)
 Log-Gamma of an array. More...
 
double gammln (double xx)
 Log gamma function. More...
 
dvariable gammln (const prevariable &xx)
 
double gasdev (const random_number_generator &_rng)
 Description not yet available. More...
 
void gauss_hermite (const dvector &_x, const dvector &_w)
 Gauss-Hermite quadature. More...
 
void gauss_legendre (double x1, double x2, const dvector &_x, const dvector &_w)
 Gauss-Legendre quadature. More...
 
void gauss_legendre (const dvector &_x, const dvector &_w)
 Gauss-Legendre quadature. More...
 
dvector get_eigen_values (const dvector &_d, const dvector &_e)
 Eigenvalues. More...
 
dvar_vector get_eigen_values (const dvar_vector &_d, const dvar_vector &_e)
 Eigenvalues and eigenvectors. More...
 
dvector get_eigen_values (const dvector &_d, const dvector &_e, const dmatrix &_z)
 Eigenvalues and eigenvectors. More...
 
std::ostream & get_output_stream ()
 
adstring get_string_marker (void)
 Description not yet available. More...
 
double ghk (const dvector &lower, const dvector &upper, const dmatrix &Sigma, const dmatrix &eps)
 Description not yet available. More...
 
double ghk (const dvector &lower, const dvector &upper, const dmatrix &Sigma, const dmatrix &eps, int i)
 Description not yet available. More...
 
dvariable ghk (const dvar_vector &lower, const dvar_vector &upper, const dvar_matrix &Sigma, const dmatrix &eps)
 Description not yet available. More...
 
dvariable ghk (const dvar_vector &lower, const dvar_vector &upper, const dvar_matrix &Sigma, const dmatrix &eps, int i)
 Description not yet available. More...
 
double ghk_choleski (const dvector &lower, const dvector &upper, const dmatrix &ch, const dmatrix &eps)
 
dvariable ghk_choleski_m (const dvar_vector &upper, const dvar_matrix &ch, const dmatrix &eps)
 Description not yet available. More...
 
dvariable ghk_choleski_m_cauchy (const dvar_vector &upper, const dvar_matrix &ch, const dmatrix &eps)
 Description not yet available. More...
 
dvariable ghk_choleski_m_logistic (const dvar_vector &upper, const dvar_matrix &ch, const dmatrix &eps)
 Description not yet available. More...
 
void grad_chk (void)
 Description not yet available. More...
 
void gradcalc (int nvar, const dvector &g)
 
void gradfree (dlink *v)
 Description not yet available. More...
 
double_and_intgradnew ()
 Creates an entry in the gradient structure linked list. More...
 
ivector histogram (double min, double max, int nbin, const dvector &input)
 Description not yet available. More...
 
dmatrix identity_matrix (int min, int max)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
void insert_identifier_string (const char *s)
 Description not yet available. More...
 
dvariable inv (const prevariable &x)
 
dmatrix inv (const dmatrix &m1, const double &_ln_det, const int &_sgn)
 Inverse of a constant matrix by LU decomposition. More...
 
double inv_cumd_beta_stable (double a, double b, double y, double eps=0)
 
dvariable inv_cumd_beta_stable (const prevariable &_a, const prevariable &_b, const prevariable &_y, double eps=0)
 
double inv_cumd_cauchy (const double &x)
 Description not yet available. More...
 
dvariable inv_cumd_cauchy (const prevariable &x)
 Description not yet available. More...
 
dvariable inv_cumd_exponential (const prevariable &y)
 Description not yet available. More...
 
double inv_cumd_exponential (double y)
 Description not yet available. More...
 
dvariable inv_cumd_gamma (const prevariable &_y, const prevariable &_a)
 
double inv_cumd_gamma (double _y, double _a)
 
double inv_cumd_logistic (const double &x)
 Description not yet available. More...
 
dvariable inv_cumd_logistic (const prevariable &x)
 Description not yet available. More...
 
double inv_cumd_norm (const double &x)
 Description not yet available. More...
 
dvariable inv_cumd_norm (const prevariable &x)
 Description not yet available. More...
 
dvar_vector inv_cumd_norm (const dvar_vector &x)
 Description not yet available. More...
 
dvariable inv_cumd_norm_logistic (const prevariable &x, double)
 Description not yet available. More...
 
double inv_cumd_norm_logistic (double x, double)
 Description not yet available. More...
 
dvariable inv_cumd_normal_logistic_mixture (const prevariable &_x, double _a)
 
double inv_cumd_normal_logistic_mixture (double _x, double _a)
 Description not yet available. More...
 
dvariable inv_cumd_normal_mixture (const prevariable &_x, double _a)
 Description not yet available. More...
 
double inv_cumd_normal_mixture (double _x, double _a)
 Description not yet available. More...
 
dvector inv_cumd_pareto (const dvector &_y, double alpha, double xm)
 
dvar_vector inv_cumd_pareto (const dvar_vector &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable inv_cumd_pareto (const prevariable &_y, const prevariable &alpha, const prevariable &xm)
 
double inv_cumd_pareto (double _y, double alpha, double xm)
 
double inv_cumd_t (double n, double y, double eps=1.e-7)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvariable inv_cumd_t (const prevariable &n, const prevariable &y, double eps=1.e-7)
 Description not yet available. More...
 
dvector inv_cumd_upper_trunc_pareto (const dvector &_y, double alpha, double xmin, double xmax)
 
dvar_vector inv_cumd_upper_trunc_pareto (const dvar_vector &_y, const prevariable &alpha, const prevariable &xmin, const prevariable &xmax)
 
double inv_cumd_upper_trunc_pareto (double _y, double alpha, double xmin, double xmax)
 
dvariable invlogit (dvariable x)
 Inverse logit function. More...
 
void jacobcalc (int nvar, const dmatrix &g)
 Description not yet available. More...
 
void jacobcalc (int nvar, const ofstream &ofs)
 Description not yet available. More...
 
void jacobcalc (int nvar, const uostream &ofs)
 Description not yet available. More...
 
dvariable kludge_cumd_cauchy (const prevariable &x)
 Description not yet available. More...
 
dvariable ln_det (const dvar_matrix &)
 
double ln_det (const dcompressed_triplet &)
 
double ln_det (const dcompressed_triplet &, const hs_symbolic &)
 
double ln_det (const dcompressed_triplet &, int &ierr)
 
dvariable ln_det (const dvar_compressed_triplet &, int &ierr)
 
dvariable ln_det (dvar_compressed_triplet &, hs_symbolic &, laplace_approximation_calculator *)
 
dvariable ln_det (dvar_compressed_triplet &)
 
dvariable ln_det (dvar_compressed_triplet &, hs_symbolic &)
 
dvariable ln_det (dvar_compressed_triplet &, hs_symbolic &, dcompressed_triplet &)
 
dvariable ln_det_choleski (const banded_symmetric_dvar_matrix &S, int &ierr)
 
double ln_det_choleski (const banded_symmetric_dmatrix &S, int &ierr)
 
dvariable ln_det_choleski (const dvar_matrix &M)
 Description not yet available. More...
 
dvariable ln_det_choleski_error (const dvar_matrix &, int &ierr)
 Description not yet available. More...
 
dvar_vector ln_pareto_density (const dvar_vector &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable ln_pareto_density (const prevariable &_y, const prevariable &alpha, const prevariable &xm)
 
dvar_vector ln_pareto_upper_trunc_density (const dvar_vector &y, const prevariable &alpha, const prevariable &xmin, const prevariable &xmax)
 
dvar_vector ln_upper_trunc_pareto_density (const dvar_vector &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable ln_upper_trunc_pareto_density (const prevariable &_y, const prevariable &alpha, const prevariable &xmin, const prevariable &xmax)
 
dvector log (const dvector &t1)
 Description not yet available. More...
 
dvar_vector log (const dvar_vector &t1)
 Description not yet available. More...
 
dmatrix log (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix log (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array log (const d3_array &m)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar3_array log (const dvar3_array &m)
 Computes log of each element in m to a dvar3_array. More...
 
d4_array log (const d4_array &x)
 Returns results in a d4_array with the computed log of the elements in darray. More...
 
dvar4_array log (const dvar4_array &x)
 Description not yet available. More...
 
d5_array log (const d5_array &x)
 
dvar5_array log (const dvar5_array &x)
 Description not yet available. More...
 
dvector log10 (const dvector &t1)
 Returns dvector with the common (base-10) logarithm of vec. More...
 
dvar_vector log10 (const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector log_comb (const dvar_vector &n, const dvector &k)
 Log-binomial of two arrays. 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 &k)
 Log-binomial of two arrays. More...
 
dvar_vector log_comb (const dvector &n, const dvar_vector &k)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (double n, const dvar_vector &k)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (const dvariable &n, const dvector &k)
 Log-binomial of a number with an arrays. More...
 
dvar_vector log_comb (const dvariable &n, const dvar_vector &k)
 Log-binomial of a number with an arrays. More...
 
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...
 
dvector log_comb (const dvector &n, const dvector &k)
 Log-binomial of two arrays. More...
 
dvector log_comb (double n, const dvector &k)
 Log-binomial of a number with an arrays. More...
 
double log_comb (double n, double k)
 Log of the binomial coefficent; i.e log of 'n choose k'. More...
 
double log_density_cauchy (const double &x)
 Description not yet available. More...
 
double log_density_negbinomial (double x, double mu, double tau)
 Log negative bionomial density; constant objects. More...
 
dvariable log_density_poisson (double x, const prevariable &mu)
 Log Poisson density; variable objects. More...
 
double log_density_poisson (double x, double mu)
 Log Poisson density; constant objects. More...
 
dvariable log_der_logistic (double a, double b, const prevariable &x)
 Description not yet available. More...
 
double log_gamma_density (double _x, double r, double mu)
 Log gamma probability density function; constant objects. More...
 
dvariable log_gamma_density (const prevariable &_x, double r, double mu)
 file More...
 
dvariable log_gamma_density (const dvariable &_x, const dvariable &_r, const dvariable &_mu)
 Log gamma probability density function; variable objects. More...
 
double log_negbinomial_density (double x, double mu, double tau)
 
dvariable log_negbinomial_density (double x, const prevariable &mu, const prevariable &tau)
 Log negative bionomial density; variable objects. More...
 
double logistic (double a, double b, const double &x)
 
dvariable logistic (double a, double b, const prevariable &x)
 Description not yet available. More...
 
dvector lower_triagnular_solve_trans (const dmatrix &M, const dvector &y)
 
dvector lower_triagular_solve (const dmatrix &m, const dvector &v)
 
lower_triangular_dmatrix lower_triangular_choleski_decomp_positive (const dmatrix &MM, const int &_ierr)
 Description not yet available. More...
 
double lower_triangular_ln_det (const dmatrix &m)
 
double lower_triangular_ln_det (const dmatrix &m, int &sgn)
 
dvariable lower_triangular_ln_det (const dvar_matrix &m)
 Description not yet available. More...
 
dvariable lower_triangular_ln_det (const dvar_matrix &m, int &sgn)
 Description not yet available. More...
 
dvector lower_triangular_solve (const dmatrix &M, const dvector &v)
 Description not yet available. More...
 
dvar_vector lower_triangular_solve (const dvar_matrix &M, const dvar_vector &v)
 Description not yet available. More...
 
void ludcmp (const dmatrix &a, const ivector &indx, const double &d)
 Lu decomposition of a constant matrix. More...
 
void ludcmp_index (const dmatrix &a, const ivector &indx, const double &d)
 LU decomposition. More...
 
dmatrix make_dmatrix (dcompressed_triplet &M)
 
int make_sub_directory (const char *s)
 Create a sub directory s. More...
 
dmatrix MAT (const dvector &, int i, int j)
 The MAT operator is the inverse of the VEC operator. More...
 
dvar_matrix MAT (const dvar_vector &, int i, int j)
 The MAT operator is the inverse of the VEC operator. More...
 
double max (const dmatrix &)
 Returns the minimum value of matrix m. More...
 
int max (const imatrix &)
 Description not yet available. More...
 
double max (const dvector &)
 Returns the maximum value of vector vec. More...
 
dvariable max (const dvar_vector &)
 Return a copy of the maximum element in variables vector. More...
 
int max (const ivector &t1)
 Returns maximum value of all elements in ivec. More...
 
int Max (const ivector &t1)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
unsigned long max (unsigned long u, unsigned long v)
 Description not yet available. More...
 
double max (const double u, const double v)
 Description not yet available. More...
 
int max (int i, int j, int k)
 Description not yet available. More...
 
int max (int i, int j)
 Largest of two integer; constant objects. More...
 
double mean (const dvector &)
 Returns computed mean of vec. More...
 
double mean (const dmatrix &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double mean (const d3_array &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvariable mean (const dvar_vector &)
 Compute mean of v. More...
 
dvariable mean (const dvar_matrix &)
 Return the variable mean of matrix m. More...
 
dvariable mean (const dvar3_array &)
 Return computed variable mean of variable 3-dimensional array m. More...
 
dvariable mf_upper_bound (const prevariable &x, double M, prevariable &fpen)
 Description not yet available. More...
 
double mf_upper_bound (const double &x, double M, prevariable &fpen)
 
dvector mfexp (const dvector &t1)
 Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1. More...
 
dvector mfexp (const dvector &t1, double d)
 Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1. More...
 
dvar_vector mfexp (const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector mfexp (const dvar_vector &t1, double d)
 Description not yet available. More...
 
dmatrix mfexp (const dmatrix &m)
 Description not yet available. More...
 
dmatrix mfexp (const dmatrix &m, double d)
 Description not yet available. More...
 
dvar_matrix mfexp (const dvar_matrix &m)
 Description not yet available. More...
 
dvar_matrix mfexp (const dvar_matrix &m, double d)
 Description not yet available. More...
 
double mfexp (double)
 Robust exponential function for constant argument > 60 or < -60. More...
 
double mfexp (double, double bound)
 Robust exponential function for constant argument with user specified domain bound. More...
 
dvariable mfexp (const prevariable &)
 Robust exponential function for variable argument > 60 or < -60. More...
 
dvariable mfexp (const prevariable &, double bound)
 Robust exponential function for variable argument with user specified domain bound. More...
 
d3_array mfexp (const d3_array &m)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
d3_array mfexp (const d3_array &m, double d)
 Return d3_array with computed exponent for each element in m with bounds d. More...
 
dvar3_array mfexp (const dvar3_array &m)
 Description not yet available. More...
 
dvar3_array mfexp (const dvar3_array &m, double d)
 Description not yet available. More...
 
d4_array mfexp (const d4_array &x)
 Returns results in a d4_array with the computed exponential of the elements in darray. More...
 
dvar4_array mfexp (const dvar4_array &x)
 Description not yet available. More...
 
d5_array mfexp (const d5_array &x)
 
dvar5_array mfexp (const dvar5_array &x)
 Description not yet available. More...
 
double min (const dmatrix &)
 Returns the minimum value of matrix m. More...
 
dvariable min (const dvar_vector &)
 Return a copy of the minimum element in variables vector. More...
 
int min (const ivector &t1)
 Returns minimum value of all elements in ivec. More...
 
int min (int, int)
 Return smallest value of two integers a or b. More...
 
unsigned long min (unsigned long u, unsigned long v)
 Description not yet available. More...
 
double min (const double u, const double v)
 Description not yet available. More...
 
void myheapcheck (char *)
 Does nothing. More...
 
double nd2fboundp (double x, double minb, double maxb, const double &pen)
 Scale input variable between upper and lower bounds and compute a penalty for exceeding the bounds. More...
 
dvar_matrix nograd_assign (const dmatrix &)
 Description not yet available. More...
 
dvariable nograd_assign (double tmp)
 Description not yet available. More...
 
dvar_vector nograd_assign (dvector tmp)
 Description not yet available. More...
 
void nograd_assign_column (const dvar_matrix &m, const dvector &v, const int &ii)
 Description not yet available. More...
 
void nograd_assign_row (const dvar_matrix &m, const dvector &v, const int &ii)
 Description not yet available. More...
 
dvar_matrix nograd_assign_trans (const dmatrix &m)
 Description not yet available. More...
 
double norm (const d3_array &)
 Return computed norm value of a. More...
 
dvariable norm (const dvar3_array &m)
 Description not yet available. More...
 
double norm (const banded_symmetric_dmatrix &B)
 
dvariable norm (const banded_symmetric_dvar_matrix &B)
 Description not yet available. More...
 
double norm2 (const d3_array &)
 Return sum of squared elements in a. More...
 
dvariable norm2 (const dvar3_array &m)
 Description not yet available. More...
 
double norm2 (const banded_symmetric_dmatrix &B)
 
dvariable norm2 (const banded_symmetric_dvar_matrix &B)
 Description not yet available. More...
 
int norm2 (const ivector &)
 Returns the sum of the squares of all elements in ivec. More...
 
dvariable norm_to_gamma (const prevariable &v, const prevariable &alpha, double bound=0.999999)
 Description not yet available. More...
 
double norm_to_gamma (double v, double alpha, double bound=0.999999)
 Description not yet available. More...
 
double normal_tail_right (const double &x)
 Description not yet available. More...
 
void normalized_gauss_hermite (const dvector &_x, const dvector &_w)
 Gauss-Hermite quadature. More...
 
double old_inv_cumd_beta_stable (double a, double b, double y, double eps=1.e-7)
 
int operator!= (double v0, const prevariable &v1)
 Description not yet available. More...
 
dvector operator& (const dvector &t1, const dvector &t2)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_vector operator& (const dvar_vector &t1, const dvar_vector &t2)
 Concatenates variable vector elements in a with b and return results. More...
 
dvar_vector operator* (const dvar_vector &t1, double x)
 Description not yet available. More...
 
dvar_vector operator* (const dvar_vector &t1, const prevariable &x)
 Description not yet available. More...
 
dvar_vector operator* (const dvector &t1, const prevariable &x)
 Description not yet available. More...
 
dvar_vector operator* (const prevariable &x, const dvector &t1)
 Description not yet available. More...
 
dvector operator* (const dvector &t1, double x)
 Description not yet available. More...
 
dmatrix operator* (double x, const dmatrix &m)
 Description not yet available. More...
 
dmatrix operator* (const dmatrix &m, double d)
 Description not yet available. More...
 
dvar_matrix operator* (const prevariable &x, const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix operator* (const dvar_matrix &m, const prevariable &x)
 Description not yet available. More...
 
dvar_matrix operator* (const prevariable &x, const dvar_matrix &m)
 Description not yet available. More...
 
dvar_matrix operator* (double x, const dvar_matrix &m)
 Description not yet available. More...
 
dvar_matrix operator* (const dvar_matrix &t1, double x)
 Description not yet available. More...
 
imatrix operator* (const imatrix &, const imatrix &)
 Returns results of integer matrix multiplication (a x b). More...
 
d3_array operator* (const d3_array &m1, const d3_array &m2)
 
dmatrix operator* (const d3_array &m1, const dvector &m2)
 Description not yet available. More...
 
d3_array operator* (const d3_array &m1, double m2)
 Returns d3_array results of multiplying elements in a with value a(i, j, k) * value. More...
 
d3_array operator* (double m1, const d3_array &m2)
 Returns d3_array results of multiplying value by elements in a value * a(i, j, k). More...
 
dvar3_array operator* (const dvar3_array &m1, const d3_array &m2)
 
dvar3_array operator* (const dvar3_array &m1, const dvariable &m2)
 Description not yet available. More...
 
dvar3_array operator* (const dvariable &m1, const d3_array &m2)
 Description not yet available. More...
 
dvar3_array operator* (const dvariable &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array operator* (double m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar_vector operator+ (double x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator+ (const dvar_vector &t1, double x)
 Description not yet available. More...
 
dvar_vector operator+ (const prevariable &x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator+ (const dvar_vector &t1, const prevariable &x)
 Description not yet available. More...
 
dvector operator+ (double x, const dvector &t1)
 Description not yet available. More...
 
dvector operator+ (const dvector &t1, double x)
 Description not yet available. More...
 
dmatrix operator+ (double x, const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix operator+ (const dvariable &x, const dmatrix &m)
 Description not yet available. More...
 
dmatrix operator+ (const dmatrix &m, double d)
 Description not yet available. More...
 
d3_array operator+ (const d3_array &m1, const d3_array &m2)
 Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k). More...
 
d3_array operator+ (const d3_array &m1, double m2)
 Returns d3_array results with subtracting elements in a to value a(i, j, k) + value. More...
 
d3_array operator+ (double m1, const d3_array &m2)
 Returns d3_array results with adding elements in a to value value + a(i, j, k). More...
 
dvar3_array operator+ (const dvar3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array operator+ (const d3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array operator+ (const dvar3_array &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to m1(i, j, k) + m2(i, j, k). More...
 
dvar3_array operator+ (const dvar3_array &m1, const dvariable &m2)
 Description not yet available. More...
 
dvar3_array operator+ (const dvariable &d1, const dvar3_array &m1)
 Description not yet available. More...
 
dvar3_array operator+ (const dvariable &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to d + m2(i, j, k). More...
 
dvar3_array operator+ (double m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar_vector operator- (double x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator- (const dvar_vector &t1, double x)
 Subtracts x from each element of t1 into a dvar_vector. More...
 
dvar_vector operator- (const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator- (const prevariable &x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator- (const dvar_vector &t1, const prevariable &x)
 Description not yet available. More...
 
dvar_vector operator- (const dvector &t1, const prevariable &x)
 Description not yet available. More...
 
dvector operator- (double x, const dvector &t1)
 Description not yet available. More...
 
dvector operator- (const dvector &t1, double x)
 Description not yet available. More...
 
dvector operator- (const dvector &t1)
 
dvar_matrix operator- (const dvariable &x, const dmatrix &m)
 Description not yet available. More...
 
dmatrix operator- (double x, const dmatrix &m)
 Description not yet available. More...
 
dmatrix operator- (const dmatrix &m, double d)
 Description not yet available. More...
 
d3_array operator- (const d3_array &m1, const d3_array &m2)
 Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k). More...
 
d3_array operator- (const d3_array &m1, double m2)
 Returns d3_array results with subtracting elements in a to value a(i, j, k) - value. More...
 
d3_array operator- (double m1, const d3_array &m2)
 Returns d3_array results with subtracting elements in a to value value - a(i, j, k). More...
 
dvar3_array operator- (const dvar3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array operator- (const d3_array &m1, const dvar3_array &m2)
 Description not yet available. More...
 
dvar3_array operator- (const dvar3_array &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to m1(i, j, k) - m2(i, j, k). More...
 
dvar3_array operator- (const dvar3_array &m1, const dvariable &m2)
 Description not yet available. More...
 
dvar3_array operator- (const dvariable &m1, const d3_array &m2)
 Returns dvar3_array with each element equal to d + m2(i, j, k). More...
 
dvar3_array operator- (const dvariable &m1, const dvar3_array &m2)
 
dvar3_array operator- (double m1, const dvar3_array &m2)
 Description not yet available. More...
 
dmatrix operator- (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix operator- (const dvar_matrix &m)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_vector operator/ (double x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator/ (const dvar_vector &t1, double x)
 Divides each element of t1 by x, then return result in dvar_vector. More...
 
dvar_vector operator/ (const prevariable &x, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector operator/ (const dvar_vector &t1, const prevariable &x)
 Description not yet available. More...
 
dvector operator/ (double x, const dvector &t1)
 Description not yet available. More...
 
dvector operator/ (const dvector &t1, double x)
 Description not yet available. More...
 
dmatrix operator/ (const dmatrix &m, double d)
 Description not yet available. More...
 
dmatrix operator/ (double d, const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix operator/ (const dvar_matrix &m, const prevariable &x)
 Description not yet available. More...
 
dvar_matrix operator/ (const dmatrix &m, const prevariable &x)
 Description not yet available. More...
 
dvar_matrix operator/ (const dvar_matrix &m, double x)
 Description not yet available. More...
 
dvar_matrix operator/ (double x, const dvar_matrix &m)
 Description not yet available. More...
 
dvar_matrix operator/ (const prevariable &x, const dvar_matrix &m)
 Description not yet available. More...
 
d3_array operator/ (const d3_array &m1, double m2)
 Author: David Fournier. More...
 
d3_array operator/ (double m2, const d3_array &m1)
 
dvar3_array operator/ (const prevariable &m2, const dvar3_array &m1)
 Returns dvar3_array where each element (i, j) is equal to d / m(i, j). More...
 
dvar3_array operator/ (const prevariable &m2, const d3_array &m1)
 Returns dvar3_array where each element (i, j) is equal to d / m(i, j). More...
 
dvar3_array operator/ (double m2, const dvar3_array &m1)
 Returns dvar3_array where each element (i, j) is equal to d / m(i, j). More...
 
dvar3_array operator/ (const dvar3_array &m1, const prevariable &m2)
 Description not yet available. More...
 
dvar3_array operator/ (const d3_array &m1, const prevariable &m2)
 Description not yet available. More...
 
dvar3_array operator/ (const dvar3_array &m1, double m2)
 Description not yet available. More...
 
d4_array operator/ (const d4_array &m, double d)
 Returns d4_array with all elements arr4 divided by d. More...
 
d4_array operator/ (double d, const d4_array &m)
 Returns d4_array with all elements equal to d divided by elements in arr4. More...
 
dvar4_array operator/ (const d4_array &m, const prevariable &d)
 Description not yet available. More...
 
dvar4_array operator/ (const dvar4_array &m, double d)
 Description not yet available. More...
 
dvar4_array operator/ (const dvar4_array &m, const prevariable &d)
 Description not yet available. More...
 
dvar5_array operator/ (const d5_array &m, const prevariable &d)
 Description not yet available. More...
 
dvar5_array operator/ (const dvar5_array &m, double d)
 Description not yet available. More...
 
dvar5_array operator/ (const dvar5_array &m, const prevariable &d)
 Description not yet available. More...
 
d5_array operator/ (const d5_array &m, double d)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
d6_array operator/ (const d6_array &m, double d)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar6_array operator/ (const d6_array &m, const prevariable &d)
 Description not yet available. More...
 
dvar6_array operator/ (const dvar6_array &m, double d)
 Description not yet available. More...
 
dvar6_array operator/ (const dvar6_array &m, const prevariable &d)
 Description not yet available. More...
 
d7_array operator/ (const d7_array &m, double d)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar7_array operator/ (const d7_array &m, const prevariable &d)
 Description not yet available. More...
 
dvar7_array operator/ (const dvar7_array &m, double d)
 Description not yet available. More...
 
dvar7_array operator/ (const dvar7_array &m, const prevariable &d)
 Description not yet available. More...
 
int operator< (double v0, const prevariable &v1)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ostr, const dmatrix &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const dmatrix &z)
 Write values to output. More...
 
ostream & operator<< (const ostream &ostr, const d3_array &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
uostreamoperator<< (const uostream &ostr, const d3_array &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ostream & operator<< (const ostream &ostr, const dvar3_array &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const dvar3_array &z)
 Save values from varr3 to output stream. More...
 
ostream & operator<< (const ostream &ostr, const ivector &z)
 Insertion operator for ivector z. More...
 
uostreamoperator<< (const uostream &ostr, const ivector &z)
 Write values to output. More...
 
ostream & operator<< (const ostream &ostr, const lvector &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const lvector &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ostr, const dvector &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const dvector &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ostr, const dvar_vector &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const dvar_vector &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ostr, const dvar_matrix &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const dvar_matrix &z)
 Operator to write values from dvar_matrix to output stream ostr. More...
 
ostream & operator<< (const ostream &ostr, const prevariable &z)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &ostr, const prevariable &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &, preshowpoint)
 Description not yet available. More...
 
ostream & operator<< (const ostream &, prefixed)
 Description not yet available. More...
 
ostream & operator<< (const ostream &, prescientific)
 Description not yet available. More...
 
ostream & operator<< (const ostream &istr, const imatrix &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &istr, const i3_array &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
prevariableoperator<< (const prevariable &v1, const prevariable &v2)
 Description not yet available. More...
 
dvar_vectoroperator<< (const dvar_vector &v1, const dvar_vector &v2)
 Description not yet available. More...
 
dvar_matrixoperator<< (const dvar_matrix &v1, const dvar_matrix &v2)
 Description not yet available. More...
 
ostream & operator<< (const ostream &s, const ptr_vector &v)
 Description not yet available. More...
 
uostreamoperator<< (const uostream &, const dfsdmat &)
 Description not yet available. More...
 
ostream & operator<< (const ostream &s, const fmm_control &fmc)
 << operator to write function minimizer details More...
 
ostream & operator<< (const ostream &, const dvar_matrix_position &)
 
ostream & operator<< (const ostream &ostr, const d4_array &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ostream & operator<< (const ostream &ostr, const d5_array &z)
 Write values to output. More...
 
ostream & operator<< (const ostream &ostr, const d6_array &z)
 Write values to output. More...
 
ostream & operator<< (const ostream &ostr, const dvar4_array &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ostream & operator<< (const ostream &ostr, const dvar5_array &z)
 Outputs dvar5_array z. More...
 
ostream & operator<< (const ostream &ostr, const dvar6_array &z)
 Description not yet available. More...
 
ostream & operator<< (const ostream &output, const i4_array &iarray)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ostream & operator<< (const ostream &output, const i5_array &iarray)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ostream & operator<< (const ostream &ofs, const banded_symmetric_dmatrix &S)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ofs, const banded_symmetric_dvar_matrix &S)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ofs, const banded_lower_triangular_dmatrix &S)
 Description not yet available. More...
 
ostream & operator<< (const ostream &ofs, const banded_lower_triangular_dvar_matrix &S)
 Description not yet available. More...
 
ostream & operator<< (const ostream &, const pre_column_print &)
 Description not yet available. More...
 
ostream & operator<< (const ostream &, const pre_zero_print &)
 Description not yet available. More...
 
int operator<= (double v0, const prevariable &v1)
 Description not yet available. More...
 
int operator== (double v0, const prevariable &v1)
 Description not yet available. More...
 
int operator> (double v0, const prevariable &v1)
 Description not yet available. More...
 
int operator>= (double v0, const prevariable &v1)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const dmatrix &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const dmatrix &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
istream & operator>> (const istream &istr, const d3_array &z)
 Read values from input stream into arr3. More...
 
uistreamoperator>> (const uistream &istr, const d3_array &z)
 Read values from input stream to arr3. More...
 
istream & operator>> (const istream &istr, const dvar3_array &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const dvar3_array &z)
 Read values from input stream to varr3. More...
 
istream & operator>> (const istream &istr, const ivector &z)
 Extraction operator for ivector _z. More...
 
uistreamoperator>> (const uistream &istr, const ivector &z)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
istream & operator>> (const istream &istr, const lvector &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const lvector &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const dvector &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const dvector &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const dvar_vector &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const dvar_vector &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const dvar_matrix &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const dvar_matrix &z)
 Operator to read values to dvar_matrix form input stream istr. More...
 
istream & operator>> (const istream &istr, const prevariable &z)
 Description not yet available. More...
 
uistreamoperator>> (const uistream &istr, const prevariable &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const imatrix &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const i3_array &z)
 Read to iarr3 from input stream. More...
 
istream & operator>> (const istream &s, const ptr_vector &v)
 
uistreamoperator>> (const uistream &, const dfsdmat &)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const d4_array &z)
 Read from input to values. More...
 
istream & operator>> (const istream &istr, const d5_array &z)
 Read from input to values. More...
 
istream & operator>> (const istream &istr, const d6_array &z)
 Read from input to values. More...
 
istream & operator>> (const istream &istr, const dvar4_array &z)
 Read values to varr4 from input stream. More...
 
istream & operator>> (const istream &istr, const dvar5_array &z)
 Description not yet available. More...
 
istream & operator>> (const istream &istr, const dvar6_array &z)
 Description not yet available. More...
 
istream & operator>> (const istream &input, const i4_array &iarray)
 Read iarray from input stream. More...
 
istream & operator>> (const istream &input, const i5_array &iarray)
 Read iarray from input stream. More...
 
int option_match (int argc, char *argv[], const char *string)
 Checks if the program has been invoked with a particular command line argument ("string"). More...
 
int option_match (int argc, char *argv[], const char *string, int &nopt)
 Checks if the program has been invoked with a particular command line argument ("string"). More...
 
int option_match (char *s, const char *string, int &nopt)
 Search for option in _s and returns number of option args in _nopt. More...
 
int option_match (char *s, const char *string)
 Search for option in _s. More...
 
dmatrix orthpoly (int n, int deg)
 Description not yet available. More...
 
dmatrix orthpoly (int n, int deg, int skip)
 Description not yet available. More...
 
d4_array orthpoly2 (int n, int m, int d1, int d2)
 Description not yet available. More...
 
dmatrix orthpoly_constant_begin (int n, int deg, int nconst)
 Description not yet available. More...
 
dmatrix orthpoly_constant_begin_end (int n, int deg, int nconst_begin, int enddeg, int nconst_end)
 Description not yet available. More...
 
dmatrix outer_prod (const dvector &t1, const dvector &t2)
 Description not yet available. More...
 
dvar_matrix outer_prod (const dvar_vector &t1, const dvar_vector &t2)
 Description not yet available. More...
 
dvar_matrix outer_prod (const dvector &t1, const dvar_vector &t2)
 Compute the outer product of v1 and v2 vectors into dvar_matrix. More...
 
dvar_matrix outer_prod (const dvar_vector &t1, const dvector &t2)
 Compute the outer product of v1 and v2 vectors into dvar_matrix. More...
 
dvar_vector pareto_density (const dvar_vector &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable pareto_density (const prevariable &_y, const prevariable &alpha, const prevariable &xm)
 
dvariable pbeta (const dvariable x, const dvariable a, const dvariable b, int maxit=100)
 beta distribution function for variable objects (alias of ibeta function with same arguments order as in R). More...
 
double pbeta (const double x, const double a, const double b, int maxit=100)
 beta distribution function for constant objects (alias of ibeta function with same arguments order as in R). More...
 
dvar_vector posfun (const dvar_vector &x, double eps, const prevariable &pen)
 Description not yet available. More...
 
dvariable posfun (const dvariable &x, const double eps, const prevariable &pen)
 Retuns a positive function of the argument $x$ and sets a penalty for $x<0$. More...
 
double posfun (const double &x, const double eps, const double &_pen)
 Retuns a positive function of the argument $x$ and sets a penalty for $x<0$. More...
 
dvariable posfun2 (const dvariable &x, const double eps, const prevariable &pen)
 Retuns a positive function of the argument $x$ and sets a penalty for $x<0$. More...
 
double posfun2 (const double &x, const double eps, const double &_pen)
 Retuns a positive function of the argument $x$ and sets a penalty for $x<0$. More...
 
dvar_matrix positive_definite_matrix (const dvar_matrix &MM, double eps, dvariable &fpen)
 Description not yet available. More...
 
dvector pow (const dvector &t1, double)
 Returns a dvector with base raised to the power exponent for each element in exponents. More...
 
dvector pow (const dvector &t1, int)
 Returns a dvector with base raised to the power exponent for each element in exponents. More...
 
dvector pow (double, const dvector &t1)
 Returns a dvector with base raised to the power exponent for each element in exponents. More...
 
ivector pow (const ivector &v1, int x)
 Returns integer vector with all the base elements in ivector v1 base raised to the power exponent x. More...
 
ivector pow (int x, const ivector &v1)
 Returns integer vector with base x raised with all the elements in exponent ivector x. More...
 
dvar_vector pow (const dvar_vector &, const dvar_vector &t1)
 Description not yet available. More...
 
dvar_vector pow (const dvar_vector &, const dvector &t1)
 raise v1 to the power v2. More...
 
dvar_vector pow (const dvector &, const dvar_vector &t1)
 
dvector pow (const dvector &, const dvector &t1)
 Returns a dvector with each element from bases is raised to the power exponent for each element in exponents. More...
 
dvar_vector pow (const dvar_vector &t1, double)
 Computes pow raised to the power e for each element in v1 to a dvar_vector. More...
 
dvar_vector pow (const dvar_vector &t1, int)
 Description not yet available. More...
 
dvar_vector pow (const dvar_vector &t1, const prevariable &)
 Description not yet available. More...
 
dvar_vector pow (const dvector &t1, const prevariable &)
 Description not yet available. More...
 
dvar_vector pow (const prevariable &, const dvar_vector &t1)
 Description not yet available. More...
 
dmatrix pow (const dmatrix &m, double e)
 
dmatrix pow (const dmatrix &m, int e)
 Returns dmatrix with pow of each element in m raised to the exponent e. More...
 
dvar_matrix pow (const dvar_matrix &m, double e)
 Description not yet available. More...
 
dvar_matrix pow (const dvar_matrix &m, const prevariable &e)
 Description not yet available. More...
 
dvar_matrix pow (const dmatrix &m, const prevariable &e)
 Description not yet available. More...
 
dvar_matrix pow (const dvar_matrix &m, int e)
 Description not yet available. More...
 
d3_array pow (const d3_array &x, int e)
 Description not yet available. More...
 
dvar3_array pow (const dvar3_array &x, int e)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double qbeta (double x, double a, double b, double eps=0)
 
dvariable qbeta (dvariable x, dvariable a, dvariable b, double eps=0)
 
double randn (const random_number_generator &rng)
 Normal number generator. More...
 
double randnegbinomial (double mu, double tau, const random_number_generator &rng)
 Description not yet available. More...
 
double randpoisson (double lambda, const random_number_generator &rng)
 Poisson random deviates. More...
 
double randu (const random_number_generator &rng)
 Uniform random number generator. More...
 
dvariable regression (const dvector &obs, const dvar_vector &pred)
 Description not yet available. More...
 
double regression (const dvector &obs, const dvector &pred)
 Description not yet available. More...
 
void report_gradstack_flag (void)
 Description not yet available. More...
 
void reset_gradient_stack (void)
 Rewind buffer. More...
 
long int reset_gs_stack (void)
 
void reset_gs_stack (long int)
 
void * restore_ad_pointer (void)
 Description not yet available. More...
 
banded_lower_triangular_dmatrix restore_banded_lower_triangular_dvar_matrix_derivatives (const dvar_matrix_position &pos)
 Description not yet available. More...
 
banded_lower_triangular_dmatrix restore_banded_lower_triangular_dvar_matrix_value (const dvar_matrix_position &pos)
 Description not yet available. More...
 
banded_symmetric_dmatrix restore_banded_symmetric_dvar_matrix_value (const dvar_matrix_position &mpos)
 Description not yet available. More...
 
banded_symmetric_dmatrix restore_bounded_symmetric_dvar_matrix_derivatives (const dvar_matrix_position &pos)
 Description not yet available. More...
 
d3_array_position restore_d3_array_position (void)
 Description not yet available. More...
 
d3_array restore_d3_array_value (const d3_array_position &)
 Description not yet available. More...
 
dmatrix_position restore_dmatrix_position ()
 Description not yet available. More...
 
dmatrix restore_dmatrix_value (const dmatrix_position &)
 Description not yet available. More...
 
double restore_double_value (void)
 Description not yet available. More...
 
dmatrix restore_dvar_matrix_der_nozero (const dvar_matrix_position &pos)
 Description not yet available. More...
 
dvector restore_dvar_matrix_derivative_column (const dvar_matrix_position &pos, const int &ii)
 Description not yet available. More...
 
dvector restore_dvar_matrix_derivative_row (const dvar_matrix_position &pos, const int &ii)
 Description not yet available. More...
 
dmatrix restore_dvar_matrix_derivatives (const dvar_matrix_position &pos)
 Description not yet available. More...
 
dmatrix restore_dvar_matrix_derivatives (void)
 
dvector restore_dvar_matrix_derivatives (const dvar_matrix_position &pos, const int &ii)
 
dvar_matrix_position restore_dvar_matrix_position ()
 Reads back the size and address information for a dvar_matrix, restores the size, address, and value information for a dvar_vector. More...
 
dmatrix restore_dvar_matrix_value (const dvar_matrix_position &mpos)
 Description not yet available. More...
 
dvector restore_dvar_vector_der_nozero (const dvar_vector_position &tmp)
 Description not yet available. More...
 
dvector restore_dvar_vector_derivatives (void)
 
dvector restore_dvar_vector_derivatives (const dvar_vector_position &tmp)
 Description not yet available. More...
 
dvar_vector_position restore_dvar_vector_position (void)
 Description not yet available. More...
 
dvector restore_dvar_vector_value (const dvar_vector_position &tmp)
 Restores the size, address, and value information for a dvar_vector. More...
 
dvector_position restore_dvector_position (void)
 Description not yet available. More...
 
dvector restore_dvector_value (const dvector_position &)
 Restores the size, address, and value information for a dvector. More...
 
int restore_int_value (void)
 Description not yet available. More...
 
ivector_position restore_ivector_position ()
 Description not yet available. More...
 
ivector restore_ivector_value (const ivector_position &)
 Description not yet available. More...
 
lmatrix_position restore_lmatrix_position (void)
 
lmatrix restore_lmatrix_value (const lmatrix_position &)
 
void * restore_pointer_value (void)
 Description not yet available. More...
 
double restore_prevariable_derivative (const prevariable_position &pre)
 Description not yet available. More...
 
double restore_prevariable_derivative ()
 Description not yet available. More...
 
prevariable_position restore_prevariable_position ()
 Description not yet available. More...
 
double restore_prevariable_value (void)
 Description not yet available. More...
 
void RETURN_ARRAYS_DECREMENT (void)
 Decrements gradient_structure::RETURN_ARRAYS_PTR. More...
 
void RETURN_ARRAYS_INCREMENT (void)
 Increments gradient_structure::RETURN_ARRAYS_PTR. More...
 
hs_smatrix * return_choleski_decomp (dcompressed_triplet &st)
 
dvar_hs_smatrix * return_choleski_decomp (dvar_compressed_triplet &st)
 
dvector return_choleski_decomp_solve (dcompressed_triplet &dct, dvector &eps)
 
dvector return_choleski_factor_solve (hs_smatrix *PL, dvector &eps)
 
dvar_vector return_choleski_factor_solve (dvar_hs_smatrix *PL, dvector &eps)
 
double robust_normal_logistic_mixture_deviate (double x, double spread=3.0)
 Description not yet available. More...
 
double robust_normal_mixture_deviate (double x, double spread=3.0)
 Description not yet available. More...
 
dvariable robust_normal_mixture_deviate (const prevariable &x, double spread=3.0)
 Description not yet available. More...
 
dvariable robust_regression (const dvector &obs, const dvar_vector &pred, double a=0.7)
 Description not yet available. More...
 
dvariable robust_regression (const dvector &obs, const dvar_vector &pred, const dvariable &cutoff)
 Description not yet available. More...
 
dvariable robust_regression_fixed (const dvector &obs, const dvar_vector &pred, double a=0.7)
 
dvector row (const dmatrix &m, int j)
 Returns a copied row for matrix at i. More...
 
dvar_vector row (const dvar_matrix &m, int j)
 Description not yet available. More...
 
dmatrix row_vector (const dvector &)
 Returns dvar_matrix with a single row using values from v. More...
 
dvar_matrix row_vector (const dvar_vector &)
 Returns dvar_matrix with a single row using values from v. More...
 
dvar_vector rowsum (const dvar_matrix &)
 Description not yet available. More...
 
dvector rowsum (const dmatrix &)
 Returns dvector where each element contains the sum total of each row in matrix. More...
 
ivector rowsum (const imatrix &)
 Returns integer vector rowsums where each element is the sum of the ith row in matrix. More...
 
void save_ad_pointer (void *)
 Description not yet available. More...
 
void save_dmatrix_derivatives (const dvar_matrix_position &pos, double x, const int &i, int &j)
 Description not yet available. More...
 
void save_double_derivative (double x, const prevariable_position &pos)
 Description not yet available. More...
 
void save_double_value (double x)
 Description not yet available. More...
 
int save_identifier_string (const char *)
 Writes a gradient stack verification string. More...
 
void save_int_value (int x)
 Description not yet available. More...
 
void save_pointer_value (void *ptr)
 Description not yet available. More...
 
void send_dv3_to_master (const dvar3_array &v)
 
void set_gradstack_flag (char *str, int i, int j)
 Description not yet available. More...
 
void set_gradstack_flag (char *str)
 Description not yet available. More...
 
void set_value (const dvar_matrix &x, const dvar_vector &v, const int &_ii, double s)
 Description not yet available. More...
 
void set_value (const dvar_matrix &x, const dvar_vector &v, const int &ii, double fmin, double fmax, const dvariable &fpen, double s)
 Description not yet available. More...
 
void set_value (const dvar_vector &x, const dvar_vector &v, const int &_ii, double s)
 Description not yet available. More...
 
void set_value (const dvar_vector &_x, const dvar_vector &v, const int &_ii, double fmin, double fmax, const dvariable &fpen, double s)
 Description not yet available. More...
 
void set_value (const prevariable &x, const dvar_vector &v, const int &ii)
 Description not yet available. More...
 
void set_value (const prevariable &x, const dvar_vector &v, const int &ii, double s)
 Description not yet available. More...
 
void set_value (const dvar_vector &x, const dvar_vector &v, const int &ii)
 Description not yet available. More...
 
void set_value (const prevariable &_x, const dvar_vector &v, const int &_ii, double fmin, double fmax, const dvariable &fpen, double s)
 Description not yet available. More...
 
void set_value (const prevariable &x, const dvar_vector &v, const int &ii, double fmin, double fmax, const dvariable &fpen)
 Description not yet available. More...
 
void set_value (const dvar_vector &x, const dvar_vector &v, const int &ii, double fmin, double fmax, const dvariable &fpen)
 Description not yet available. More...
 
void set_value (const dvar_matrix &x, const dvar_vector &v, const int &ii)
 Description not yet available. More...
 
void set_value (const dvar_matrix &x, const dvar_vector &v, const int &ii, double fmin, double fmax, const dvariable &fpen)
 Description not yet available. More...
 
void set_value (dvar3_array &x, const dvar_vector &v, const int &ii)
 Description not yet available. More...
 
void set_value (dvar3_array &x, const dvar_vector &v, const int &ii, double fmin, double fmax, const dvariable &fpen)
 Description not yet available. More...
 
void set_value_exp (const prevariable &_x, const dvar_vector &v, const int &_ii, double fmin, double fmax, const dvariable &fpen, double s)
 
void set_value_inv (const dvar_matrix &x, const dvector &v, const int &ii, double s)
 Description not yet available. More...
 
void set_value_inv (const dvar_matrix &x, const dvector &v, const int &ii, double fmin, double fmax, double s)
 Description not yet available. More...
 
void set_value_inv (const dvar_vector &x, const dvector &_v, const int &_ii, double s)
 Description not yet available. More...
 
void set_value_inv (const dvar_vector &x, const dvector &_v, const int &_ii, double fmin, double fmax, double s)
 Description not yet available. More...
 
void set_value_inv (const dvar_matrix &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const prevariable &x, const dvector &v, const int &ii, double s)
 Description not yet available. More...
 
void set_value_inv (const prevariable &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const dvar_matrix &u, const dvector &x, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const dvar3_array &u, const dvector &x, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const dvar3_array &u, const dvector &x, const int &ii)
 Description not yet available. More...
 
void set_value_inv (double x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const prevariable &x, const dvector &_v, const int &_ii, double fmin, double fmax, double s)
 Description not yet available. More...
 
void set_value_inv (const prevariable &u, const dvector &x, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (double u, const dvector &x, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const dvector &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const dvar_vector &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const dvar_vector &x, const dvector &v, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const dvector &x, const dvector &v, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const dmatrix &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const dmatrix &x, const dvector &v, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv (const d3_array &x, const dvector &v, const int &ii)
 Description not yet available. More...
 
void set_value_inv (const d3_array &x, const dvector &v, const int &ii, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv_exp (const prevariable &x, const dvector &_v, const int &_ii, double fmin, double fmax, double s)
 
void set_value_inv_partial (const dvector &x, const dvector &v, const int &ii, int n)
 Description not yet available. More...
 
void set_value_inv_partial (const dvector &x, const dvector &v, const int &ii, int n, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_inv_partial (const dmatrix &x, const dvector &v, const int &ii, int n)
 
void set_value_inv_partial (const dvar_matrix &x, const dvector &v, const int &ii, int n)
 Description not yet available. More...
 
void set_value_inv_partial (const d3_array &x, const dvector &v, const int &ii, int n)
 
void set_value_inv_partial (const dvar_vector &x, const dvector &v, const int &ii, int n)
 Description not yet available. More...
 
void set_value_inv_partial (const dvar_vector &x, const dvector &v, const int &ii, int n, double fmin, double fmax)
 Description not yet available. More...
 
void set_value_partial (const dvar_vector &x, const dvar_vector &v, const int &ii, int n)
 Description not yet available. More...
 
void set_value_partial (const dvar_vector &x, const dvar_vector &v, const int &ii, int n, double fmin, double fmax, const dvariable &fpen)
 Description not yet available. More...
 
void set_value_partial (const dvar_matrix &x, const dvar_vector &v, const int &ii, int n)
 Description not yet available. More...
 
void set_value_partial (dvar3_array &x, const dvar_vector &v, const int &ii, int n)
 
ostream & setfixed (const ostream &s)
 
prefixed setfixed (void)
 Description not yet available. More...
 
ostream & setscientific (const ostream &s)
 
prescientific setscientific (void)
 Description not yet available. More...
 
preshowpoint setshowpoint (void)
 Description not yet available. More...
 
double sfabs (double t1)
 Description not yet available. More...
 
dvector sfabs (const dvector &t1)
 Description not yet available. More...
 
double sgamma (double a, const random_number_generator &_rng)
 Description not yet available. More...
 
ivector sgn (const dvector &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
ivector sgn (const dvar_vector &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double sigmoid (double t1)
 Returns computed sigmoid value at v1. More...
 
dvector sin (const dvector &t1)
 Returns dvector with sine for each value of vec. More...
 
dvar_vector sin (const dvar_vector &t1)
 Computes sin of each element in v1 to a dvar_vector. More...
 
dmatrix sin (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix sin (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array sin (const d3_array &m)
 Returns d3_array results with computed sin from elements in arr3. More...
 
dvar3_array sin (const dvar3_array &m)
 Computes sin of each element in m to a dvar3_array. More...
 
sing_val_decomp singval_decomp (const dmatrix &_a)
 Singular value decomposition. More...
 
dvector sinh (const dvector &t1)
 Returns dvector with hyperbolic sine for each value of vec. More...
 
dvar_vector sinh (const dvar_vector &t1)
 Description not yet available. More...
 
unsigned int size_count (const dvar_vector &x)
 Returns size of dvar_vector x. More...
 
unsigned int size_count (const dvar_matrix &x)
 Returns size of dvar_matrix x. More...
 
unsigned int size_count (const dvar3_array &x)
 Returns size of dvar3_array x. More...
 
unsigned int size_count (const dvar4_array &x)
 Returns size of dvar4_array x. More...
 
unsigned int size_count (const dvector &x)
 Returns total size of elements in vector x. More...
 
unsigned int size_count (const dmatrix &x)
 Returns total size of elements in matrix x. More...
 
unsigned int size_count (const d3_array &x)
 Returns total size of elements in d3_array x. More...
 
unsigned int size_count (const d4_array &x)
 Returns size of d4_array x. More...
 
int size_count_partial (const dvar_vector &x, int)
 Description not yet available. More...
 
int size_count_partial (const dvar_matrix &x, int)
 Description not yet available. More...
 
int size_count_partial (const dvar3_array &x, int)
 Description not yet available. More...
 
int size_count_partial (const dvector &x, int)
 Description not yet available. More...
 
int size_count_partial (const dmatrix &x, int)
 Description not yet available. More...
 
int size_count_partial (const d3_array &x, int)
 Description not yet available. More...
 
void slave_gradcalc (void)
 
int smbfct_ (int *neqns, ivector &xadj, ivector &adjncy, ivector &perm, ivector &invp, ivector &xlnz, int *maxlnz, ivector &xnzsub, ivector &nzsub, int *maxsub, ivector &rchlnk, ivector &mrglnk, ivector &marker, int *flag__)
 
dvar_vector solve (const dvar_matrix &aa, const dvar_vector &z)
 Solve a linear system using LU decomposition. More...
 
dvar_vector solve (const dvar_matrix &aa, const dvar_vector &z, prevariable &ln_unsigned_det, const prevariable &sign)
 Solve a linear system using LU decomposition. More...
 
dvector solve (const dmatrix &aa, const dvector &z)
 Solve a linear system using LU decomposition. More...
 
dvector solve (const dmatrix &aa, const dvector &z, const double &ln_unsigned_det, double &sign)
 Solve a linear system using LU decomposition. More...
 
dvar_matrix solve (const dvar_matrix &aa, const dvar_matrix &zz)
 
dmatrix solve (const banded_symmetric_dmatrix &m, const dmatrix &M)
 Description not yet available. More...
 
dmatrix solve (const dmatrix &m, const dmatrix &M)
 /param aa /param tz More...
 
dvector solve (const banded_symmetric_dmatrix &m, const dvector &v)
 Description not yet available. More...
 
dvar_vector solve (const banded_lower_triangular_dvar_matrix &m, const dvar_vector &v)
 Description not yet available. More...
 
dvector solve (const banded_lower_triangular_dmatrix &m, const dvector &v)
 Description not yet available. More...
 
dvector solve (const lower_triangular_dmatrix &M, const dvector &v)
 Description not yet available. More...
 
dvector solve (const dcompressed_triplet &, const dmatrix &, const dvector &)
 
dvector solve (const dcompressed_triplet &, const dvector &, const hs_symbolic &, int &ierr)
 
dvector solve (const dcompressed_triplet &, const dvector &, const hs_symbolic &)
 
dvector solve (const dcompressed_triplet &, const dmatrix &, const dvector &, const hs_symbolic &)
 
dvector solve_trans (const banded_lower_triangular_dmatrix &m, const dvector &v)
 Description not yet available. More...
 
dvector solve_trans (const lower_triangular_dmatrix &M, const dvector &v)
 Description not yet available. More...
 
dvar_vector solve_trans (const banded_lower_triangular_dvar_matrix &M, const dvector &y)
 Description not yet available. More...
 
dvar_vector sort (const dvar_vector &, int NSTACK=60)
 
dvector sort (const dvector &, int NSTACK=60)
 Quicksort. More...
 
ivector sort (const ivector &, int NSTACK=60)
 Quicksort. More...
 
dvector sort (const dvector &, const ivector &index, int NSTACK=60)
 Quicksort. More...
 
ivector sort (const ivector &, const ivector &index, int NSTACK=60)
 Quicksort. More...
 
dmatrix sort (const dmatrix &, int column, int NSTACK=60)
 Description not yet available. More...
 
imatrix sort (const imatrix &, int column, int NSTACK=60)
 Description not yet available. More...
 
void spdll_exit (int)
 
dvector sqr (const dvector &t1)
 Returns dvector with the square of each element in vec. More...
 
dvar_vector sqr (const dvar_vector &t1)
 Computes square of each element in v1 to a dvar_vector. More...
 
dmatrix sqr (const dmatrix &m)
 Returns dmatrix with each of element in m is squared. More...
 
dvar_matrix sqr (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array sqr (const d3_array &m)
 Returns d3_array with square values from arr3. More...
 
dvar3_array sqr (const dvar3_array &m)
 Computes square of each element in m to a dvar3_array. More...
 
dvector sqrt (const dvector &t1)
 Returns dvector with the square of each element in vec. More...
 
dvar_vector sqrt (const dvar_vector &t1)
 Computes sqrt of each element in v1 to a dvar_vector. More...
 
dmatrix sqrt (const dmatrix &m)
 Returns dmatrix with each of element in m is square rooted. More...
 
dvar_matrix sqrt (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array sqrt (const d3_array &m)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar3_array sqrt (const dvar3_array &m)
 Computes square root of each element in m to a dvar3_array. More...
 
d4_array sqrt (const d4_array &x)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar4_array sqrt (const dvar4_array &x)
 Description not yet available. More...
 
d5_array sqrt (const d5_array &x)
 
dvar5_array sqrt (const dvar5_array &x)
 Description not yet available. More...
 
ivector square (const ivector &x)
 Return dvector results of squaring elements in a values; constant vector object. More...
 
double square (double x)
 Return square of value; constant object. More...
 
dvector square (const dvector &x)
 Return dvector results of squaring elements in a values; constant vector object. More...
 
dmatrix square (const dmatrix &x)
 Square of a elements in a matrix; constant matrix object. More...
 
d3_array square (const d3_array &x)
 Square of elements in a 3-dimensional array; constant 3-dimensionsal array. More...
 
dvariablesquare (const prevariable &x)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_vector square (const dvar_vector &x)
 Description not yet available. More...
 
dvar_matrix square (const dvar_matrix &x)
 Return results of computing the square of variable matrix. More...
 
dvar3_array square (const dvar3_array &x)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double std_dev (const dvector &)
 Returns the computed standand deviation of vec. More...
 
dvariable std_dev (const dvar_vector &)
 Description not yet available. More...
 
int sub_unallocated (const dvar_vector &)
 Author: David Fournier Copyright (c) 2008-2017 Regents of the University of California. More...
 
int sub_unallocated (const dvar_matrix &)
 Returns true if any of the sub vectors of matrix m was not allocated, otherwise false. More...
 
int sub_unallocated (const dvar3_array &)
 Returns true if any of the sub vectors of arr3 was not allocated, otherwise false. More...
 
int sub_unallocated (const dvar4_array &)
 Returns true if any of the sub vectors of arr4 was not allocated, otherwise false. More...
 
int sub_unallocated (const dvar5_array &)
 Returns true if any of the sub vectors of arr5 was not allocated, otherwise false. More...
 
int sub_unallocated (const dvector &)
 Returns true if v was not allocated, otherwise false. More...
 
int sub_unallocated (const dmatrix &)
 Returns true if any of the sub vectors of matrix m was not allocated, otherwise false. More...
 
int sub_unallocated (const d3_array &)
 Returns true if any of the sub vectors of arr3 was not allocated, otherwise false. More...
 
int sub_unallocated (const d4_array &)
 Returns true if any of the sub vectors of arr4 was not allocated, otherwise false. More...
 
int sub_unallocated (const d5_array &)
 Returns true if any of the sub vectors of arr5 was not allocated, otherwise false. More...
 
int sub_unallocated (const ivector &)
 Returns true if v was not allocated, otherwise false. More...
 
int sub_unallocated (const imatrix &)
 Returns true if any of the sub vectors of matrix m was not allocated, otherwise false. More...
 
int sub_unallocated (const i3_array &)
 Returns true if any of the sub vectors of arr3 was not allocated, otherwise false. More...
 
int sub_unallocated (const i4_array &)
 Returns true if any of the sub vectors of arr4 was not allocated, otherwise false. More...
 
int sub_unallocated (const i5_array &)
 Returns true if any of the sub vectors of arr5 was not allocated, otherwise false. More...
 
AD_LONG_INT sum (const lvector &)
 
dvariable sum (const dvar_vector &)
 Compute the sum of a variable type vector. More...
 
double sum (const dvector &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
int sum (const ivector &)
 Return integer sum of all the elements in ivector v. More...
 
int sum (const imatrix &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double sum (const dmatrix &)
 Return total sum of all elements in matrix. More...
 
double sum (const d3_array &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double sum (const d4_array &)
 Return the sum total of all the elements in darray. More...
 
double sum (const d5_array &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
double sum (const d6_array &)
 Return total sum of darray. More...
 
double sum (const d7_array &)
 Return total sum of darray. More...
 
dvariable sum (const dvar_matrix &)
 Compute the sum of a variable type matrix. More...
 
dvariable sum (const dvar3_array &)
 Description not yet available. More...
 
dvariable sum (const dvar4_array &)
 Description not yet available. More...
 
dvariable sum (const dvar5_array &)
 Description not yet available. More...
 
dvariable sum (const dvar6_array &)
 Description not yet available. More...
 
dvariable sum (const dvar7_array &)
 Description not yet available. More...
 
double sumsq (const d3_array &)
 
dvariable sumsq (const dvar3_array &m)
 
double sumsq (const banded_symmetric_dmatrix &B)
 
dvariable sumsq (const banded_symmetric_dvar_matrix &B)
 
int sumsq (const ivector &v)
 Returns the sum of the squares of all elements in ivec. More...
 
dmatrix symmetrize (const dmatrix &m1)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvar_matrix symmetrize (const dvar_matrix &m1)
 Description not yet available. More...
 
dmatrix symmetrize (const lower_triangular_dmatrix &M)
 Description not yet available. More...
 
dvector tan (const dvector &t1)
 Returns dvector with tangent for each value of vec. More...
 
dvar_vector tan (const dvar_vector &t1)
 Computes tan of each element in v1 to a dvar_vector. More...
 
dmatrix tan (const dmatrix &m)
 Description not yet available. More...
 
dvar_matrix tan (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array tan (const d3_array &m)
 Returns d3_array results with computed tan from elements in arr3. More...
 
dvar3_array tan (const dvar3_array &m)
 Description not yet available. More...
 
dvector tanh (const dvector &t1)
 Returns dvector with hyperbolic tangent for each value of vec. More...
 
dvar_vector tanh (const dvar_vector &t1)
 Description not yet available. More...
 
dvar_matrix tensor_prod (const dvar_matrix &a, const dvar_matrix &b)
 The tensor product of two dvar_matrixes. More...
 
void tracing_message (int traceflag, const char *s)
 Description not yet available. More...
 
void tracing_message (int traceflag, const char *s, int *pn)
 Description not yet available. More...
 
void tracing_message (int traceflag, const char *s, double *pd)
 Description not yet available. More...
 
void tracing_message (int traceflag, const char *s, double d)
 Description not yet available. More...
 
dmatrix trans (const dmatrix &m1)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
imatrix trans (const imatrix &m1)
 Description not yet available. More...
 
dvar_matrix use_shape (const dvar_matrix &m)
 Description not yet available. More...
 
dmatrix use_shape (const dmatrix &m)
 Description not yet available. More...
 
double & value (const prevariable &v1)
 
dmatrix value (const dvar_matrix &m)
 Description not yet available. More...
 
d3_array value (const dvar3_array &a)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
banded_symmetric_dmatrix value (const banded_symmetric_dvar_matrix &v)
 Description not yet available. More...
 
double var (const dvector &)
 Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California. More...
 
dvariable var (const dvar_vector &)
 Description not yet available. More...
 
dvector VEC (const dmatrix &)
 The VEC operator concatenates the columns of matrix M into a column vector. More...
 
dvar_vector VEC (const dvar_matrix &)
 The VEC operator concatenates the columns of matrix M into a column vector. More...
 
void verify_identifier_string (const char *)
 Verifies gradient stack string. More...
 
char which_library ()
 Get ADMB library mode. More...
 
pre_zero_print zero_print (const dvector &v)
 Description not yet available. More...
 

Variables

exitptr ad_exit
 
int ad_kill_flag
 
const int defaults::iprint = 20
 
int just_to_link_fvar1
 
const int defaults::output = 1
 
const int defaults::percentage = 20
 
constexpr const int defaults::percentage_number = 100 / defaults::percentage
 

Detailed Description

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

ADModelbuilder and associated libraries and documentations are provided under the general terms of the "New BSD" license

License:

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of the University of California, Otter Research, nor the ADMB Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. AUTODIF classes. Class definitions for reverse mode automatic differentiation. Function prototypes for math functions. Macro definitions.

Definition in file fvar.hpp.

Macro Definition Documentation

#define __GNU__

Definition at line 165 of file fvar.hpp.

#define __NUMBERVECTOR__

Definition at line 135 of file fvar.hpp.

#define __USE_IOSTREAM__

Definition at line 148 of file fvar.hpp.

#define _VECTOR_SHAPE

Definition at line 473 of file fvar.hpp.

#define AD_LONG_INT   long int
#define AD_SET_DERIVATIVES1 (   depvar,
  indvar,
  df 
)
Value:
&(value(depvar)), &(value(indvar)),df);
void default_evaluation2(void)
Description not yet available.
Definition: def_eval.cpp:136
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
void set_gradient_stack2(void(*func)(void), double *dep_addr, double *ind_addr1, double mult1)
Description not yet available.
Definition: fvar.hpp:1202
static _THREAD grad_stack * GRAD_STACK1

Definition at line 8793 of file fvar.hpp.

#define AD_SET_DERIVATIVES2 (   depvar,
  indvar1,
  df1,
  indvar2,
  df2 
)
Value:
&(value(depvar)), &(value(indvar1)),df1,&(value(indvar2)),df2);
void default_evaluation3(void)
Description not yet available.
Definition: def_eval.cpp:157
void set_gradient_stack(void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0)
Description not yet available.
Definition: fvar.hpp:1045
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
static _THREAD grad_stack * GRAD_STACK1

Definition at line 8797 of file fvar.hpp.

#define AD_SET_DERIVATIVES3 (   depvar,
  indvar1,
  df1,
  indvar2,
  df2,
  indvar3,
  df3 
)
Value:
&(value(depvar)), &(value(indvar1)),df1,&(value(indvar2)),df2, \
&(value(indvar3)),df3);
void default_evaluation3ind(void)
Description not yet available.
Definition: def_eval.cpp:174
void set_gradient_stack(void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0)
Description not yet available.
Definition: fvar.hpp:1045
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
static _THREAD grad_stack * GRAD_STACK1

Definition at line 8801 of file fvar.hpp.

#define AD_SET_DERIVATIVES4 (   depvar,
  indvar1,
  df1,
  indvar2,
  df2,
  indvar3,
  df3,
  indvar4,
  df4 
)
Value:
&(value(depvar)), &(value(indvar1)),df1,&(value(indvar2)),df2, \
&(value(indvar3)),df3, \
&(value(indvar4)),df4);
void set_gradient_stack(void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0)
Description not yet available.
Definition: fvar.hpp:1045
void default_evaluation4ind(void)
Description not yet available.
Definition: def_eval.cpp:205
dvector value(const df1_one_vector &v)
Definition: df11fun.cpp:69
static _THREAD grad_stack * GRAD_STACK1

Definition at line 8806 of file fvar.hpp.

#define ADJOINT_CODE (   x)    gradient_structure::GRAD_STACK1->set_gradient_stack(x);

Definition at line 8813 of file fvar.hpp.

#define ADUNCONST (   type,
  obj 
)    type & obj = (type&) _##obj;

Creates a shallow copy of obj that is not CONST.

Definition at line 140 of file fvar.hpp.

Referenced by nested_calls_indices::allocate(), allocated(), asin(), laplace_approximation_calculator::banded_calculations(), laplace_approximation_calculator::banded_calculations_lme(), laplace_approximation_calculator::block_diagonal_calculations(), boundp(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), check_shape(), choleski_decomp(), choleski_decomp_trust_bound(), colsum(), column(), df1b2vector::copy(), cos(), cs_ereach(), cs_etree(), cs_transpose(), cube(), d1F(), d2F(), d3_np_fs(), d3F(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), eigenvectors(), elem_div(), elem_prod(), exp(), fill(), first_difference(), funnel_init_bounded_df1b2vector::funnel_init_bounded_df1b2vector(), funnel_init_df1b2matrix::funnel_init_df1b2matrix(), funnel_init_df1b2variable::funnel_init_df1b2variable(), funnel_init_df1b2vector::funnel_init_df1b2vector(), gammlnguts(), gcf(), get_eigen(), get_eigen_values(), get_eigenv(), laplace_approximation_calculator::get_gradient_lme_hp(), get_hessian(), get_newton_raphson_info(), get_second_ders(), gser(), hs_symperm(), init_df1_one_variable::init_df1_one_variable(), init_df1_three_variable::init_df1_three_variable(), init_df1_two_variable::init_df1_two_variable(), init_df3_one_variable::init_df3_one_variable(), init_df3_three_variable::init_df3_three_variable(), init_df3_two_variable::init_df3_two_variable(), inv_cumd_beta_stable(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), gradient_structure::jacobcalc(), ln_det(), log(), log_negbinomial_density(), ludcmp(), make_preliminary_hist(), mean(), memcpy(), mfexp(), norm(), norm2(), df1b2function1::operator()(), df1b2function2::operator()(), operator*(), df1b2vector::operator*=(), df1b2matrix::operator*=(), operator+(), df1b2variable::operator+=(), df1b2vector::operator+=(), df1b2matrix::operator+=(), operator-(), df1b2variable::operator-=(), df1b2vector::operator-=(), df1b2matrix::operator-=(), operator/(), df1b2vector::operator/=(), df1b2matrix::operator/=(), operator<<(), df1b2variable::operator=(), ptr_vector::operator=(), df1b2vector::operator=(), df1b2matrix::operator=(), cifstream::operator>>(), operator>>(), positivize(), pow(), funnel_init_df1b2variable::preallocate(), quiet_choleski_decomp(), dvector::read_from(), lvector::read_from(), initial_df1b2params::reset(), restore_value_from_vector(), rowsum(), initial_params::save_all(), param_init_vector::save_value(), param_init_bounded_vector::save_value(), param_init_number::save_value(), param_init_matrix::save_value(), df1b2_init_vector::set_index(), df1b2_init_matrix::set_index(), df1b2_init_number::set_index(), funnel_init_df1b2variable::set_value(), funnel_init_bounded_df1b2vector::set_value(), funnel_init_df1b2vector::set_value(), funnel_init_df1b2matrix::set_value(), df1b2_init_vector::set_value(), df1b2_init_matrix::set_value(), df1b2_init_number::set_value(), df1b2_init_bounded_number::set_value(), random_effects_bounded_vector_info::set_value(), re_df1b2_init_bounded_vector::set_value(), df1b2_init_bounded_dev_vector::set_value(), set_value(), set_value_mc(), param_init_vector::shared_set_value(), param_init_matrix::shared_set_value(), param_init_bounded_matrix::shared_set_value(), param_init_d3array::shared_set_value(), param_init_vector::shared_set_value_inv(), param_init_matrix::shared_set_value_inv(), param_init_bounded_matrix::shared_set_value_inv(), param_init_d3array::shared_set_value_inv(), sin(), size_count(), solve(), safe_choleski_solver::solve(), sqrt(), square(), sum(), svd(), svd_mln(), svd_nlm(), tan(), laplace_approximation_calculator::test_trust_region_method(), trans(), tri_dag(), tri_dagv(), value(), dvector::write_on(), lvector::write_on(), df1b2_gradlist::write_pass1(), df1b2_gradlist::write_pass1_eq(), df1b2_gradlist::write_pass1_minus(), df1b2_gradlist::write_pass1_minuscv(), df1b2_gradlist::write_pass1_minuseq(), df1b2_gradlist::write_pass1_minusvc(), df1b2_gradlist::write_pass1_pluseq(), df1b2_gradlist::write_pass1_prod(), df1b2_gradlist::write_pass1_sum(), df1b2_gradlist::write_pass1x(), and df1b2_gradlist::write_save_pass2_tilde_values().

#define BEGIN_MINIMIZATION (   nvar,
  objective_function,
  ind_vars,
  gradient,
  cntrl 
)
Value:
while (cntrl.ireturn >= 0) \
{ \
cntrl.fmin(objective_function,ind_vars,gradient ); \
if (cntrl.ireturn > 0) \
{
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.

Definition at line 352 of file fvar.hpp.

#define END_MINIMIZATION (   nvar,
  gradient 
)
Value:
gradcalc(nvar, gradient); \
} \
}
void gradcalc(int nvar, const dvector &g)
Definition: sgradclc.cpp:77

Definition at line 360 of file fvar.hpp.

#define LSEEK   lseek
#define M_PI   3.14159265358979323846

Definition at line 92 of file fvar.hpp.

Referenced by dlnorm(), dnorm(), multifan(), nllLognormal(), nllLognormal2(), nllNormal(), and nllNormal2().

#define MFCL2_CONSTRUCTORS

Definition at line 142 of file fvar.hpp.

#define O_BINARY   0
#define OFF_T   off_t
#define PI   M_PI
#define READ   read

Definition at line 76 of file fvar.hpp.

Referenced by DF_FILE::read_cmpdif_stack_buffer().

#define TINY_AD_USE_TINY_VEC   1

Definition at line 111 of file fvar.hpp.

#define USE_VECTOR_SHAPE_POOL

Definition at line 115 of file fvar.hpp.

#define WRITE   write

Definition at line 77 of file fvar.hpp.

Referenced by DF_FILE::write_cmpdif_stack_buffer().

Typedef Documentation

typedef struct cs_symbolic css

Definition at line 9404 of file fvar.hpp.

typedef void(* exitptr)(int)

Definition at line 180 of file fvar.hpp.

Function Documentation

dvector acos ( const dvector vec)

Returns dvector with principal value of the arc cosine of vec, expressed in radians.

Parameters
vecscalar vector

Definition at line 244 of file dvect6.cpp.

Referenced by acos().

dvar_vector acos ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 148 of file fvar_ar8.cpp.

void ad_begin_funnel ( void  )

Description not yet available.

Parameters

Definition at line 386 of file xgradclc.cpp.

Referenced by calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_funnel(), and calculate_importance_sample_shess().

int ad_chdir ( const char *  s)

Description not yet available.

Parameters

Definition at line 43 of file makesub.cpp.

Referenced by ad_comm::ad_comm(), and make_sub_directory().

void ad_getcd ( const adstring _s)

Description not yet available.

Parameters

Definition at line 56 of file makesub.cpp.

Referenced by ad_comm::ad_comm(), DF_FILE::DF_FILE(), grad_stack::grad_stack(), make_sub_directory(), and DF_FILE::~DF_FILE().

template<class... Args>
int ad_printf ( FILE *  stream,
const char *  format,
Args...  args 
)
template<class... Args>
int ad_printf ( const char *  format,
Args...  args 
)

Definition at line 9492 of file fvar.hpp.

void ad_set_new_handler ( void  )

Description not yet available.

Parameters

Definition at line 41 of file newhand.cpp.

double* address ( const prevariable v1)
inline

Definition at line 1500 of file fvar.hpp.

int admax ( int  i,
int  j 
)
inline
void ADMB_getcallindex ( int  )
inline

Definition at line 9243 of file fvar.hpp.

void ADMB_getcallindex ( double  )
inline

Definition at line 9247 of file fvar.hpp.

void ADMB_getcallindex ( const dvector )
inline

Definition at line 9251 of file fvar.hpp.

void ADMB_getcallindex ( const dmatrix )
inline

Definition at line 9255 of file fvar.hpp.

void ADMB_getcallindex ( const d3_array )
inline

Definition at line 9259 of file fvar.hpp.

void ADMB_getcallindex ( const d4_array )
inline

Definition at line 9263 of file fvar.hpp.

void ADMB_getcallindex ( const prevariable )
inline

Definition at line 9267 of file fvar.hpp.

void ADMB_getcallindex ( const dvar_vector )
inline

Definition at line 9271 of file fvar.hpp.

void ADMB_getcallindex ( const dvar_matrix )
inline

Definition at line 9275 of file fvar.hpp.

void ADMB_getcallindex ( const dvar3_array )
inline

Definition at line 9279 of file fvar.hpp.

void ADMB_getcallindex ( dvar4_array )
inline

Definition at line 9283 of file fvar.hpp.

int admin ( int  i,
int  j 
)
inline

Definition at line 8987 of file fvar.hpp.

Referenced by choleski_decomp_trust_bound(), and solve_trans().

int allocated ( const ivector ivec)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns true if ivector is allocated, otherwise false.

Parameters
ivecivector

Definition at line 13 of file fvar_a59.cpp.

Referenced by dll_param_vector::allocate(), dll_param_matrix::allocate(), dll_param_init_vector::allocate(), dll_param_init_bounded_vector::allocate(), param_init_matrix::allocate(), dll_param_init_matrix::allocate(), param_init_bounded_matrix::allocate(), dll_data_matrix::allocate(), dll_data_3array::allocate(), quadratic_prior::allocate(), param_init_d3array::allocate(), dll_param_init_d3array::allocate(), dll_param_d3array::allocate(), allocated(), laplace_approximation_calculator::block_diagonal_calculations(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_shess(), calculate_laplace_approximation(), laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_hessian_type2(), laplace_approximation_calculator::check_sparse_matrix_structure(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), dfcholeski_sparse(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), laplace_approximation_calculator::do_separable_stuff_hessian_type_information(), dvar_matrix_position::dvar_matrix_position(), imatrix::fill_seqadd(), gauss_hermite_stuff::gauss_hermite_stuff(), laplace_approximation_calculator::generate_antithetical_rvs(), function_minimizer::get_bigS(), quadratic_prior::get_cHessian_contribution(), df1b2quadratic_prior::get_Lxu(), laplace_approximation_calculator::get_newton_raphson_info_banded(), laplace_approximation_calculator::get_newton_raphson_info_block_diagonal(), function_minimizer::hess_routine_noparallel_random_effects(), dvar_matrix::initialize(), i4_array::initialize(), laplace_approximation_calculator::laplace_approximation_calculator(), mean(), operator<<(), imatrix::operator=(), dvar_matrix::operator=(), dmatrix::operator=(), dvar3_array::operator=(), banded_symmetric_dmatrix::operator=(), cifstream::operator>>(), operator>>(), dvar_vector::read_from(), dvar_matrix::read_from(), dmatrix::save_dmatrix_derivatives(), dmatrix::save_dmatrix_derivatives_na(), param_init_vector::sd_scale(), param_init_bounded_vector::sd_scale(), param_init_matrix::sd_scale(), param_init_bounded_matrix::sd_scale(), param_init_d3array::sd_scale(), param_init_vector::sd_vscale(), param_init_bounded_vector::sd_vscale(), param_init_matrix::sd_vscale(), param_init_bounded_matrix::sd_vscale(), param_init_d3array::sd_vscale(), function_minimizer::set_runtime_crit(), function_minimizer::set_runtime_maxfn(), param_init_bounded_matrix::set_value(), set_value_inv(), param_init_bounded_matrix::set_value_inv(), imatrix::sub(), dvar_matrix::sub(), dmatrix::sub(), d3_array::sub(), dvar3_array::sub(), d4_array::sub(), dvar4_array::sub(), dvar5_array::sub(), sub_unallocated(), sum(), dvar_vector::write_on(), dvar_matrix::write_on(), dll_data_3array::~dll_data_3array(), dll_param_d3array::~dll_param_d3array(), and dll_param_init_d3array::~dll_param_init_d3array().

int allocated ( const lvector lvec)

Returns true if lvector is allocated, otherwise false.

Parameters
lveclvector

Definition at line 22 of file fvar_a59.cpp.

int allocated ( const dvector dvec)

Returns true if lvector is allocated, otherwise false.

Parameters
lveclvector

Definition at line 31 of file fvar_a59.cpp.

int allocated ( const dvar_vector variables)

Returns true if variables is allocated, otherwise false.

Parameters
variablesdvar_vector

Definition at line 40 of file fvar_a59.cpp.

int allocated ( const imatrix imat)

Returns true if imat is allocated, otherwise false.

Parameters
imatimatrix

Definition at line 49 of file fvar_a59.cpp.

int allocated ( const dmatrix dmat)

Returns true if dmat is allocated, otherwise false.

Parameters
dmatdmatrix

Definition at line 58 of file fvar_a59.cpp.

int allocated ( const dvar_matrix vmat)

Returns true if vmat is allocated, otherwise false.

Parameters
vmatdvar_matrix

Definition at line 67 of file fvar_a59.cpp.

int allocated ( const i3_array iarr3)

Returns true if iarr3 is allocated, otherwise false.

Parameters
iarr3i3_array

Definition at line 76 of file fvar_a59.cpp.

int allocated ( const d3_array arr3)

Returns true if arr3 is allocated, otherwise false.

Parameters
arr3d3_array

Definition at line 85 of file fvar_a59.cpp.

int allocated ( const dvar3_array varr3)

Returns true if varr3 is allocated, otherwise false.

Parameters
varr3dvar3_array

Definition at line 94 of file fvar_a59.cpp.

int allocated ( const i4_array iarr4)

Returns true if iarr4 is allocated, otherwise false.

Parameters
iarr4i4_array

Definition at line 103 of file fvar_a59.cpp.

int allocated ( const d4_array arr4)

Returns true if arr4 is allocated, otherwise false.

Parameters
arr4d4_array

Definition at line 112 of file fvar_a59.cpp.

int allocated ( const dvar4_array varr4)

Returns true if varr4 is allocated, otherwise false.

Parameters
varr4dvar4_array

Definition at line 121 of file fvar_a59.cpp.

int allocated ( const i5_array iarr5)

Returns true if iarr5 is allocated, otherwise false.

Parameters
iarr5i5_array

Definition at line 139 of file fvar_a59.cpp.

int allocated ( const d5_array arr5)

Returns true if arr5 is allocated, otherwise false.

Parameters
arr5d5_array

Definition at line 130 of file fvar_a59.cpp.

int allocated ( const dvar5_array varr5)

Returns true if varr5 is allocated, otherwise false.

Parameters
varr5dvar5_array

Definition at line 148 of file fvar_a59.cpp.

int allocated ( const d6_array arr6)

Returns true if arr6 is allocated, otherwise false.

Parameters
arr6d6_array

Definition at line 157 of file fvar_a59.cpp.

int allocated ( const dvar6_array varr6)

Returns true if varr6 is allocated, otherwise false.

Parameters
varr6dvar6_array

Definition at line 166 of file fvar_a59.cpp.

int allocated ( const d7_array arr7)

Returns true if arr7 is allocated, otherwise false.

Parameters
arr7d7_array

Definition at line 175 of file fvar_a59.cpp.

int allocated ( const dvar7_array varr7)

Returns true if varr7 is allocated, otherwise false.

Parameters
varr6dvar7_array

Definition at line 184 of file fvar_a59.cpp.

int allocated ( const dcompressed_triplet t)

Definition at line 2855 of file hs_sparse.cpp.

int allocated ( const dvar_compressed_triplet t)

Definition at line 2860 of file hs_sparse.cpp.

void arr_free ( double_and_int )
ivector as_factor ( const dvector v,
const double  eps = 1.0e-6 
)

Definition at line 34 of file factors.cpp.

dvector asin ( const dvector vec)

Returns dvector with principal value of the arc sine of vec, expressed in radians.

Parameters
vecscalar vector

Definition at line 229 of file dvect6.cpp.

Referenced by asin(), boundpin(), cmvbvu_(), and mvbvu_().

dvar_vector asin ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 131 of file fvar_ar8.cpp.

dvector atan ( const dvector vec)

Returns dvector with principal value of the arc tangent of vec, expressed in radians.

Parameters
vecscalar vector

Definition at line 259 of file dvect6.cpp.

dvar_vector atan ( const dvar_vector v1)

Computes atan of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 366 of file fvar_a29.cpp.

dvector atan2 ( const dvector t1,
const dvector t2 
)
dvector atan2 ( const dvector t1,
double  t2 
)
dvector atan2 ( double  t1,
const dvector t2 
)
dvar_vector atan2 ( const dvar_vector t1,
const dvar_vector t2 
)
dvar_vector atan2 ( const dvar_vector t1,
double  t2 
)
dvar_vector atan2 ( double  t1,
const dvar_vector t2 
)
dvector atlas_solve_spd ( const dmatrix M,
const dvector x 
)
dvector atlas_solve_spd ( const dmatrix M,
const dvector x,
int &  ierr 
)
dmatrix atlas_solve_spd ( const dmatrix M,
const dmatrix x 
)
dmatrix atlas_solve_spd_trans ( const dmatrix M,
const dmatrix x 
)
dvariable avg ( const prevariable x,
const prevariable y 
)

Description not yet available.

Parameters

Definition at line 22 of file fvar_fn2.cpp.

dvariable besselI ( dvariable  x,
int  nu 
)

Definition at line 271 of file vbessel.cpp.

double besselI ( double  x,
int  nu 
)

Definition at line 267 of file cbessel.cpp.

dvariable besselJ ( dvariable  x,
int  nu 
)

Definition at line 296 of file vbessel.cpp.

double besselJ ( double  x,
int  nu 
)

Definition at line 292 of file cbessel.cpp.

dvariable besselK ( dvariable  x,
int  nu 
)

Definition at line 283 of file vbessel.cpp.

double besselK ( double  x,
int  nu 
)

Definition at line 279 of file cbessel.cpp.

dvariable besselY ( dvariable  x,
int  nu 
)

Definition at line 308 of file vbessel.cpp.

double besselY ( double  x,
int  nu 
)

Definition at line 304 of file cbessel.cpp.

dvariable beta_deviate ( const prevariable _a,
const prevariable _b,
const prevariable _x,
double  eps 
)

Description not yet available.

Parameters

Definition at line 15 of file vbetdev.cpp.

double beta_deviate ( double  a,
double  b,
double  x,
double  eps 
)

Description not yet available.

Parameters

Definition at line 14 of file cbetdev.cpp.

double betacf ( const double  a,
const double  b,
double  x,
int  maxit = 100 
)

Definition at line 11 of file cbetacf.cpp.

dvariable betacf ( const dvariable a,
const dvariable b,
const dvariable x,
int  maxit = 100 
)

Definition at line 12 of file vbetacf.cpp.

dvariable betai ( const dvariable  a,
const dvariable  b,
const dvariable  x,
int  maxit 
)

Incomplete beta function for variable objects.

Parameters
a$a$
b$b$
x$x$
maxitMaximum number of iterations for the continued fraction approximation in betacf.
Returns
Incomplete beta function $I_x(a,b)$



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 23 of file vbetai.cpp.

double betai ( const double  a,
const double  b,
const double  x,
int  maxit 
)

Incomplete beta function for constant objects.

Id:
cbetai.cpp 789 2010-10-05 01:01:09Z johnoel

Author: David Fournier Copyright (c) 2009, 2010 ADMB Foundation

Parameters
a$a$
b$b$
x$x$
maxitMaximum number of iterations for the continued fraction approximation in betacf.
Returns
Incomplete beta function $I_x(a,b)$ `

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 21 of file cbetai.cpp.

Referenced by inv_cumd_beta_stable(), old_inv_cumd_beta_stable(), and pbeta().

prevariable& bounded_cumd_norm ( const prevariable _x,
double  beta 
)

Description not yet available.

Parameters

Definition at line 279 of file vcumdist.cpp.

double bounded_cumd_norm ( const double  x,
double  beta 
)

Description not yet available.

Parameters

Definition at line 119 of file cumdist.cpp.

Referenced by norm_to_gamma().

double bounder ( double  x,
double  min,
double  max,
double  scale 
)

Description not yet available.

Parameters

Definition at line 15 of file linad99/bounder.cpp.

dvariable bounder ( const prevariable x,
double  min,
double  max,
double  scale 
)

Description not yet available.

Parameters

Definition at line 34 of file linad99/bounder.cpp.

double boundp ( double  x,
double  fmin,
double  fmax,
const double &  _fpen 
)

Compute penalty for exceeding bounds on parameter; constant ojbects.

Inverse of double boundp(const double& x, double fmin, double fmax, const double& _fpen).

Parameters
xModel variable
fminLower bound of x
fminUpper bound of x
_fpenOn return, contains penalty if x > fmax or x < fmin
Returns
The variable x in original units

Definition at line 310 of file boundfun.cpp.

double boundp ( double  x,
double  fmin,
double  fmax 
)

Return scaled variable to original units; constant objects.

Parameters
xVariable scaled between [-1,1]
fminLower bound of x
fminUpper bound of x
Returns
The variable x in original units

Definition at line 244 of file boundfun.cpp.

dvariable boundp ( const prevariable x,
double  fmin,
double  fmax,
const prevariable _fpen 
)

Compute penalty for exceeding bounds on parameter; variable ojbects.

Parameters
xVariable scaled between [-1,1]
fminLower bound of x
fminUpper bound of x
_fpenOn return, contains penalty if x > 1 or x < -1
Returns
The variable x in original units

Definition at line 102 of file boundfun.cpp.

dvariable boundp ( const prevariable x,
double  fmin,
double  fmax,
const prevariable _fpen,
double  s 
)

Compute penalty for exceeding bounds on parameter; variable ojbects.

Parameters
xVariable scaled between [-1,1]
fminLower bound of x
fminUpper bound of x
_fpenOn return, contains penalty if x > 1 or x < -1
sDivide x by s before scaling and setting bounds
Returns
The variable x in original units

Definition at line 89 of file boundfun.cpp.

Referenced by boundp(), nd2fboundp(), funnel_init_df1b2variable::set_value(), funnel_init_bounded_df1b2vector::set_value(), random_effects_bounded_vector_info::set_value(), re_df1b2_init_bounded_vector::set_value(), set_value(), set_value_partial(), and param_init_bounded_matrix::shared_set_value().

dvariable boundp ( double  ,
double  ,
double  ,
double *   
)
double boundpin ( double  x,
double  fmin,
double  fmax 
)

Scale model variable over [-1,1]; constant objects.

Inverse of double boundp(double x, double fmin, double fmax)

Parameters
xModel variable
fminLower bound of x
fminUpper bound of x
Returns
Scaled model variable over [-1,1].

Definition at line 391 of file boundfun.cpp.

double boundpin ( const prevariable xx,
double  fmin,
double  fmax 
)

Scale model variable over [-1,1]; variable objects.

Inverse of dvariable boundp(const prevariable& x, double fmin, double fmax,const prevariable& _fpen).

Parameters
xModel variable
fminLower bound of x
fminUpper bound of x
Returns
Scaled model variable over [-1,1].

Definition at line 447 of file boundfun.cpp.

double boundpin ( const prevariable x,
double  fmin,
double  fmax,
double  s 
)

Scale model variable over [-1,1]; variable objects.

Inverse of dvariable boundp(const prevariable& x, double fmin, double fmax,const prevariable& _fpen, double s).

Parameters
xModel variable
fminLower bound of x
fminUpper bound of x
sDivide x by s before scaling and setting bounds
Returns
Scaled model variable over [-1,1].

Definition at line 434 of file boundfun.cpp.

void check_choleski_decomp ( const banded_symmetric_dvar_matrix MM,
int &  ierr 
)
void check_derivative_values ( const char *  _s)

Description not yet available.

Parameters

Definition at line 306 of file newdar.cpp.

void check_derivative_values ( const char *  _s,
int  i 
)

Description not yet available.

Parameters

Definition at line 319 of file newdar.cpp.

void check_derivative_values_break ( const char *  _s,
int  i,
int  b 
)

Description not yet available.

Parameters

Definition at line 348 of file newdar.cpp.

dmatrix choleski_decomp ( const dmatrix MM)

Description not yet available.

Parameters

Definition at line 33 of file dmat15.cpp.

dvar_matrix choleski_decomp ( const dvar_matrix MM)

Description not yet available.

Parameters

Definition at line 34 of file fvar_m39.cpp.

banded_lower_triangular_dmatrix choleski_decomp ( const banded_symmetric_dmatrix S,
int &  ierr 
)

Definition at line 293 of file dmat28.cpp.

banded_lower_triangular_dvar_matrix choleski_decomp ( const banded_symmetric_dvar_matrix S,
int &  ierr 
)

Definition at line 267 of file fvar_m40.cpp.

dmatrix choleski_decomp_error ( const dmatrix MM,
int &  ierror 
)

Description not yet available.

Parameters

Definition at line 111 of file dmat15.cpp.

Referenced by choleski_solve_error().

dmatrix choleski_decomp_neghess_error ( const dmatrix MM,
int &  ierror 
)

Description not yet available.

Parameters

Definition at line 176 of file dmat15.cpp.

Referenced by choleski_solve_neghess_error().

dmatrix choleski_decomp_positive ( const dmatrix MM,
const int &  _ierr 
)

Description not yet available.

Parameters

Definition at line 98 of file dmat35.cpp.

dmatrix choleski_decomp_positive ( const dmatrix MM,
double  bound 
)

Description not yet available.

Parameters

Definition at line 33 of file dmat35.cpp.

banded_lower_triangular_dvar_matrix choleski_decomp_positive ( const banded_symmetric_dvar_matrix MM,
double  eps,
dvariable _fpen 
)

Description not yet available.

Parameters

Definition at line 20 of file fvar_m50.cpp.

banded_lower_triangular_dmatrix choleski_decomp_trust_bound ( const banded_symmetric_dmatrix _M,
const int &  _ierr 
)

Description not yet available.

Parameters

Definition at line 41 of file dmat43.cpp.

dvector choleski_solve_error ( dmatrix  M,
dvector v,
int &  ierror 
)

Description not yet available.

Parameters

Definition at line 198 of file dmat37.cpp.

Referenced by laplace_approximation_calculator::default_calculations().

dvector choleski_solve_neghess_error ( dmatrix  M,
dvector v,
int &  ierror 
)

Description not yet available.

Parameters

Definition at line 216 of file dmat37.cpp.

Referenced by laplace_approximation_calculator::default_calculations().

void clean ( ivector v,
int  level 
)

Set elements of ivec to zero starting from level + 1;.

Parameters
levelis the index of ivec

Definition at line 377 of file ivector.cpp.

dvar_vector colsum ( const dvar_matrix v)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a31.cpp.

dvector colsum ( const dmatrix matrix)

Returns dvector where each element contains the sum total of each column in matrix.

Parameters
matrixdmatrix

Definition at line 32 of file dvect12.cpp.

ivector colsum ( const imatrix matrix)

Returns integer vector colsums where each element is the sum of the jth column in matrix.

Parameters
matriximatrix

Definition at line 14 of file imat8.cpp.

int colsum ( const imatrix matrix,
int  column 
)

Return sum of matrix at specified column index.

Parameters
matriximatrix
columnindex

Definition at line 33 of file imat7.cpp.

double colsum ( const dmatrix m,
int  col 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return computed column(col) sum for dmatrix m.

Definition at line 10 of file dmat27.cpp.

Referenced by laplace_approximation_calculator::do_newton_raphson_state_space(), and get_ft().

dvariable colsum ( const dvar_matrix m,
int  col 
)

Description not yet available.

Parameters

Definition at line 18 of file fvar_m35.cpp.

ivector column ( const imatrix matrix,
int  column 
)

Return copy of column vector from matrix at specified column index.

/param matrix imatrix /param column index

Definition at line 60 of file imat7.cpp.

dvector column ( const dmatrix matrix,
int  j 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return copy of jth column vector from matrix m.

/param m matrix /param j column index to return

Definition at line 13 of file dmat6.cpp.

Referenced by param_init_bounded_number_vector::allocate(), dmatrix::colfill(), colsum(), column(), derch(), extract_column(), dvar_matrix::fill(), operator*(), df1b2quadratic_prior::operator=(), function_minimizer::rotate_gradient(), and sort().

dvar_vector column ( const dvar_matrix m,
int  j 
)

Description not yet available.

Parameters

Definition at line 18 of file fvar_ar7.cpp.

pre_column_print column_print ( const dvector v)

Description not yet available.

Parameters

Definition at line 33 of file dvect23.cpp.

dvector column_value ( const dvar_matrix m,
int  j 
)

Description not yet available.

Parameters

Definition at line 57 of file fvar_ar7.cpp.

Referenced by operator*().

dmatrix column_vector ( const dvector v)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns dmatrix with a single column using values from v.

Definition at line 10 of file dvect13.cpp.

dvar_matrix column_vector ( const dvar_vector )

Returns dmatrix with a single column using values from v.

Definition at line 38 of file dvect13.cpp.

dvector cos ( const dvector vec)

Returns dvector with cosine for each value of vec.

Parameters
vecarray of floating values

Definition at line 42 of file dvect6.cpp.

dvar_vector cos ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 184 of file fvar_a29.cpp.

dmatrix cos ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 124 of file dmat20.cpp.

dvar_matrix cos ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 236 of file fvar_m27.cpp.

d3_array cos ( const d3_array arr3)

Returns d3_array results with computed cos from elements in arr3.

Parameters
arr3d3_array

Definition at line 58 of file d3arr2a.cpp.

Referenced by bessj0(), bessj1(), bessy0(), bessy1(), cos(), tiny_ad::D_tan(), DF_dvsin(), DF_dvtan(), dfboundp(), ncos(), ndfboundp(), randn(), sin(), and tan().

dvar3_array cos ( const dvar3_array m)

Computes cos of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 108 of file f3arr2.cpp.

dvector cosh ( const dvector vec)

Returns dvector with hyperbolic cosine for each value of vec.

Parameters
vecarray of floating values

Definition at line 105 of file dvect6.cpp.

Referenced by cosh(), tiny_ad::D_tanh(), and sinh().

dvar_vector cosh ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 60 of file fvar_ar8.cpp.

int count_factor ( const dvector v,
const double &  eps 
)

Definition at line 14 of file factors.cpp.

Referenced by as_factor().

int count_factor ( const ivector v)

Definition at line 65 of file factors.cpp.

dvector csolve ( const dmatrix aa,
const dvector z 
)

Solve a linear system using LU decomposition.

Definition at line 32 of file dmat34.cpp.

dvector cube ( const dvector vec)

Returns dvector with cube value of each element in vec.

Note: vec is allocated vector.

Parameters
vecscalar vector

Definition at line 336 of file dmat.cpp.

dmatrix cube ( const dmatrix mat)

Returns dmatrix with cube value of each element in mat.

Note: mat is allocated matrix.

Parameters
matscalar matrix.

Definition at line 352 of file dmat.cpp.

d3_array cube ( const d3_array m)
dvar_vector cube ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 96 of file fvar_a44.cpp.

dvar_matrix cube ( const dvar_matrix varmat)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns dvar_matrix where each element (i, j) is equal to varmat(i, j)^3.

Parameters
varmatdvar_matrix input

Definition at line 12 of file f3arr7.cpp.

dvar3_array cube ( const dvar3_array vararr3)

Returns dvar3_array where each element (i, j, k) is equal to varmat(i, j, k)^3.

Parameters
varmatdvar3_array input

Definition at line 27 of file f3arr7.cpp.

dvariable cumbvn ( const dvariable x,
const dvariable y,
const dvariable rho 
)

Cumulative bivariate normal distribution.

Assumes two distributions X and Y both N(0,1).

Parameters
xUpper limit of inetegration on X.
yUpper limit of inetegration on Y
rhocorrelation coefficient.
Returns
Probability that X is larger than x; and Y is larger than y

Definition at line 262 of file vbivnorm.cpp.

dvariable cumbvn ( const dvariable xl,
const dvariable yl,
const dvariable xu,
const dvariable yu,
const dvariable rho 
)

Cumulative bivariate normal distribution.

Assumes two distributions X and Y both N(0,1).

Parameters
xlLower limit of inetegration on X.
ylLower limit of inetegration on Y.
xuUpper limit of inetegration on X.
yuUpper limit of inetegration on Y.
rhocorrelation coefficient.
Returns
Probability that X is between xl and xu and Y is between yl and yu

Definition at line 283 of file vbivnorm.cpp.

dvariable cumd_bivariate_normal ( const prevariable xu,
const prevariable yu,
const prevariable rho,
int  nbox 
)
double cumd_cauchy ( const double &  x)

Description not yet available.

Parameters

Definition at line 17 of file cumd_cau.cpp.

dvariable cumd_cauchy ( const prevariable x)

Description not yet available.

Parameters

Definition at line 15 of file vcumdcau.cpp.

dvariable cumd_exponential ( const prevariable x)

Description not yet available.

Parameters

Definition at line 27 of file vcumdexp.cpp.

double cumd_exponential ( double  x)

Description not yet available.

Parameters

Definition at line 26 of file ccumdexp.cpp.

dvariable cumd_gamma ( const dvariable x,
const dvariable a 
)

Definition at line 100 of file dfgammp.cpp.

double cumd_gamma ( double  x,
double  a 
)

Definition at line 38 of file cgamdev.cpp.

Referenced by inv_cumd_gamma().

double cumd_logistic ( const double &  x)

Description not yet available.

Parameters

Definition at line 13 of file ccumdlog.cpp.

Referenced by cumd_norm_logistic(), and ghk_choleski_m_logistic().

dvariable cumd_logistic ( const prevariable x)

Description not yet available.

Parameters

Definition at line 15 of file vcumdlog.cpp.

double cumd_norm ( const double &  x,
double   
)
prevariable& cumd_norm_logistic ( const prevariable _x,
double  p 
)

Description not yet available.

Parameters

Definition at line 383 of file vcumdist.cpp.

double cumd_norm_logistic ( double  _x,
double  p 
)

Description not yet available.

Parameters

Definition at line 78 of file ccumdlog.cpp.

Referenced by inv_cumd_norm_logistic().

dvariable cumd_normal_cauchy_mixture ( const prevariable _x,
double  _a 
)
dvar_vector cumd_normal_cauchy_mixture ( const dvar_vector _x,
double  _a 
)
dvariable cumd_normal_mixture ( const prevariable _x,
double  _a 
)
dvar_vector cumd_normal_mixture ( const dvar_vector _x,
double  _a 
)
dvector cumd_pareto ( const dvector _y,
double  alpha,
double  xm 
)
dvar_vector cumd_pareto ( const dvar_vector _y,
const prevariable alpha,
const prevariable xm 
)
dvariable cumd_pareto ( const prevariable _y,
const prevariable alpha,
const prevariable xm 
)
double cumd_pareto ( double  _y,
double  alpha,
double  xm 
)
dvector cumd_upper_trunc_pareto ( const dvector _y,
double  alpha,
double  xm 
)
dvar_vector cumd_upper_trunc_pareto ( const dvar_vector _y,
const prevariable alpha,
const prevariable xmin,
const prevariable xmax 
)
dvariable cumd_upper_trunc_pareto ( const prevariable _y,
const prevariable alpha,
const prevariable xmin,
const prevariable xmax 
)
void default_evaluation ( void  )
void default_evaluation0 ( void  )

Description not yet available.

Parameters

Definition at line 126 of file def_eval.cpp.

Referenced by dvariable::dvariable(), and prevariable::operator=().

void default_evaluation1 ( void  )

Description not yet available.

Parameters

Definition at line 93 of file def_eval.cpp.

Referenced by dvariable::dvariable(), operator+(), operator-(), and prevariable::operator=().

void default_evaluation1m ( void  )

Description not yet available.

Parameters

Definition at line 110 of file def_eval.cpp.

Referenced by operator-().

void default_evaluation2 ( void  )

Description not yet available.

Parameters

Definition at line 136 of file def_eval.cpp.

Referenced by cube(), fourth(), operator*(), and square().

void default_evaluation3 ( void  )

Description not yet available.

Parameters

Definition at line 157 of file def_eval.cpp.

Referenced by operator*(), and operator/().

void default_evaluation3ind ( void  )

Description not yet available.

Parameters

Definition at line 174 of file def_eval.cpp.

Referenced by betacf(), inv_cumd_beta_stable(), and dvariable::operator=().

void default_evaluation4 ( void  )

Description not yet available.

Parameters

Definition at line 251 of file def_eval.cpp.

Referenced by operator+().

void default_evaluation4ind ( void  )

Description not yet available.

Parameters

Definition at line 205 of file def_eval.cpp.

void default_evaluation4m ( void  )

Description not yet available.

Parameters

Definition at line 265 of file def_eval.cpp.

Referenced by operator-().

double density_cauchy ( const double &  x)

Description not yet available.

Parameters

Definition at line 29 of file cumd_cau.cpp.

void derch ( const double &  _f,
const independent_variables _x,
const dvector _gg,
int  n,
const int &  _ireturn 
)

Description not yet available.

Parameters

Definition at line 38 of file derch.cpp.

void derch ( const double &  _f,
const dvector _x,
const dvector _gg,
int  n,
const int &  _ireturn 
)

Description not yet available.

Parameters

Definition at line 1008 of file conjprod.cpp.

Referenced by fmm::fmin(), fmmt1::fmin(), and fmmc::fmin().

void df_check_derivative_values ( void  )

Description not yet available.

Parameters

Definition at line 364 of file newdar.cpp.

Referenced by check_derivative_values().

void df_check_derivative_values_indexed ( void  )

Description not yet available.

Parameters

Definition at line 427 of file newdar.cpp.

Referenced by check_derivative_values().

void df_check_derivative_values_indexed_break ( void  )

Description not yet available.

Parameters

Definition at line 479 of file newdar.cpp.

Referenced by check_derivative_values_break().

dvariable dfatan1 ( dvariable  x,
double  fmin,
double  fmax,
const prevariable _fpen 
)

Scale input variable between upper and lower bounds and compute a penalty for exceeding the bounds.

Parameters
xVariable to be scaled
fminLower bound of x
fminUpper bound of x
_fpenOn return, contains penalty if x > fmax or x < fmin
Returns
Scaled value of x between fmin and fmax in the range [-1,1]

Definition at line 37 of file boundfun.cpp.

dvariable dfatan1 ( dvariable  ,
double  ,
double  ,
double *   
)
dvariable dfboundp ( double  ,
double  ,
double  ,
double *   
)
dvariable dfboundp ( const prevariable x,
double  fmin,
double  fmax 
)

Computes the derivative of dvariable boundp(const prevariable& x, double fmin, double fmax,const prevariable& _fpen)

Parameters
xVariable to be scaled
fminLower bound of x
fminUpper bound of x
Returns
Derivative of scaled variable

Definition at line 170 of file boundfun.cpp.

Referenced by param_init_bounded_vector::sd_vscale(), param_init_bounded_number::sd_vscale(), and param_init_bounded_matrix::sd_vscale().

void dfinvpret ( void  )

Adjoint code for dvar_matrix inv(const dvar_matrix& aa).

Definition at line 287 of file fvar_m15.cpp.

Referenced by inv().

double dflogistic ( double  a,
double  b,
const double &  x 
)
dvariable dflogistic ( double  a,
double  b,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 53 of file logit.cpp.

double dfposfun ( const double &  x,
const double  eps 
)

Adjoint code for posfun; possibly not used.

Retained in source code to support legacy models with user-written adjoint code.

Definition at line 19 of file posfunc.cpp.

Referenced by dfcholeski_decomp_banded_positive(), and dfcholeski_decomp_positive().

dvariable dfposfun ( const prevariable x,
const double  eps 
)

Adjoint code for posfun; possibly not used.

Retained in source code to support legacy models with user-written adjoint code.

Definition at line 110 of file posfunv.cpp.

double dfposfun1 ( const double &  x,
const double  eps 
)

Adjoint code for posfun; possibly not used.

Retained in source code to support legacy models with user-written adjoint code.

Definition at line 39 of file posfunc.cpp.

Referenced by dfcholeski_decomp_banded_positive(), and dfcholeski_decomp_positive().

double dftinv ( double  x,
double  fmin,
double  fmax 
)

Inverse of dvariable dfatan1(dvariable x, double fmin, double fmax, const prevariable& _fpen)

Parameters
xVariable to be scaled
fminLower bound of x
fminUpper bound of x

Definition at line 66 of file boundfun.cpp.

dvector diagonal ( const dmatrix matrix)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return vector containing diagonal of a matrix.

Parameters
matrixdmatrix

Definition at line 12 of file dmat31.cpp.

Referenced by extract_diagonal(), function_minimizer::hess_routine_noparallel_random_effects(), and function_minimizer::nuts_mcmc_routine().

ivector diagonal ( const imatrix matrix)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return vector diagonal of matrix.

Parameters
matriximatrix

Definition at line 12 of file imat10.cpp.

dvar_vector diagonal ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 17 of file fvar_m46.cpp.

dmatrix diagonal_matrix ( const dvector v)
dvar_matrix diagonal_matrix ( const dvar_vector v)
double dmax ( double  x,
double  y 
)

Returns the maximum of two numbers.

Parameters
xFirst number
ySecond number

Definition at line 505 of file boundfun.cpp.

void dmdm_prod ( void  )

Description not yet available.

Parameters

Definition at line 126 of file fvar_m14.cpp.

Referenced by operator*().

double dmin ( double  x,
double  y 
)

Returns the minimum of two numbers.

Parameters
xFirst number
ySecond number

Definition at line 489 of file boundfun.cpp.

double dot ( const dmatrix M,
const dmatrix N 
)

Description not yet available.

Parameters

Definition at line 88 of file orthply2.cpp.

Referenced by orthpoly2().

dvariable dtweedie ( const double  y,
dvariable mu,
dvariable phi,
dvariable p,
const bool  use_log 
)

dtweedie is a wrapper to _dtweedie using ADMB data types.

Definition at line 59 of file dtweedie.cpp.

void dv_init ( void  )

Description not yet available.

Parameters

Definition at line 40 of file fvar_a24.cpp.

Referenced by dvar_vector::initialize(), and dvar_vector::operator=().

void dvdv_dot ( void  )

Definition at line 84 of file fvar_a14.cpp.

Referenced by operator*().

dvector eigenvalues ( const dmatrix m)

Eigenvalues.

Parameters
mInput matrix (unchanged on return).
Returns
Vector of eigenvalues.

Definition at line 23 of file eigen.cpp.

dvar_vector eigenvalues ( const dvar_matrix m1)

Definition at line 17 of file dveigen.cpp.

dvector eigenvalues ( const banded_symmetric_dmatrix _SS)
dmatrix eigenvectors ( const dmatrix m)

Eigenvectors.

Computes eigenvectors of a real square matrix. Input matrix is symmetrized.

Parameters
mReal square matrix.
Returns
Matrix of eigenvectors.

Definition at line 44 of file eigenv.cpp.

dmatrix eigenvectors ( const dmatrix m,
const dvector _diag 
)

Eigenvectors.

Computes eigenvectors of a real square matrix. Input matrix is symmetrized.

Parameters
mReal square matrix.
_diag
Returns
Matrix of eigenvectors.

Definition at line 88 of file eigenv.cpp.

dvar_matrix eigenvectors ( const dvar_matrix m)

Eigenvectors.

Computes eigenvectors of a real square matrix. Input matrix is symmetrized.

Parameters
mReal square matrix.
_diag
Returns
Matrix of eigenvectors.

Definition at line 42 of file dveigenv.cpp.

dmatrix eigenvectors ( const banded_symmetric_dmatrix _SS,
const dvector _e 
)
dmatrix elem_div ( const dmatrix m,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 274 of file dmat20.cpp.

dvar_matrix elem_div ( const dvar_matrix m,
const dvar_matrix m2 
)

Description not yet available.

Parameters

Definition at line 368 of file fvar_m27.cpp.

dvar_matrix elem_div ( const dvar_matrix m,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 416 of file fvar_m27.cpp.

dvar_matrix elem_div ( const dmatrix m,
const dvar_matrix m2 
)

Description not yet available.

Parameters

Definition at line 392 of file fvar_m27.cpp.

d3_array elem_div ( const d3_array a,
const d3_array b 
)
dvar3_array elem_div ( const dvar3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 198 of file f3arr2.cpp.

dvar3_array elem_div ( const d3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 270 of file f3arr2.cpp.

dvar3_array elem_div ( const dvar3_array m1,
const d3_array m2 
)

Returns dvar3_array with each element equal to the element product m1(i, j, k) / m2(i, j, k).

Parameters
m1left side variable array
m2right side variable array

Definition at line 42 of file f3arr9.cpp.

dmatrix elem_prod ( const dmatrix m,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 168 of file dmat20.cpp.

dvar_matrix elem_prod ( const dvar_matrix m,
const dvar_matrix m2 
)

Description not yet available.

Parameters

Definition at line 440 of file fvar_m27.cpp.

dvar_matrix elem_prod ( const dvar_matrix m,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 489 of file fvar_m27.cpp.

dvar_matrix elem_prod ( const dmatrix m,
const dvar_matrix m2 
)

Description not yet available.

Parameters

Definition at line 465 of file fvar_m27.cpp.

d3_array elem_prod ( const d3_array a,
const d3_array b 
)
dvar3_array elem_prod ( const dvar3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 180 of file f3arr2.cpp.

dvar3_array elem_prod ( const d3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 252 of file f3arr2.cpp.

dvar3_array elem_prod ( const dvar3_array m1,
const d3_array m2 
)

Returns dvar3_array with each element equal to the element product m1(i, j, k) * m2(i, j, k).

Parameters
m1left side variable array
m2right side variable array

Definition at line 20 of file f3arr9.cpp.

dvar_matrix empirical_covariance ( const dvar_matrix v1)

Description not yet available.

Parameters

Definition at line 128 of file fvar_ma6.cpp.

dvar_matrix empirical_covariance ( const dvar_matrix _v1,
const imatrix _missflags 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_ma6.cpp.

void exit_handler ( int  k)

Description not yet available.

Parameters

Definition at line 20 of file signalh.cpp.

Referenced by onintr(), and set_signal_handlers().

dvector exp ( const dvector t1)

Description not yet available.

Parameters

Definition at line 39 of file dvect7.cpp.

dvar_vector exp ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 117 of file fvar_a29.cpp.

dmatrix exp ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 252 of file dmat20.cpp.

dvar_matrix exp ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 346 of file fvar_m27.cpp.

d3_array exp ( const d3_array arr3)

Returns d3_array results with computed exp from elements in arr3.

Parameters
arr3d3_array

Definition at line 28 of file d3arr2a.cpp.

Referenced by _dtweedie(), function_minimizer::adapt_eps(), add_hist_values(), bessi0(), bessi1(), bessk0(), bessk1(), beta(), betai(), bounded_cumd_norm(), bounded_robust_multivariate_normal(), bounder(), boundp(), function_minimizer::build_tree(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), cmvbvu_(), cmvphi_(), cumd_exp(), cumd_exponential(), cumd_logistic(), cumd_norm(), cumd_normal_logistic_mixture(), density_negbinomial(), df_cumd_normal_logistic_mixture(), df_cumd_normal_mixture(), DF_dvmfexp(), dfboundp(), dflogistic(), function_minimizer::do_gauss_hermite_integration(), function_minimizer::do_gauss_hermite_integration_multi(), eplogis(), exp(), function_minimizer::find_reasonable_stepsize(), gamma_density(), gcf(), generalized_Ricker1(), generalized_Ricker2(), laplace_approximation_calculator::generate_antithetical_rvs(), get_bounded_normal(), get_bounded_normal_virtual(), get_ft(), laplace_approximation_calculator::get_hessian_components_banded_lme(), laplace_approximation_calculator::get_hessian_from_components_lme(), get_initial_u(), Gompertz(), gser(), function_minimizer::hybrid_mcmc_routine(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_norm(), inv_cumd_norm_ln(), inv_cumd_norm_logistic(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), invlogit(), log_der_logistic(), log_likelihood_mixture(), log_likelihood_mixture_02(), logistic(), logistic3(), logisticK(), make_preliminary_hist(), function_minimizer::mcmc_routine(), mfexp(), monomolecular(), mvbvu_(), mvphi_(), ndfboundp(), negbinomial_density(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), normal_tail_right(), function_minimizer::normalize_posterior_distribution(), normalized_gauss_hermite(), old_cumd_norm(), old_inv_cumd_beta_stable(), pbeta(), pow(), tiny_ad::pow(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), randpoisson(), Ricker(), rmvlogistic(), robust_regression(), function_minimizer::rwm_mcmc_routine(), sgamma(), function_minimizer::shmc_mcmc_routine(), and theta_logistic().

dvar3_array exp ( const dvar3_array m)

Computes exp of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 54 of file f3arr2.cpp.

d4_array exp ( const d4_array darray)

Returns results in a d4_array with the computed exponential of the elements in darray.

Parameters
darrayd4_array

Definition at line 30 of file d4arr1.cpp.

dvar4_array exp ( const dvar4_array m)

Description not yet available.

Parameters

Definition at line 38 of file f4arr1.cpp.

d5_array exp ( const d5_array x)
dvar5_array exp ( const dvar5_array m)

Description not yet available.

Parameters

Definition at line 60 of file f5arr1.cpp.

double expdev ( const random_number_generator _rng)

Description not yet available.

Parameters

Definition at line 311 of file drangam.cpp.

Referenced by sgamma().

dvector extract_column ( const dmatrix matrix,
int  j 
)

Extract copy of jth column vector from matrix m.

/param m matrix /param j column index to return

Definition at line 34 of file dmat6.cpp.

Referenced by column(), function_minimizer::rotate_gradient(), and sort().

dvar_vector extract_column ( const dvar_matrix m,
int  j 
)

Description not yet available.

Parameters

Definition at line 36 of file fvar_ar7.cpp.

dvector extract_row ( const dmatrix matrix,
int  i 
)

Returns a copied row for matrix at i.

Note: i must be a valid row.

Parameters
matrixdmatrix
irow index

Definition at line 66 of file dmat6.cpp.

Referenced by row().

dvar_vector extract_row ( const dvar_matrix m,
int  i 
)

Description not yet available.

Parameters

Definition at line 78 of file fvar_ar7.cpp.

dmatrix fabs ( const dmatrix X)

Description not yet available.

Parameters

Definition at line 22 of file linad99/expm.cpp.

d3_array fabs ( const d3_array m)
dvar3_array fabs ( const dvar3_array m)
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.

void* farptr_norm ( void *  )
dmatrix fillout ( const lower_triangular_dmatrix M)

Description not yet available.

Parameters

Definition at line 110 of file dmat36.cpp.

dmatrix fillout_trans ( const lower_triangular_dmatrix M)

Description not yet available.

Parameters

Definition at line 130 of file dmat36.cpp.

void fmin ( double  f,
const independent_variables x,
const dvector g,
const int &  n,
const dvector w,
const dvector h,
const fmm_control fmc 
)
void fmmdisp ( const dvector x,
const dvector g,
const int &  nvar,
int  scroll_flag,
int  noprintx 
)

Description not yet available.

Parameters

Definition at line 102 of file fmm_disp.cpp.

Referenced by fmm::fmin(), fmmt1::fmin(), fmmc::fmin(), function_minimizer::limited_memory_quasi_newton(), and function_minimizer::random_effects_maximization().

void fmmdisp ( const double *  x,
const double *  g,
const int &  nvar,
int  scroll_flag,
int  noprintx 
)

Description not yet available.

Parameters

Definition at line 201 of file fmm_disp.cpp.

double gamma_deviate ( double  _x,
double  _a 
)
dvariable gamma_deviate ( const prevariable _x,
const prevariable _a 
)

Definition at line 19 of file vgamdev.cpp.

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 xx)

Definition at line 291 of file combv.cpp.

double gasdev ( const random_number_generator _rng)

Description not yet available.

Parameters

Definition at line 292 of file drangam.cpp.

Referenced by sgamma().

void gauss_hermite ( const dvector _t,
const dvector _wts 
)

Gauss-Hermite quadature.

Computes a Gauss-Hermite quadrature formula with simple knots.

Parameters
_tarray of abscissa
_wtsarray of corresponding wights

Definition at line 36 of file gaussher.cpp.

Referenced by normalized_gauss_hermite().

void gauss_legendre ( double  a,
double  b,
const dvector _t,
const dvector _wts 
)

Gauss-Legendre quadature.

computes knots and weights of a Gauss-Legendre quadrature formula.

Parameters
aLeft endpoint of interval
bRight endpoint of interval
_tarray of abscissa
_wtsarray of corresponding wights

Definition at line 148 of file gaussher.cpp.

Referenced by gauss_legendre().

void gauss_legendre ( const dvector _x,
const dvector _w 
)

Gauss-Legendre quadature.

Parameters
_xarray of abscissa
_warray of corresponding wights

Definition at line 331 of file gaussher.cpp.

dvector get_eigen_values ( const dvector _d,
const dvector _e 
)

Eigenvalues.

Parameters
_dDiagonal elements of the matrix computed by Householder transformation.
_eOff-diagonal elements.
Returns
Vector of eigenvalues.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 11

Definition at line 291 of file eigen.cpp.

dvar_vector get_eigen_values ( const dvar_vector _ddd,
const dvar_vector _eee 
)

Eigenvalues and eigenvectors.

Parameters
_dDiagonal elements of the matrix computed by Householder transformation.
_eOff-diagonal elements.
_zOn return containses eigenvectors.
Returns
Vector of eigenvalues.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 11

Definition at line 269 of file dveigen.cpp.

dvector get_eigen_values ( const dvector _d,
const dvector _e,
const dmatrix _z 
)

Eigenvalues and eigenvectors.

Parameters
_dDiagonal elements of the matrix computed by Householder transformation.
_eOff-diagonal elements.
_zOn return containses eigenvectors.
Returns
Vector of eigenvalues.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 11

Definition at line 372 of file eigen.cpp.

std::ostream& get_output_stream ( )
adstring get_string_marker ( void  )

Description not yet available.

Parameters

Definition at line 171 of file cmpdif3.cpp.

Referenced by df_check_derivative_values(), df_check_derivative_values_indexed(), df_check_derivative_values_indexed_break(), and df_print_identifier_string().

double ghk ( const dvector lower,
const dvector upper,
const dmatrix Sigma,
const dmatrix eps 
)

Description not yet available.

Parameters

Definition at line 12 of file c_ghk.cpp.

double ghk ( const dvector lower,
const dvector upper,
const dmatrix Sigma,
const dmatrix eps,
int  _i 
)

Description not yet available.

Parameters

Definition at line 71 of file c_ghk.cpp.

dvariable ghk ( const dvar_vector lower,
const dvar_vector upper,
const dvar_matrix Sigma,
const dmatrix eps 
)

Description not yet available.

Parameters

Definition at line 15 of file v_ghk.cpp.

dvariable ghk ( const dvar_vector lower,
const dvar_vector upper,
const dvar_matrix Sigma,
const dmatrix eps,
int  _i 
)

Description not yet available.

Parameters

Definition at line 175 of file v_ghk.cpp.

double ghk_choleski ( const dvector lower,
const dvector upper,
const dmatrix ch,
const dmatrix eps 
)
dvariable ghk_choleski_m ( const dvar_vector upper,
const dvar_matrix ch,
const dmatrix eps 
)

Description not yet available.

Parameters

Definition at line 136 of file v_ghk.cpp.

dvariable ghk_choleski_m_cauchy ( const dvar_vector upper,
const dvar_matrix ch,
const dmatrix eps 
)

Description not yet available.

Parameters

Definition at line 217 of file v_ghk.cpp.

dvariable ghk_choleski_m_logistic ( const dvar_vector upper,
const dvar_matrix ch,
const dmatrix eps 
)

Description not yet available.

Parameters

Definition at line 254 of file v_ghk.cpp.

void grad_chk ( void  )

Description not yet available.

Parameters

Definition at line 18 of file gradchk.cpp.

void gradcalc ( int  nvar,
const dvector g 
)

Definition at line 77 of file sgradclc.cpp.

Referenced by laplace_approximation_calculator::banded_calculations_lme(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), function_minimizer::dep_hess_routine(), function_minimizer::depvars_routine(), do_evaluation(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), evaluate_function(), evaluate_function_gradient(), evaluate_function_quiet(), evaluate_function_with_quadprior(), laplace_approximation_calculator::get_fx_fu(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), laplace_approximation_calculator::get_gradient_lme(), laplace_approximation_calculator::get_gradient_lme_hp(), function_minimizer::get_hybrid_monte_carlo_value(), function_minimizer::get_monte_carlo_value(), function_minimizer::get_particular_grad(), laplace_approximation_calculator::get_uhat_lm_newton2(), laplace_approximation_calculator::get_uhat_quasi_newton(), laplace_approximation_calculator::get_uhat_quasi_newton_block_diagonal(), function_minimizer::hess_routine_and_constraint(), function_minimizer::hess_routine_noparallel(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::hess_routine_slave_random_effects(), function_minimizer::hess_step(), function_minimizer::limited_memory_quasi_newton(), function_minimizer::limited_memory_quasi_newton_block(), fmm::minimize(), function_minimizer::nuts_mcmc_routine(), function_minimizer::prof_minimize(), function_minimizer::prof_minimize_re(), and function_minimizer::quasi_newton_block().

void gradfree ( dlink v)

Description not yet available.

Parameters

Definition at line 65 of file fvar2.cpp.

Referenced by dvariable::~dvariable().

double_and_int* gradnew ( )

Creates an entry in the gradient structure linked list.

Returns
Pointer instance of class double_and_int

Definition at line 36 of file fvar2.cpp.

ivector histogram ( double  min,
double  max,
int  nbin,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 17 of file histgram.cpp.

dmatrix identity_matrix ( int  min,
int  max 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return an identity matrix with dimensions [min to max] x [min to max].

Parameters
minlower row and column index
maxupper row and column index

Definition at line 14 of file dmat17.cpp.

void insert_identifier_string ( const char *  _s)

Description not yet available.

Parameters

Definition at line 336 of file newdar.cpp.

dvariable inv ( const prevariable x)
inline

Definition at line 8878 of file fvar.hpp.

dmatrix inv ( const dmatrix m1,
const double &  _ln_det,
const int &  _sgn 
)

Inverse of a constant matrix by LU decomposition.

Parameters
m1A dmatrix, $M$, for which the inverse is to be computed.
_ln_detOn return contains $|\log M|$
_sign
Returns
A dmatrix containing $M^{-1}$.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 114 of file dmat3.cpp.

double inv_cumd_beta_stable ( double  a,
double  b,
double  y,
double  eps = 0 
)

Definition at line 120 of file ccumdbetainv.cpp.

dvariable inv_cumd_beta_stable ( const prevariable _a,
const prevariable _b,
const prevariable _y,
double  eps = 0 
)

Definition at line 20 of file vcumdbetainv.cpp.

double inv_cumd_cauchy ( const double &  x)

Description not yet available.

Parameters

Definition at line 49 of file cumd_cau.cpp.

dvariable inv_cumd_cauchy ( const prevariable x)

Description not yet available.

Parameters

Definition at line 38 of file vcumdcau.cpp.

dvariable inv_cumd_exponential ( const prevariable y)

Description not yet available.

Parameters

Definition at line 15 of file vcumdexp.cpp.

double inv_cumd_exponential ( double  y)

Description not yet available.

Parameters

Definition at line 14 of file ccumdexp.cpp.

dvariable inv_cumd_gamma ( const prevariable _y,
const prevariable _a 
)

Definition at line 124 of file vgamdev.cpp.

double inv_cumd_gamma ( double  _y,
double  _a 
)

Definition at line 124 of file cgamdev.cpp.

double inv_cumd_logistic ( const double &  x)

Description not yet available.

Parameters

Definition at line 30 of file ccumdlog.cpp.

Referenced by cumd_normal_logistic_mixture_initx(), ghk_choleski_m_logistic(), and inv_cumd_norm_logistic().

dvariable inv_cumd_logistic ( const prevariable x)

Description not yet available.

Parameters

Definition at line 32 of file vcumdlog.cpp.

double inv_cumd_norm ( const double &  x)

Description not yet available.

Parameters

Definition at line 78 of file cumdist.cpp.

dvariable inv_cumd_norm ( const prevariable x)

Description not yet available.

Parameters

Definition at line 137 of file vcumdist.cpp.

dvar_vector inv_cumd_norm ( const dvar_vector x)

Description not yet available.

Parameters

Definition at line 263 of file vcumdist.cpp.

dvariable inv_cumd_norm_logistic ( const prevariable x,
double  p 
)

Description not yet available.

Parameters

Definition at line 363 of file vcumdist.cpp.

double inv_cumd_norm_logistic ( double  x,
double  p 
)

Description not yet available.

Parameters

Definition at line 39 of file ccumdlog.cpp.

dvariable inv_cumd_normal_logistic_mixture ( const prevariable _x,
double  _a 
)

Definition at line 87 of file cnorlogmix.cpp.

Referenced by robust_normal_logistic_mixture_deviate().

double inv_cumd_normal_logistic_mixture ( double  yy,
double  a 
)

Description not yet available.

Parameters

Definition at line 142 of file cnorlogmix.cpp.

dvariable inv_cumd_normal_mixture ( const prevariable _yy,
double  a 
)

Description not yet available.

Parameters

Definition at line 94 of file normmix.cpp.

double inv_cumd_normal_mixture ( double  yy,
double  a 
)

Description not yet available.

Parameters

Definition at line 90 of file cnormmix.cpp.

Referenced by robust_normal_mixture_deviate().

dvector inv_cumd_pareto ( const dvector _y,
double  alpha,
double  xm 
)
dvar_vector inv_cumd_pareto ( const dvar_vector _y,
const prevariable alpha,
const prevariable xm 
)
dvariable inv_cumd_pareto ( const prevariable _y,
const prevariable alpha,
const prevariable xm 
)
double inv_cumd_pareto ( double  _y,
double  alpha,
double  xm 
)
double inv_cumd_t ( double  n,
double  u,
double  eps 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Description not yet available.

Parameters

Definition at line 11 of file cinvcumdt.cpp.

Referenced by t_deviate().

dvariable inv_cumd_t ( const prevariable n,
const prevariable u,
double  eps 
)

Description not yet available.

Parameters

Definition at line 15 of file vinvcumdt.cpp.

dvector inv_cumd_upper_trunc_pareto ( const dvector _y,
double  alpha,
double  xmin,
double  xmax 
)
dvar_vector inv_cumd_upper_trunc_pareto ( const dvar_vector _y,
const prevariable alpha,
const prevariable xmin,
const prevariable xmax 
)
double inv_cumd_upper_trunc_pareto ( double  _y,
double  alpha,
double  xmin,
double  xmax 
)
dvariable invlogit ( dvariable  x)

Inverse logit function.

Definition at line 15 of file linad99/invlogit.cpp.

void jacobcalc ( int  nvar,
const dmatrix jac 
)

Description not yet available.

Parameters

Definition at line 66 of file jacobclc.cpp.

void jacobcalc ( int  nvar,
const ofstream &  ofs 
)

Description not yet available.

Parameters

Definition at line 56 of file jacob2.cpp.

void jacobcalc ( int  nvar,
const uostream ofs 
)

Description not yet available.

Parameters

Definition at line 52 of file jacob3.cpp.

dvariable kludge_cumd_cauchy ( const prevariable x)

Description not yet available.

Parameters

Definition at line 27 of file vcumdcau.cpp.

dvariable ln_det ( const dvar_matrix )

Definition at line 36 of file fvar_m42.cpp.

double ln_det ( const dcompressed_triplet )

Definition at line 2954 of file hs_sparse.cpp.

double ln_det ( const dcompressed_triplet ,
const hs_symbolic  
)

Definition at line 2932 of file hs_sparse.cpp.

double ln_det ( const dcompressed_triplet ,
int &  ierr 
)
dvariable ln_det ( const dvar_compressed_triplet ,
int &  ierr 
)

Definition at line 2865 of file hs_sparse.cpp.

Definition at line 2882 of file hs_sparse.cpp.

Definition at line 2901 of file hs_sparse.cpp.

dvariable ln_det_choleski ( const banded_symmetric_dvar_matrix S,
int &  ierr 
)

Definition at line 248 of file fvar_m40.cpp.

double ln_det_choleski ( const banded_symmetric_dmatrix MM,
int &  ierr 
)
dvariable ln_det_choleski ( const dvar_matrix MM)

Description not yet available.

Parameters

Definition at line 37 of file fvar_m51.cpp.

dvariable ln_det_choleski_error ( const dvar_matrix MM,
int &  onerror 
)

Description not yet available.

Parameters

Definition at line 304 of file fvar_m51.cpp.

Referenced by calculate_laplace_approximation().

dvar_vector ln_pareto_density ( const dvar_vector _y,
const prevariable alpha,
const prevariable xm 
)
dvariable ln_pareto_density ( const prevariable _y,
const prevariable alpha,
const prevariable xm 
)
dvar_vector ln_pareto_upper_trunc_density ( const dvar_vector y,
const prevariable alpha,
const prevariable xmin,
const prevariable xmax 
)
dvar_vector ln_upper_trunc_pareto_density ( const dvar_vector _y,
const prevariable alpha,
const prevariable xm 
)
dvariable ln_upper_trunc_pareto_density ( const prevariable _y,
const prevariable alpha,
const prevariable xmin,
const prevariable xmax 
)
dvector log ( const dvector t1)

Description not yet available.

Parameters

Definition at line 17 of file dvect7.cpp.

dvar_vector log ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 236 of file fvar_a29.cpp.

dmatrix log ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 190 of file dmat20.cpp.

dvar_matrix log ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 280 of file fvar_m27.cpp.

d3_array log ( const d3_array arr3)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns d3_array results with computed log from elements in arr3.

Parameters
arr3d3_array

Definition at line 13 of file d3arr2a.cpp.

Referenced by _dtweedie(), AD_pow_112(), AD_pow_12(), AD_pow_122(), AD_pow_2(), AD_pow_22(), AD_pow_222(), function_minimizer::adapt_eps(), bessk0(), bessk1(), bessy0(), bessy1(), betai(), bounded_multivariate_normal(), bounded_multivariate_normal_mcmc(), bounded_multivariate_uniform(), bounded_multivariate_uniform_mcmc(), bounded_robust_multivariate_normal(), boundp(), boundpin(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), dbeta(), dbinom(), density_negbinomial(), DF_cdvpow(), DF_dvdvpow(), df_ln_det_choleski(), dgamma(), dinvgamma(), dlnorm(), dmultinom(), dmvlogistic(), dnbinom(), dnorm(), function_minimizer::do_gauss_hermite_integration(), function_minimizer::do_gauss_hermite_integration_multi(), dpois(), dstudent_t(), dunif(), dzinbinom(), expdev(), expm(), fcomp1(), gamma_density(), gammln(), gammlnguts(), gasdev(), gcf(), laplace_approximation_calculator::generate_antithetical_rvs(), get_bounded_cauchy(), get_bounded_mixture(), get_bounded_normal(), get_bounded_normal_virtual(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), function_minimizer::get_hybrid_monte_carlo_value(), get_initial_u(), get_ln_det(), gser(), function_minimizer::hybrid_mcmc_routine(), inv(), inv_cumd_exp(), inv_cumd_exponential(), inv_cumd_gamma(), inv_cumd_logistic(), inv_cumd_mixture(), inv_cumd_mixture_02(), inv_cumd_norm_inner(), inv_cumd_norm_ln(), inv_cumd_norm_logistic(), invLogitProp(), function_minimizer::likeprof_routine(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), ln_normal_tail_right(), log(), log_density_cauchy(), log_density_negbinomial(), log_density_poisson(), log_der_logistic(), log_gamma_density(), log_likelihood_mixture(), log_likelihood_mixture_02(), log_negbinomial_density(), lower_triangular_ln_det(), function_minimizer::mcmc_routine(), multifan(), multivariate_mixture(), negbinomial_density(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), nllBeta(), nllBinomial(), nllDirichlet(), nllGamma(), nllInverseGamma(), nllLognormal(), nllLognormal2(), nllMultiNomial(), nllNegativeBinomial(), nllNormal(), nllNormal2(), nllPoisson(), normalize_p(), function_minimizer::nuts_mcmc_routine(), old_inv_cumd_beta_stable(), pbeta(), pow(), tiny_ad::pow(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), randn(), randpoisson(), regression(), rgamma(), qfclib::rgamma(), rmvlogistic(), robust_regression(), function_minimizer::rwm_mcmc_routine(), function_minimizer::sd_routine(), funnel_init_df1b2variable::set_value(), random_effects_bounded_vector_info::set_value(), re_df1b2_init_bounded_vector::set_value(), set_value(), sgamma(), function_minimizer::shmc_mcmc_routine(), and solve().

dvar3_array log ( const dvar3_array m)

Computes log of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 72 of file f3arr2.cpp.

d4_array log ( const d4_array darray)

Returns results in a d4_array with the computed log of the elements in darray.

Parameters
darrayd4_array

Definition at line 62 of file d4arr1.cpp.

dvar4_array log ( const dvar4_array m)

Description not yet available.

Parameters

Definition at line 80 of file f4arr1.cpp.

d5_array log ( const d5_array x)
dvar5_array log ( const dvar5_array m)

Description not yet available.

Parameters

Definition at line 96 of file f5arr1.cpp.

dvector log10 ( const dvector vec)

Returns dvector with the common (base-10) logarithm of vec.

Parameters
vecscalar vector

Definition at line 273 of file dvect6.cpp.

Referenced by log10(), function_minimizer::print_mcmc_progress(), and str().

dvar_vector log10 ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 165 of file fvar_ar8.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.

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 ( 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.

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.

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.

dvector log_comb ( double  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 101 of file combc.cpp.

double log_density_cauchy ( const double &  x)

Description not yet available.

Parameters

Definition at line 39 of file cumd_cau.cpp.

dvariable log_der_logistic ( double  a,
double  b,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 35 of file logit.cpp.

double log_negbinomial_density ( double  x,
double  mu,
double  tau 
)
double logistic ( double  a,
double  b,
const double &  x 
)
dvariable logistic ( double  a,
double  b,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 17 of file logit.cpp.

dvector lower_triagnular_solve_trans ( const dmatrix M,
const dvector y 
)
dvector lower_triagular_solve ( const dmatrix m,
const dvector v 
)
lower_triangular_dmatrix lower_triangular_choleski_decomp_positive ( const dmatrix MM,
const int &  _ierr 
)

Description not yet available.

Parameters

Definition at line 171 of file dmat35.cpp.

double lower_triangular_ln_det ( const dmatrix m)

Referenced by lower_triangular_ln_det().

double lower_triangular_ln_det ( const dmatrix m,
int &  sgn 
)
dvariable lower_triangular_ln_det ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 45 of file fvar_m53.cpp.

dvariable lower_triangular_ln_det ( const dvar_matrix m,
int &  sgn 
)

Description not yet available.

Parameters

Definition at line 55 of file fvar_m53.cpp.

dvector lower_triangular_solve ( const dmatrix m,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 170 of file dmat37.cpp.

Referenced by choleski_solve_error(), and choleski_solve_neghess_error().

dvar_vector lower_triangular_solve ( const dvar_matrix m,
const dvar_vector v 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_m53.cpp.

void ludcmp ( const dmatrix _a,
const ivector _indx,
const double &  _d 
)

Lu decomposition of a constant matrix.

Parameters
_aA dmatrix; replaced by the by its resulting LU decomposition
_indxAn ivector containing the row permutations generated by partial pivoting
_dA double containing -1 or +1 depending whether the number of row interchanges was even or odd, repectively.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 221 of file dmat3.cpp.

Referenced by inv(), ln_det(), ludcmp(), and solve().

void ludcmp_index ( const dmatrix _a,
const ivector _indx,
const double &  _d 
)

LU decomposition.

Deprecated:
This function may be completely unused?



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 613 of file dmat3.cpp.

dmatrix make_dmatrix ( dcompressed_triplet M)
int make_sub_directory ( const char *  s)

Create a sub directory s.

Returns
1 if successful, 0 otherwise.

Definition at line 95 of file makesub.cpp.

Referenced by DF_FILE::DF_FILE(), and grad_stack::grad_stack().

dmatrix MAT ( const dvector v,
int  n,
int  m 
)

The MAT operator is the inverse of the VEC operator.

It takes the elements of vector v and sequentially fills in the columns of an n by m matrix.

Parameters
vectorv
integern, the number of rows in the resulting matrix
integerm, the umber of columns in the resulting matrix

Definition at line 45 of file dmat29.cpp.

dvar_matrix MAT ( const dvar_vector v,
int  n,
int  m 
)

The MAT operator is the inverse of the VEC operator.

It takes the elements of vector v and sequentially fills in the columns of an n by m matrix.

Parameters
vectorv
integern, the number of rows in the resulting matrix
integerm, the umber of columns in the resulting matrix

Definition at line 46 of file fvar_m43.cpp.

double max ( const dmatrix m)

Returns the minimum value of matrix m.

Note: m is an allocated matrix.

Parameters
mscalar matrix

Definition at line 133 of file dmat.cpp.

int max ( const imatrix M)

Description not yet available.

Parameters

Definition at line 17 of file imat9.cpp.

double max ( const dvector vec)

Returns the maximum value of vector vec.

Note: vec is an allocated vector.

Parameters
vecscalar vector

Definition at line 85 of file dvect7.cpp.

int max ( const ivector ivec)

Returns maximum value of all elements in ivec.

Parameters
ivecivector

Definition at line 21 of file ivect10.cpp.

int Max ( const ivector ivec)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns maximum value of all elements in ivec.

Parameters
ivecivector

Definition at line 12 of file ivect10.cpp.

unsigned long max ( unsigned long  u,
unsigned long  v 
)

Description not yet available.

Parameters

Definition at line 35 of file maxmin.cpp.

double max ( const double  u,
const double  v 
)

Description not yet available.

Parameters

Definition at line 17 of file maxmin.cpp.

int max ( int  i,
int  j,
int  k 
)

Description not yet available.

Parameters

Definition at line 595 of file fvar_m40.cpp.

double mean ( const dvector vec)
double mean ( const dmatrix m)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return computed mean of matrix m.

Parameters
mdmatrix

Definition at line 12 of file dmat24.cpp.

double mean ( const d3_array array)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return computed mean of d3_array array.

Definition at line 10 of file d3arr3.cpp.

dvariable mean ( const dvar_vector )

Compute mean of v.

Definition at line 59 of file fvar_a49.cpp.

dvariable mean ( const dvar_matrix )

Return the variable mean of matrix m.

Definition at line 11 of file fvar_m29.cpp.

dvariable mean ( const dvar3_array )

Return computed variable mean of variable 3-dimensional array m.

Definition at line 28 of file f3arr4.cpp.

dvariable mf_upper_bound ( const prevariable x,
double  M,
prevariable fpen 
)

Description not yet available.

Parameters

Definition at line 17 of file mfupper.cpp.

double mf_upper_bound ( const double &  x,
double  M,
prevariable fpen 
)
dvector mfexp ( const dvector v1)

Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1.

Parameters
v1a data vector

Definition at line 49 of file dvect19.cpp.

dvector mfexp ( const dvector v1,
const double  d 
)

Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1.

Parameters
v1a data vector
dmacro for CGNU_DOUBLE

Definition at line 20 of file dvect19.cpp.

dvar_vector mfexp ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a50.cpp.

dvar_vector mfexp ( const dvar_vector v1,
const double  d 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a51.cpp.

dmatrix mfexp ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 35 of file dmat26.cpp.

dmatrix mfexp ( const dmatrix m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 74 of file dmat26.cpp.

dvar_matrix mfexp ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 35 of file fvar_m32.cpp.

dvar_matrix mfexp ( const dvar_matrix m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 58 of file fvar_m32.cpp.

d3_array mfexp ( const d3_array m)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return d3_array with computed exponent for each element in m.

Definition at line 10 of file d3arr7.cpp.

Referenced by dnorm(), get_ft(), logitProp(), mfexp(), multifan(), plogis(), qfclib::rgamma(), and rlnorm().

d3_array mfexp ( const d3_array m,
double  d 
)

Return d3_array with computed exponent for each element in m with bounds d.

Definition at line 29 of file d3arr7.cpp.

dvar3_array mfexp ( const dvar3_array m)

Description not yet available.

Parameters

Definition at line 17 of file f3arr11.cpp.

dvar3_array mfexp ( const dvar3_array m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 38 of file f3arr11.cpp.

d4_array mfexp ( const d4_array darray)

Returns results in a d4_array with the computed exponential of the elements in darray.

Parameters
darrayd4_array

Definition at line 46 of file d4arr1.cpp.

dvar4_array mfexp ( const dvar4_array m)

Description not yet available.

Parameters

Definition at line 59 of file f4arr1.cpp.

d5_array mfexp ( const d5_array x)
dvar5_array mfexp ( const dvar5_array m)

Description not yet available.

Parameters

Definition at line 78 of file f5arr1.cpp.

double min ( const dmatrix m)

Returns the minimum value of matrix m.

Note: m is an allocated matrix.

Parameters
mscalar matrix

Definition at line 117 of file dmat.cpp.

int min ( const ivector ivec)

Returns minimum value of all elements in ivec.

Parameters
ivecivector

Definition at line 37 of file ivect10.cpp.

int min ( const int  a,
const int  b 
)

Return smallest value of two integers a or b.

Parameters
aAn integer
bAn integer
Returns
A integer $ z = \min(a,b)$

Definition at line 31 of file fvar_m15.cpp.

unsigned long min ( unsigned long  u,
unsigned long  v 
)

Description not yet available.

Parameters

Definition at line 44 of file maxmin.cpp.

double min ( const double  u,
const double  v 
)

Description not yet available.

Parameters

Definition at line 26 of file maxmin.cpp.

void myheapcheck ( char *  msg)

Does nothing.

This function is only defined for older Borland compilers. The user could provide an implementation that might be useful in certain circumstances.

Parameters
msgPointer to character array.

Definition at line 669 of file dvector.cpp.

Referenced by dvar_vector::allocate(), sdmatrix::allocate(), d3_array::allocate(), dvar3_array::allocate(), dmatrix::dmatrix(), dmatrix::fill(), dvector::operator=(), independent_variables::operator=(), dvector::~dvector(), and sdmatrix::~sdmatrix().

double nd2fboundp ( double  x,
double  fmin,
double  fmax,
const double &  fpen 
)

Scale input variable between upper and lower bounds and compute a penalty for exceeding the bounds.

Intended for use with df1b2 variables.

Parameters
xVariable to be scaled
fminLower bound of x
fminUpper bound of x
_fpenOn return, contains penalty if x > fmax or x < fmin
Returns
Scaled value of x between fmin and fmax in the range [-1,1]

Definition at line 282 of file boundfun.cpp.

Referenced by param_init_bounded_vector::curv_scale(), param_init_bounded_number::curv_scale(), and param_init_bounded_matrix::curv_scale().

dvar_matrix nograd_assign ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 278 of file cmpdif6.cpp.

dvariable nograd_assign ( double  tmp)

Description not yet available.

Parameters

Definition at line 54 of file cmpdif7.cpp.

dvar_vector nograd_assign ( dvector  tmp)

Description not yet available.

Parameters

Definition at line 252 of file cmpdif6.cpp.

Referenced by choleski_decomp(), choleski_decomp_positive(), det(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), operator*(), solve(), and sum().

void nograd_assign_column ( const dvar_matrix m,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 389 of file cmpdif6.cpp.

Referenced by inv().

void nograd_assign_row ( const dvar_matrix m,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 28 of file cmpdif7.cpp.

dvar_matrix nograd_assign_trans ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 334 of file cmpdif6.cpp.

double norm ( const d3_array a)
dvariable norm ( const dvar3_array m)

Description not yet available.

Parameters

Definition at line 17 of file f3arr2.cpp.

double norm ( const banded_symmetric_dmatrix B)

Definition at line 234 of file dmat38.cpp.

Description not yet available.

Parameters

Definition at line 701 of file fvar_m40.cpp.

double norm2 ( const d3_array a)
dvariable norm2 ( const dvar3_array m)

Description not yet available.

Parameters

Definition at line 35 of file f3arr2.cpp.

double norm2 ( const banded_symmetric_dmatrix B)

Definition at line 239 of file dmat38.cpp.

Description not yet available.

Parameters

Definition at line 710 of file fvar_m40.cpp.

int norm2 ( const ivector ivec)

Returns the sum of the squares of all elements in ivec.

Parameters
ivecivector

Definition at line 354 of file ivector.cpp.

dvariable norm_to_gamma ( const prevariable v,
const prevariable alpha,
double  bound 
)

Description not yet available.

Parameters

Definition at line 15 of file vnormgam.cpp.

double norm_to_gamma ( double  v,
double  alpha,
double  bound 
)

Description not yet available.

Parameters

Definition at line 17 of file cnormgam.cpp.

double normal_tail_right ( const double &  x)

Description not yet available.

Parameters

Definition at line 20 of file cumdist.cpp.

void normalized_gauss_hermite ( const dvector _x,
const dvector _w 
)

Gauss-Hermite quadature.

this is normlaized so that standard normal density integrates to 1

Parameters
_xarray of abscissa
_warray of corresponding wights

Definition at line 343 of file gaussher.cpp.

Referenced by gauss_hermite_stuff::gauss_hermite_stuff().

double old_inv_cumd_beta_stable ( double  a,
double  b,
double  y,
double  eps = 1.e-7 
)

Definition at line 23 of file ccumdbetainv.cpp.

int operator!= ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 62 of file compare.cpp.

dvector operator& ( const dvector a,
const dvector b 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Concatenates dvector elements in a with b and return results.

Parameters
ascalar vector
bscalar vector

Definition at line 17 of file dvect15.cpp.

dvar_vector operator& ( const dvar_vector a,
const dvar_vector b 
)

Concatenates variable vector elements in a with b and return results.

Parameters
avariable vector
bvariable vector

Definition at line 42 of file dvect15.cpp.

dvar_vector operator* ( const dvar_vector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a53.cpp.

dvar_vector operator* ( const dvar_vector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a38.cpp.

dvar_vector operator* ( const dvector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a55.cpp.

dvar_vector operator* ( const prevariable x,
const dvector t1 
)

Description not yet available.

Parameters

Definition at line 53 of file fvar_a55.cpp.

dvector operator* ( const dvector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 17 of file dvect4.cpp.

dmatrix operator* ( const double  d,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 93 of file dmat16.cpp.

dmatrix operator* ( const dmatrix m1,
const double  d 
)

Description not yet available.

Parameters

Definition at line 138 of file dmat16.cpp.

dvar_matrix operator* ( const prevariable x,
const dmatrix m 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_m38.cpp.

dvar_matrix operator* ( const dvar_matrix m,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 623 of file fvar_m27.cpp.

dvar_matrix operator* ( const prevariable x,
const dvar_matrix m 
)

Description not yet available.

Parameters

Definition at line 535 of file fvar_m27.cpp.

dvar_matrix operator* ( const double  x,
const dvar_matrix m 
)

Description not yet available.

Parameters

Definition at line 104 of file fvar_m38.cpp.

dvar_matrix operator* ( const dvar_matrix m,
const double  x 
)

Description not yet available.

Parameters

Definition at line 61 of file fvar_m38.cpp.

imatrix operator* ( const imatrix a,
const imatrix b 
)

Returns results of integer matrix multiplication (a x b).

Parameters
aimatrix
bimatrix

Definition at line 80 of file imat10.cpp.

d3_array operator* ( const d3_array m1,
const d3_array m2 
)
dmatrix operator* ( const d3_array t,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 17 of file d3arr12.cpp.

d3_array operator* ( const d3_array a,
double  value 
)

Returns d3_array results of multiplying elements in a with value a(i, j, k) * value.

Parameters
ad3_array

Definition at line 264 of file d3arr2a.cpp.

d3_array operator* ( double  value,
const d3_array a 
)

Returns d3_array results of multiplying value by elements in a value * a(i, j, k).

Parameters
ad3_array

Definition at line 280 of file d3arr2a.cpp.

dvar3_array operator* ( const dvar3_array m1,
const d3_array m2 
)
dvar3_array operator* ( const dvar3_array m1,
const dvariable d 
)

Description not yet available.

Parameters

Definition at line 251 of file f3arr9.cpp.

dvar3_array operator* ( const dvariable d,
const d3_array m2 
)

Description not yet available.

Parameters

Definition at line 142 of file f3arr9.cpp.

dvar3_array operator* ( const dvariable d,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 161 of file f3arr9.cpp.

dvar3_array operator* ( double  d,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 179 of file f3arr9.cpp.

dvar_vector operator+ ( const double  x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 28 of file fvar_a41.cpp.

dvar_vector operator+ ( const dvar_vector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a41.cpp.

dvar_vector operator+ ( const prevariable x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 28 of file fvar_a37.cpp.

dvar_vector operator+ ( const dvar_vector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a37.cpp.

dvector operator+ ( const double  x,
const dvector t1 
)

Description not yet available.

Parameters

Definition at line 83 of file dvect4.cpp.

dvector operator+ ( const dvector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 105 of file dvect4.cpp.

dmatrix operator+ ( const double  d,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 63 of file dmat16.cpp.

dvar_matrix operator+ ( const dvariable x,
const dmatrix m 
)

Description not yet available.

Parameters

Definition at line 20 of file fvar_m57.cpp.

dmatrix operator+ ( const dmatrix m1,
const double  d 
)

Description not yet available.

Parameters

Definition at line 108 of file dmat16.cpp.

d3_array operator+ ( const d3_array a,
const d3_array b 
)

Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).

a and b should be allocated and have the same dimensions. All elements in b should not be zero.

Parameters
ad3_array
bd3_array

Definition at line 132 of file d3arr2a.cpp.

d3_array operator+ ( const d3_array a,
double  value 
)

Returns d3_array results with subtracting elements in a to value a(i, j, k) + value.

Parameters
ad3_array

Definition at line 232 of file d3arr2a.cpp.

d3_array operator+ ( double  value,
const d3_array a 
)

Returns d3_array results with adding elements in a to value value + a(i, j, k).

Parameters
ad3_array

Definition at line 200 of file d3arr2a.cpp.

dvar3_array operator+ ( const dvar3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 216 of file f3arr2.cpp.

dvar3_array operator+ ( const d3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 288 of file f3arr2.cpp.

dvar3_array operator+ ( const dvar3_array m1,
const d3_array m2 
)

Returns dvar3_array with each element equal to m1(i, j, k) + m2(i, j, k).

Parameters
m1left side variable array
m2right side variable array

Definition at line 62 of file f3arr9.cpp.

dvar3_array operator+ ( const dvar3_array m1,
const dvariable d 
)

Description not yet available.

Parameters

Definition at line 215 of file f3arr9.cpp.

dvar3_array operator+ ( const dvariable d1,
const dvar3_array m1 
)

Description not yet available.

Parameters

Definition at line 269 of file f3arr9.cpp.

dvar3_array operator+ ( const dvariable d,
const d3_array m2 
)

Returns dvar3_array with each element equal to d + m2(i, j, k).

Parameters
dleft side variable
m2right side variable array

Definition at line 102 of file f3arr9.cpp.

dvar3_array operator+ ( double  d,
const dvar3_array m1 
)

Description not yet available.

Parameters

Definition at line 233 of file f3arr9.cpp.

dvar_vector operator- ( const double  x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a40.cpp.

dvar_vector operator- ( const dvar_vector t1,
const double  x 
)

Subtracts x from each element of t1 into a dvar_vector.

Parameters
t1dvar_vector
xdouble
Returns
dvar_vector result

Definition at line 19 of file fvar_a39.cpp.

dvar_vector operator- ( const dvar_vector t1)

Description not yet available.

Parameters

Definition at line 82 of file fvar_a40.cpp.

dvar_vector operator- ( const prevariable x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a36.cpp.

dvar_vector operator- ( const dvar_vector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a35.cpp.

dvar_vector operator- ( const dvector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a54.cpp.

dvector operator- ( const double  x,
const dvector t1 
)

Description not yet available.

Parameters

Definition at line 127 of file dvect4.cpp.

dvector operator- ( const dvector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 149 of file dvect4.cpp.

dvector operator- ( const dvector t1)
dvar_matrix operator- ( const dvariable x,
const dmatrix m 
)

Description not yet available.

Parameters

Definition at line 42 of file fvar_m57.cpp.

dmatrix operator- ( const double  d,
const dmatrix m2 
)

Description not yet available.

Parameters

Definition at line 78 of file dmat16.cpp.

dmatrix operator- ( const dmatrix m1,
const double  d 
)

Description not yet available.

Parameters

Definition at line 123 of file dmat16.cpp.

d3_array operator- ( const d3_array a,
const d3_array b 
)

Returns d3_array results with computed elements addition of a(i, j, k) + b(i, j, k).

a and b should be allocated and have the same dimensions. All elements in b should not be zero.

Parameters
ad3_array
bd3_array

Definition at line 152 of file d3arr2a.cpp.

d3_array operator- ( const d3_array a,
double  value 
)

Returns d3_array results with subtracting elements in a to value a(i, j, k) - value.

Parameters
ad3_array

Definition at line 248 of file d3arr2a.cpp.

d3_array operator- ( double  value,
const d3_array a 
)

Returns d3_array results with subtracting elements in a to value value - a(i, j, k).

Parameters
ad3_array

Definition at line 216 of file d3arr2a.cpp.

dvar3_array operator- ( const dvar3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 234 of file f3arr2.cpp.

dvar3_array operator- ( const d3_array m1,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 306 of file f3arr2.cpp.

dvar3_array operator- ( const dvar3_array m1,
const d3_array m2 
)

Returns dvar3_array with each element equal to m1(i, j, k) - m2(i, j, k).

Parameters
m1left side variable array
m2right side variable array

Definition at line 82 of file f3arr9.cpp.

dvar3_array operator- ( const dvar3_array m1,
const dvariable d 
)

Description not yet available.

Parameters

Definition at line 197 of file f3arr9.cpp.

dvar3_array operator- ( const dvariable d,
const d3_array m2 
)

Returns dvar3_array with each element equal to d + m2(i, j, k).

Parameters
dleft side variable
m2right side variable array

Definition at line 122 of file f3arr9.cpp.

dvar3_array operator- ( const dvariable m1,
const dvar3_array m2 
)
dvar3_array operator- ( const double  d,
const dvar3_array m2 
)

Description not yet available.

Parameters

Definition at line 12 of file f3arr4.cpp.

dmatrix operator- ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 17 of file dmat30.cpp.

dvar_matrix operator- ( const dvar_matrix varmat)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns negative elements of varmat.

Parameters
varmatvaraible matrix

Definition at line 12 of file fvar_m45.cpp.

dvar_vector operator/ ( const double  x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a43.cpp.

dvar_vector operator/ ( const dvar_vector t1,
const double  x 
)

Divides each element of t1 by x, then return result in dvar_vector.

Parameters
t1dvar_vector
xdivisor
Returns
dvar_vector result of operation

Definition at line 19 of file fvar_a34.cpp.

dvar_vector operator/ ( const prevariable x,
const dvar_vector t1 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a42.cpp.

dvar_vector operator/ ( const dvar_vector t1,
const prevariable x 
)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a33.cpp.

dvector operator/ ( const double  x,
const dvector t1 
)

Description not yet available.

Parameters

Definition at line 39 of file dvect4.cpp.

dvector operator/ ( const dvector t1,
const double  x 
)

Description not yet available.

Parameters

Definition at line 61 of file dvect4.cpp.

dmatrix operator/ ( const dmatrix m,
const double  e 
)

Description not yet available.

Parameters

Definition at line 35 of file dmat25.cpp.

dmatrix operator/ ( const double  e,
const dmatrix m 
)

Description not yet available.

Parameters

Definition at line 50 of file dmat25.cpp.

dvar_matrix operator/ ( const dvar_matrix m,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 59 of file fvar_m30.cpp.

dvar_matrix operator/ ( const dmatrix m,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 83 of file fvar_m30.cpp.

dvar_matrix operator/ ( const dvar_matrix m,
const double  e 
)

Description not yet available.

Parameters

Definition at line 35 of file fvar_m30.cpp.

dvar_matrix operator/ ( const double  e,
const dvar_matrix m 
)

Description not yet available.

Parameters

Definition at line 35 of file fvar_m31.cpp.

dvar_matrix operator/ ( const prevariable e,
const dvar_matrix m 
)

Description not yet available.

Parameters

Definition at line 58 of file fvar_m31.cpp.

d3_array operator/ ( const d3_array m,
const double  d 
)

Author: David Fournier.

Copyright (c) 2008-2012 Regents of the University of California Divide each element of m by d.

Returns
Allocated d3_array with results of division.

Definition at line 14 of file d3arr2b.cpp.

d3_array operator/ ( double  m2,
const d3_array m1 
)
dvar3_array operator/ ( const prevariable d,
const dvar3_array arr3 
)

Returns dvar3_array where each element (i, j) is equal to d / m(i, j).

Parameters
dnumerator
mdenominator for each element i and j.

Definition at line 14 of file f3arr10.cpp.

dvar3_array operator/ ( const prevariable d,
const d3_array arr3 
)

Returns dvar3_array where each element (i, j) is equal to d / m(i, j).

Parameters
dnumerator
mdenominator for each element i and j.

Definition at line 30 of file f3arr10.cpp.

dvar3_array operator/ ( const double  d,
const dvar3_array arr3 
)

Returns dvar3_array where each element (i, j) is equal to d / m(i, j).

Parameters
ddouble numerator
mdenominator for each element i and j.

Definition at line 46 of file f3arr10.cpp.

dvar3_array operator/ ( const dvar3_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 54 of file f3arr5.cpp.

dvar3_array operator/ ( const d3_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 17 of file f3arr5.cpp.

dvar3_array operator/ ( const dvar3_array m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 36 of file f3arr5.cpp.

d4_array operator/ ( const d4_array arr4,
double  d 
)

Returns d4_array with all elements arr4 divided by d.

Parameters
ddouble

Definition at line 24 of file d4arr2.cpp.

d4_array operator/ ( double  d,
const d4_array arr4 
)

Returns d4_array with all elements equal to d divided by elements in arr4.

Parameters
arr4d4_array

Definition at line 39 of file d4arr2.cpp.

dvar4_array operator/ ( const d4_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 17 of file f4arr2.cpp.

dvar4_array operator/ ( const dvar4_array m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 44 of file f4arr2.cpp.

dvar4_array operator/ ( const dvar4_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 73 of file f4arr2.cpp.

dvar5_array operator/ ( const d5_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 17 of file f5arr2.cpp.

dvar5_array operator/ ( const dvar5_array m,
double  d 
)

Description not yet available.

Parameters

Definition at line 36 of file f5arr2.cpp.

dvar5_array operator/ ( const dvar5_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 54 of file f5arr2.cpp.

d5_array operator/ ( const d5_array arr5,
const double  d 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns d5_array with all elements arr5 divided by d.

Parameters
arr5numerator
ddenominator

Definition at line 13 of file d5arr1.cpp.

d6_array operator/ ( const d6_array darray,
const double  divisor 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return results of all elements of darray divided by divisor.

Parameters
darrayd6_array
divisordouble

Definition at line 13 of file d6arr1.cpp.

dvar6_array operator/ ( const d6_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 17 of file f6arr1.cpp.

dvar6_array operator/ ( const dvar6_array m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 42 of file f6arr1.cpp.

dvar6_array operator/ ( const dvar6_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 66 of file f6arr1.cpp.

d7_array operator/ ( const d7_array darray,
const double  divisor 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return result of dividing all darray elements by divisor.

Parameters
divisordouble

Definition at line 12 of file d7arr1.cpp.

dvar7_array operator/ ( const d7_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 17 of file f7arr1.cpp.

dvar7_array operator/ ( const dvar7_array m,
const double  d 
)

Description not yet available.

Parameters

Definition at line 36 of file f7arr1.cpp.

dvar7_array operator/ ( const dvar7_array m,
const prevariable d 
)

Description not yet available.

Parameters

Definition at line 54 of file f7arr1.cpp.

int operator< ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 53 of file compare.cpp.

ostream& operator<< ( const ostream &  _ostr,
const dmatrix z 
)

Description not yet available.

Parameters

Definition at line 35 of file dmat_io.cpp.

uostream& operator<< ( const uostream output,
const dmatrix values 
)

Write values to output.

Parameters
outputuostream
valuedmatrix

Definition at line 55 of file dmat_io3.cpp.

ostream& operator<< ( const ostream &  output,
const d3_array arr3 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Saves values from arr3 to output stream.

Parameters
outputostream
arr3d3_array

Definition at line 26 of file d3_io.cpp.

uostream& operator<< ( const uostream output,
const d3_array arr3 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Save values from arr3 to output stream.

Parameters
outputuostream
arr3d3_array

Definition at line 28 of file d3_io1.cpp.

ostream& operator<< ( const ostream &  _ostr,
const dvar3_array z 
)

Description not yet available.

Parameters

Definition at line 34 of file fvar3_io.cpp.

uostream& operator<< ( const uostream output,
const dvar3_array varr3 
)

Save values from varr3 to output stream.

Parameters
outputuostream
varr3dvar3_array

Definition at line 58 of file d3_io1.cpp.

ostream& operator<< ( const ostream &  ostr,
const ivector z 
)

Insertion operator for ivector z.

Definition at line 34 of file ivect_io.cpp.

uostream& operator<< ( const uostream output,
const ivector values 
)

Write values to output.

Parameters
outputuostream
valuesivector

Definition at line 58 of file ivec_io1.cpp.

ostream& operator<< ( const ostream &  _ostr,
const lvector z 
)

Description not yet available.

Parameters

Definition at line 37 of file lvect_io.cpp.

uostream& operator<< ( const uostream _ostr,
const lvector z 
)

Description not yet available.

Parameters

Definition at line 73 of file lvec_io1.cpp.

ostream& operator<< ( const ostream &  _ostr,
const dvector z 
)

Description not yet available.

Parameters

Definition at line 37 of file dvect_io.cpp.

uostream& operator<< ( const uostream ostr,
const dvector z 
)

Description not yet available.

Parameters

Definition at line 51 of file dvec_io2.cpp.

ostream& operator<< ( const ostream &  ostr,
const dvar_vector z 
)

Description not yet available.

Parameters

Definition at line 36 of file fvara_io.cpp.

uostream& operator<< ( const uostream ostr,
const dvar_vector z 
)

Description not yet available.

Parameters

Definition at line 70 of file fvarb_io.cpp.

ostream& operator<< ( const ostream &  _ostr,
const dvar_matrix z 
)

Description not yet available.

Parameters

Definition at line 37 of file fvarm_io.cpp.

uostream& operator<< ( const uostream ostr,
const dvar_matrix z 
)

Operator to write values from dvar_matrix to output stream ostr.

Parameters
ostroutput stream
zdvar_matrix values

Definition at line 69 of file fvarm1_i.cpp.

ostream& operator<< ( const ostream &  _ostr,
const prevariable f 
)

Description not yet available.

Parameters

Definition at line 36 of file fvar_io.cpp.

uostream& operator<< ( const uostream _ostr,
const prevariable f 
)

Description not yet available.

Parameters

Definition at line 63 of file fvar_io.cpp.

ostream& operator<< ( const ostream &  _s,
preshowpoint  p 
)

Description not yet available.

Parameters

Definition at line 48 of file admanip.cpp.

Referenced by operator<<().

ostream& operator<< ( const ostream &  _s,
prefixed  p 
)

Description not yet available.

Parameters

Definition at line 69 of file admanip.cpp.

ostream& operator<< ( const ostream &  _s,
prescientific  p 
)

Description not yet available.

Parameters

Definition at line 90 of file admanip.cpp.

ostream& operator<< ( const ostream &  _ostr,
const imatrix z 
)

Description not yet available.

Parameters

Definition at line 37 of file imat_io.cpp.

ostream& operator<< ( const ostream &  output,
const i3_array iarr3 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Save iarr3 to output stream.

Parameters
outputostream
iarr3i3_array

Definition at line 26 of file i3_io.cpp.

prevariable& operator<< ( const prevariable _v1,
const prevariable v2 
)

Description not yet available.

Parameters

Definition at line 23 of file depvars.cpp.

dvar_vector& operator<< ( const dvar_vector v1,
const dvar_vector v2 
)

Description not yet available.

Parameters

Definition at line 35 of file depvars.cpp.

dvar_matrix& operator<< ( const dvar_matrix v1,
const dvar_matrix v2 
)

Description not yet available.

Parameters

Definition at line 61 of file depvars.cpp.

ostream & operator<< ( const ostream &  _s,
const ptr_vector _v 
)

Description not yet available.

Parameters

Definition at line 202 of file ptr_vec.cpp.

uostream& operator<< ( const uostream ofs,
const dfsdmat m 
)

Description not yet available.

Parameters

Definition at line 283 of file dfsdmat.cpp.

ostream& operator<< ( const ostream &  s,
const fmm_control fmc 
)

<< operator to write function minimizer details

Parameters
sstring of details
fmcfunction minimizer control object
Returns
output stream of details.

Definition at line 139 of file fmm_cont.cpp.

ostream& operator<< ( const ostream &  ,
const dvar_matrix_position  
)
ostream& operator<< ( const ostream &  output,
const d4_array values 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Write values to output.

Parameters
outputostream
valuesd4_array

Definition at line 27 of file d4_io.cpp.

ostream& operator<< ( const ostream &  output,
const d5_array values 
)

Write values to output.

Parameters
outputostream
valuesd5_array

Definition at line 57 of file d4_io.cpp.

ostream& operator<< ( const ostream &  output,
const d6_array values 
)

Write values to output.

Parameters
outputostream
valuesd6_array

Definition at line 87 of file d4_io.cpp.

ostream& operator<< ( const ostream &  output,
const dvar4_array varr4 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Write values from varr4 to output stream.

Parameters
outputostream
varr4dvar4_array

Definition at line 26 of file f4_io.cpp.

ostream& operator<< ( const ostream &  ostr,
const dvar5_array z 
)

Outputs dvar5_array z.

Definition at line 72 of file f4_io.cpp.

ostream& operator<< ( const ostream &  ostr,
const dvar6_array z 
)

Description not yet available.

Parameters

Definition at line 94 of file f4_io.cpp.

ostream& operator<< ( const ostream &  output,
const i4_array iarray 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Write iarray to output stream.

Parameters
outputostream
iarrayi4_array

Definition at line 26 of file i4io.cpp.

ostream& operator<< ( const ostream &  output,
const i5_array iarray 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Write iarray to output stream.

Parameters
outputostream
iarrayi5_array

Definition at line 26 of file i5io.cpp.

ostream& operator<< ( const ostream &  ofs1,
const banded_symmetric_dmatrix S1 
)

Description not yet available.

Parameters

Definition at line 21 of file dmat33.cpp.

ostream& operator<< ( const ostream &  _ofs,
const banded_symmetric_dvar_matrix S1 
)

Description not yet available.

Parameters

Definition at line 145 of file fvar_m40.cpp.

ostream& operator<< ( const ostream &  _ofs,
const banded_lower_triangular_dmatrix S1 
)

Description not yet available.

Parameters

Definition at line 258 of file dmat28.cpp.

ostream& operator<< ( const ostream &  _ofs,
const banded_lower_triangular_dvar_matrix S1 
)

Description not yet available.

Parameters

Definition at line 196 of file fvar_m40.cpp.

ostream& operator<< ( const ostream &  _ofs,
const pre_column_print p 
)

Description not yet available.

Parameters

Definition at line 17 of file dvect23.cpp.

ostream& operator<< ( const ostream &  _ofs,
const pre_zero_print p 
)

Description not yet available.

Parameters

Definition at line 42 of file dvect23.cpp.

int operator<= ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 26 of file compare.cpp.

int operator== ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 17 of file compare.cpp.

int operator> ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 44 of file compare.cpp.

int operator>= ( double  v0,
const prevariable v1 
)

Description not yet available.

Parameters

Definition at line 35 of file compare.cpp.

istream& operator>> ( const istream &  _istr,
const dmatrix _z 
)

Description not yet available.

Parameters

Definition at line 78 of file dmat_io.cpp.

uistream& operator>> ( const uistream input,
const dmatrix values 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Read values from input.

Parameters
inputuistream
valuedmatrix

Definition at line 26 of file dmat_io3.cpp.

istream& operator>> ( const istream &  input,
const d3_array arr3 
)

Read values from input stream into arr3.

Parameters
inputistream
arr3d3_array

Definition at line 60 of file d3_io.cpp.

uistream& operator>> ( const uistream input,
const d3_array arr3 
)

Read values from input stream to arr3.

Parameters
inputuistream
arr3d3_array

Definition at line 43 of file d3_io1.cpp.

istream& operator>> ( const istream &  _istr,
const dvar3_array z 
)

Description not yet available.

Parameters

Definition at line 52 of file fvar3_io.cpp.

uistream& operator>> ( const uistream input,
const dvar3_array varr3 
)

Read values from input stream to varr3.

Parameters
inputuistream
varr3dvar3_array

Definition at line 73 of file d3_io1.cpp.

istream& operator>> ( const istream &  istr,
const ivector z 
)

Extraction operator for ivector _z.

Definition at line 84 of file ivect_io.cpp.

uistream& operator>> ( const uistream input,
const ivector values 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Read from input to values.

Parameters
inputuistream
valuesivector

Definition at line 30 of file ivec_io1.cpp.

istream& operator>> ( const istream &  _istr,
const lvector _z 
)

Description not yet available.

Parameters

Definition at line 96 of file lvect_io.cpp.

uistream& operator>> ( const uistream _istr,
const lvector _z 
)

Description not yet available.

Parameters

Definition at line 44 of file lvec_io1.cpp.

istream& operator>> ( const istream &  _istr,
const dvector _z 
)

Description not yet available.

Parameters

Definition at line 83 of file dvect_io.cpp.

uistream& operator>> ( const uistream istr,
const dvector _z 
)

Description not yet available.

Parameters

Definition at line 40 of file dvec_io2.cpp.

istream& operator>> ( const istream &  istr,
const dvar_vector _z 
)

Description not yet available.

Parameters

Definition at line 82 of file fvara_io.cpp.

uistream& operator>> ( const uistream istr,
const dvar_vector _z 
)

Description not yet available.

Parameters

Definition at line 39 of file fvarb_io.cpp.

istream& operator>> ( const istream &  _istr,
const dvar_matrix _z 
)

Description not yet available.

Parameters

Definition at line 84 of file fvarm_io.cpp.

uistream& operator>> ( const uistream istr,
const dvar_matrix _z 
)

Operator to read values to dvar_matrix form input stream istr.

Parameters
istroutput stream
_zdvar_matrix values

Definition at line 36 of file fvarm1_i.cpp.

istream& operator>> ( const istream &  _istr,
const prevariable _f 
)

Description not yet available.

Parameters

Definition at line 47 of file fvar_io.cpp.

uistream& operator>> ( const uistream _istr,
const prevariable _f 
)

Description not yet available.

Parameters

Definition at line 74 of file fvar_io.cpp.

istream& operator>> ( const istream &  _istr,
const imatrix z 
)

Description not yet available.

Parameters

Definition at line 54 of file imat_io.cpp.

istream& operator>> ( const istream &  input,
const i3_array iarr3 
)

Read to iarr3 from input stream.

Parameters
inputistream
iarr3i3_array

Definition at line 48 of file i3_io.cpp.

istream& operator>> ( const istream &  s,
const ptr_vector v 
)
uistream& operator>> ( const uistream _ifs,
const dfsdmat _m 
)

Description not yet available.

Parameters

Definition at line 300 of file dfsdmat.cpp.

istream& operator>> ( const istream &  input,
const d4_array values 
)

Read from input to values.

Parameters
inputistream
valuesd4_array

Definition at line 42 of file d4_io.cpp.

istream& operator>> ( const istream &  input,
const d5_array values 
)

Read from input to values.

Parameters
inputistream
valuesd5_array

Definition at line 72 of file d4_io.cpp.

istream& operator>> ( const istream &  input,
const d6_array values 
)

Read from input to values.

Parameters
inputistream
valuesd6_array

Definition at line 102 of file d4_io.cpp.

istream& operator>> ( const istream &  input,
const dvar4_array varr4 
)

Read values to varr4 from input stream.

Parameters
inputistream
varr4dvar4_array

Definition at line 45 of file f4_io.cpp.

istream& operator>> ( const istream &  istr,
const dvar5_array z 
)

Description not yet available.

Parameters

Definition at line 81 of file f4_io.cpp.

istream& operator>> ( const istream &  istr,
const dvar6_array z 
)

Description not yet available.

Parameters

Definition at line 107 of file f4_io.cpp.

istream& operator>> ( const istream &  input,
const i4_array iarray 
)

Read iarray from input stream.

Parameters
inputistream
iarrayi4_array

Definition at line 48 of file i4io.cpp.

istream& operator>> ( const istream &  input,
const i5_array iarray 
)

Read iarray from input stream.

Parameters
inputistream
iarrayi5_array

Definition at line 48 of file i5io.cpp.

int option_match ( int  argc,
char *  argv[],
const char *  option 
)

Checks if the program has been invoked with a particular command line argument ("string").

Parameters
argcNumber of command line arguments (as in all C programs)
argvArray (of length argc) of command line arguments (as in all C programs)
optionShould be one of the possible command line arguments to an ADMB program.
Returns
An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.

Definition at line 25 of file optmatch.cpp.

Referenced by ad_comm::ad_comm(), ad_comm::allocate(), allocate_dvariable_space(), function_minimizer::computations(), function_minimizer::computations1(), DF_FILE::DF_FILE(), dlist::dlist(), do_dll_housekeeping(), laplace_approximation_calculator::do_newton_raphson_banded(), get_f1b2buffer_size(), get_option_number(), grad_stack::grad_stack(), gradient_structure::gradient_structure(), function_minimizer::hess_inv(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::hess_step(), function_minimizer::hybrid_mcmc_routine(), laplace_approximation_calculator::laplace_approximation_calculator(), function_minimizer::likeprof_routine(), function_minimizer::limited_memory_quasi_newton(), function_minimizer::limited_memory_quasi_newton_block(), function_minimizer::mcmc_computations(), function_minimizer::mcmc_routine(), function_minimizer::minimize(), function_minimizer::nuts_mcmc_routine(), laplace_approximation_calculator::operator()(), option_match(), function_minimizer::prof_minimize_re(), function_minimizer::pvm_master_mcmc_computations(), function_minimizer::quasi_newton_block(), function_minimizer::random_effects_maximization(), function_minimizer::rwm_mcmc_routine(), function_minimizer::shmc_mcmc_routine(), DF_FILE::~DF_FILE(), fixed_smartlist::~fixed_smartlist(), fixed_smartlist2::~fixed_smartlist2(), grad_stack::~grad_stack(), and test_smartlist::~test_smartlist().

int option_match ( int  argc,
char *  argv[],
const char *  option,
int &  nopt 
)

Checks if the program has been invoked with a particular command line argument ("string").

If so, counts the number of arguments ("nopt") to this command line option. For example if the program has been invoked with the command line option "-ind FILE", then nopt=1.

Parameters
argcNumber of command line arguments (as in all C programs)
argvArray (of length argc) of command line arguments (as in all C programs)
optionShould be one of the possible command line arguments to an ADMB program.
noptOn return holds the number arguments/options associated with "string".
Returns
An index into "argv" where the match with "string" is obtained. In case of no match, the value "-1" is returned.

Definition at line 118 of file optmatch.cpp.

int option_match ( char *  _s,
const char *  option,
int &  nopt 
)

Search for option in _s and returns number of option args in _nopt.

Returns
If found return index (starts at 1), else return -1.

Definition at line 72 of file optmatch.cpp.

int option_match ( char *  _s,
const char *  option 
)

Search for option in _s.

Returns
If found return index (starts at 1), else return -1.

Definition at line 46 of file optmatch.cpp.

dmatrix orthpoly ( int  n,
int  deg 
)

Description not yet available.

Parameters

Definition at line 17 of file orthpoly.cpp.

dmatrix orthpoly ( int  n,
int  deg,
int  skip 
)

Description not yet available.

Parameters

Definition at line 46 of file orthpoly.cpp.

d4_array orthpoly2 ( int  d1,
int  d2,
int  n,
int  m 
)

Description not yet available.

Parameters

Definition at line 17 of file orthply2.cpp.

dmatrix orthpoly_constant_begin ( int  n,
int  deg,
int  nconst 
)

Description not yet available.

Parameters

Definition at line 75 of file orthpoly.cpp.

dmatrix orthpoly_constant_begin_end ( int  n,
int  deg,
int  nconst_begin,
int  end_degree,
int  nconst_end 
)

Description not yet available.

Parameters

Definition at line 143 of file orthpoly.cpp.

dmatrix outer_prod ( const dvector v1,
const dvector v2 
)
dvar_matrix outer_prod ( const dvar_vector v1,
const dvar_vector v2 
)

Description not yet available.

Parameters

Definition at line 220 of file fvar_ma6.cpp.

dvar_matrix outer_prod ( const dvector v1,
const dvar_vector v2 
)

Compute the outer product of v1 and v2 vectors into dvar_matrix.

Parameters
v1dvector
v2dvar_vector

Definition at line 319 of file fvar_ma6.cpp.

dvar_matrix outer_prod ( const dvar_vector v1,
const dvector v2 
)

Compute the outer product of v1 and v2 vectors into dvar_matrix.

Parameters
v1dvar_vector
v2dvector

Definition at line 351 of file fvar_ma6.cpp.

dvar_vector pareto_density ( const dvar_vector _y,
const prevariable alpha,
const prevariable xm 
)
dvariable pareto_density ( const prevariable _y,
const prevariable alpha,
const prevariable xm 
)
dvariable pbeta ( const dvariable  x,
const dvariable  a,
const dvariable  b,
int  maxit 
)

beta distribution function for variable objects (alias of ibeta function with same arguments order as in R).

Parameters
x$x$
a$a$
b$b$
maxitMaximum number of iterations for the continued fraction approximation in betacf.
Returns
Incomplete beta function $I_x(a,b)$



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 48 of file vbetai.cpp.

double pbeta ( const double  x,
const double  a,
const double  b,
int  maxit 
)

beta distribution function for constant objects (alias of ibeta function with same arguments order as in R).

Parameters
x$x$
a$a$
b$b$
maxitMaximum number of iterations for the continued fraction approximation in betacf.
Returns
Incomplete beta function $I_x(a,b)$



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 47 of file cbetai.cpp.

dvar_vector posfun ( const dvar_vector x,
double  eps,
const prevariable _pen 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_a62.cpp.

Referenced by choleski_decomp_positive(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), and posfun().

dvar_matrix positive_definite_matrix ( const dvar_matrix MM,
double  eps,
dvariable _fpen 
)

Description not yet available.

Parameters

Definition at line 36 of file fvar_m47.cpp.

dvector pow ( const dvector bases,
const double  exponent 
)

Returns a dvector with base raised to the power exponent for each element in exponents.

Parameters
basearray of floating values
exponenta floating value

Definition at line 149 of file dvect6.cpp.

dvector pow ( const dvector bases,
int  exponent 
)

Returns a dvector with base raised to the power exponent for each element in exponents.

Parameters
basearray of floating values
exponenta integer

Definition at line 172 of file dvect6.cpp.

dvector pow ( const double  base,
const dvector exponents 
)

Returns a dvector with base raised to the power exponent for each element in exponents.

Parameters
basedouble
exponentsarray of floating points

Definition at line 214 of file dvect6.cpp.

ivector pow ( const ivector v1,
int  x 
)

Returns integer vector with all the base elements in ivector v1 base raised to the power exponent x.

Parameters
v1base elements
xexponent

Definition at line 45 of file ivect6.cpp.

ivector pow ( int  x,
const ivector v1 
)

Returns integer vector with base x raised with all the elements in exponent ivector x.

Parameters
xbase
v1exponent

Definition at line 71 of file ivect6.cpp.

dvar_vector pow ( const dvar_vector v1,
const dvar_vector v2 
)

Description not yet available.

Parameters

Definition at line 94 of file fvar_ar8.cpp.

dvar_vector pow ( const dvar_vector v1,
const dvector v2 
)

raise v1 to the power v2.

Parameters
v1vector of bases
v2vector of exponents

Definition at line 149 of file f1b2v10.cpp.

dvar_vector pow ( const dvector ,
const dvar_vector t1 
)

Definition at line 721 of file fvar_a29.cpp.

dvector pow ( const dvector bases,
const dvector exponents 
)

Returns a dvector with each element from bases is raised to the power exponent for each element in exponents.

Parameters
basearray of floating values
exponentsarray of floating values

Definition at line 195 of file dvect6.cpp.

dvar_vector pow ( const dvar_vector v1,
const double  e 
)

Computes pow raised to the power e for each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 496 of file fvar_a29.cpp.

dvar_vector pow ( const dvar_vector v1,
int  e 
)

Description not yet available.

Parameters

Definition at line 613 of file fvar_a29.cpp.

dvar_vector pow ( const dvar_vector v1,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 552 of file fvar_a29.cpp.

dvar_vector pow ( const dvector v1,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 667 of file fvar_a29.cpp.

dvar_vector pow ( const prevariable x,
const dvar_vector v2 
)

Description not yet available.

Parameters

Definition at line 114 of file fvar_ar8.cpp.

dmatrix pow ( const dmatrix m,
double  e 
)

Definition at line 81 of file dmat20.cpp.

dmatrix pow ( const dmatrix m,
int  e 
)

Returns dmatrix with pow of each element in m raised to the exponent e.

Parameters
mdmatrix
einteger exponent

Definition at line 60 of file dmat20.cpp.

dvar_matrix pow ( const dvar_matrix m,
const double  e 
)

Description not yet available.

Parameters

Definition at line 192 of file fvar_m27.cpp.

dvar_matrix pow ( const dvar_matrix m,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 170 of file fvar_m27.cpp.

dvar_matrix pow ( const dmatrix m,
const prevariable e 
)

Description not yet available.

Parameters

Definition at line 148 of file fvar_m27.cpp.

dvar_matrix pow ( const dvar_matrix m,
int  e 
)

Description not yet available.

Parameters

Definition at line 126 of file fvar_m27.cpp.

d3_array pow ( const d3_array m,
int  e 
)
dvar3_array pow ( const dvar3_array base,
int  exp 
)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns results in dvar3_array with elements in base raised to power exp.

Parameters
basedvar3_array of base
expint exponent

Definition at line 13 of file f3arr8.cpp.

double qbeta ( double  x,
double  a,
double  b,
double  eps = 0 
)

Definition at line 200 of file ccumdbetainv.cpp.

dvariable qbeta ( dvariable  x,
dvariable  a,
dvariable  b,
double  eps = 0 
)

Definition at line 253 of file vcumdbetainv.cpp.

double randnegbinomial ( double  mu,
double  tau,
const random_number_generator rng 
)

Description not yet available.

Parameters

Definition at line 17 of file rannegbn.cpp.

Referenced by dvector::fill_randnegbinomial(), and dvar_vector::fill_randnegbinomial().

double randpoisson ( double  xm,
const random_number_generator rng 
)

Poisson random deviates.

Parameters
xmMean of Poisson distribution
rngInstance of class random_number_generator.
Returns
Integer-valued double drawn from the Poisson distribution with given mean.

Definition at line 37 of file dranpois.cpp.

Referenced by dvector::fill_randpoisson(), dvar_vector::fill_randpoisson(), and randnegbinomial().

dvariable regression ( const dvector obs,
const dvar_vector pred 
)

Description not yet available.

Parameters

Definition at line 15 of file vregress.cpp.

double regression ( const dvector obs,
const dvector pred 
)

Description not yet available.

Parameters

Definition at line 17 of file cregress.cpp.

void report_gradstack_flag ( void  )

Description not yet available.

Parameters

Definition at line 36 of file cmpdif3.cpp.

Referenced by set_gradstack_flag().

void reset_gradient_stack ( void  )
long int reset_gs_stack ( void  )
void reset_gs_stack ( long  int)
void* restore_ad_pointer ( void  )

Description not yet available.

Parameters

Definition at line 237 of file cmpdif3.cpp.

Referenced by dfcholeski_sparse().

banded_lower_triangular_dmatrix restore_banded_lower_triangular_dvar_matrix_derivatives ( const dvar_matrix_position _pos)

Description not yet available.

Parameters

Definition at line 170 of file cmpdif11.cpp.

Referenced by dfcholeski_decomp_banded(), and dfcholeski_decomp_banded_positive().

banded_lower_triangular_dmatrix restore_banded_lower_triangular_dvar_matrix_value ( const dvar_matrix_position mpos)

Description not yet available.

Parameters

Definition at line 78 of file cmpdif11.cpp.

Referenced by dfbltsolve().

banded_symmetric_dmatrix restore_banded_symmetric_dvar_matrix_value ( const dvar_matrix_position mpos)

Description not yet available.

Parameters

Definition at line 55 of file cmpdif11.cpp.

Referenced by dfcholeski_decomp_banded(), and dfcholeski_decomp_banded_positive().

banded_symmetric_dmatrix restore_bounded_symmetric_dvar_matrix_derivatives ( const dvar_matrix_position _pos)

Description not yet available.

Parameters

Definition at line 186 of file cmpdif11.cpp.

d3_array_position restore_d3_array_position ( void  )

Description not yet available.

Parameters

Definition at line 89 of file cmpdif6.cpp.

d3_array restore_d3_array_value ( const d3_array_position mpos)

Description not yet available.

Parameters

Definition at line 123 of file cmpdif5.cpp.

dmatrix_position restore_dmatrix_position ( )

Description not yet available.

Parameters

Definition at line 143 of file cmpdif6.cpp.

dmatrix restore_dmatrix_value ( const dmatrix_position mpos)

Description not yet available.

Parameters

Definition at line 96 of file cmpdif5.cpp.

double restore_double_value ( void  )

Description not yet available.

Parameters

Definition at line 182 of file cmpdif8.cpp.

dmatrix restore_dvar_matrix_der_nozero ( const dvar_matrix_position _pos)

Description not yet available.

Parameters

Definition at line 197 of file cmpdif6.cpp.

dvector restore_dvar_matrix_derivative_column ( const dvar_matrix_position _pos,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 228 of file cmpdif6.cpp.

Referenced by dfinvpret().

dvector restore_dvar_matrix_derivative_row ( const dvar_matrix_position _pos,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 216 of file cmpdif6.cpp.

dmatrix restore_dvar_matrix_derivatives ( const dvar_matrix_position pos)
dmatrix restore_dvar_matrix_derivatives ( void  )
dvector restore_dvar_matrix_derivatives ( const dvar_matrix_position pos,
const int &  ii 
)
dvar_matrix_position restore_dvar_matrix_position ( )

Reads back the size and address information for a dvar_matrix, restores the size, address, and value information for a dvar_vector.

Definition at line 110 of file cmpdif6.cpp.

dmatrix restore_dvar_matrix_value ( const dvar_matrix_position mpos)

Description not yet available.

Parameters

Definition at line 70 of file cmpdif5.cpp.

dvector restore_dvar_vector_der_nozero ( const dvar_vector_position tmp)

Description not yet available.

Parameters

Definition at line 185 of file cmpdif5.cpp.

Referenced by dv_minuseq(), dv_pluseq(), dv_xminuseq(), dv_xpluseq(), and restore_dvar_matrix_der_nozero().

dvector restore_dvar_vector_derivatives ( void  )
dvector restore_dvar_vector_derivatives ( const dvar_vector_position tmp)
dvar_vector_position restore_dvar_vector_position ( void  )

Description not yet available.

Parameters

Definition at line 65 of file cmpdif4.cpp.

dvector restore_dvar_vector_value ( const dvar_vector_position tmp)
dvector_position restore_dvector_position ( void  )

Description not yet available.

Parameters

Definition at line 84 of file cmpdif4.cpp.

dvector restore_dvector_value ( const dvector_position tmp)

Restores the size, address, and value information for a dvector.

Back up the stream and read the number of bytes written in the write function'' corresponding to thisread function''

Parameters
tmpTo get indexmin and indexmax
Returns
dvector

Definition at line 174 of file cmpdif4.cpp.

int restore_int_value ( void  )

Description not yet available.

Parameters

Definition at line 197 of file cmpdif8.cpp.

ivector_position restore_ivector_position ( )

Description not yet available.

Parameters

Definition at line 45 of file cmpdif4.cpp.

ivector restore_ivector_value ( const ivector_position tmp)

Description not yet available.

Parameters

Definition at line 198 of file cmpdif4.cpp.

Referenced by df_xdet(), df_xldet(), dfinvpret(), dmdv_solve(), and dv_subassign().

lmatrix_position restore_lmatrix_position ( void  )
lmatrix restore_lmatrix_value ( const lmatrix_position )
void* restore_pointer_value ( void  )

Description not yet available.

Parameters

Definition at line 212 of file cmpdif8.cpp.

double restore_prevariable_derivative ( const prevariable_position _pos)

Description not yet available.

Parameters

Definition at line 131 of file cmpdif8.cpp.

Referenced by DF_vdble_dv_diveq(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), and funnel_derivatives().

double restore_prevariable_derivative ( )

Description not yet available.

Parameters

Definition at line 143 of file cmpdif8.cpp.

prevariable_position restore_prevariable_position ( )

Description not yet available.

Parameters

Definition at line 39 of file cmpdif8.cpp.

double restore_prevariable_value ( void  )

Description not yet available.

Parameters

Definition at line 164 of file cmpdif8.cpp.

hs_smatrix* return_choleski_decomp ( dcompressed_triplet st)

Definition at line 2636 of file hs_sparse.cpp.

Referenced by calculate_importance_sample_shess().

dvar_hs_smatrix* return_choleski_decomp ( dvar_compressed_triplet st)

Definition at line 2653 of file hs_sparse.cpp.

dvector return_choleski_decomp_solve ( dcompressed_triplet dct,
dvector eps 
)

Definition at line 2670 of file hs_sparse.cpp.

dvector return_choleski_factor_solve ( hs_smatrix *  PL,
dvector eps 
)

Definition at line 2693 of file hs_sparse.cpp.

Referenced by calculate_importance_sample_shess().

dvar_vector return_choleski_factor_solve ( dvar_hs_smatrix *  PL,
dvector eps 
)

Definition at line 2710 of file hs_sparse.cpp.

double robust_normal_logistic_mixture_deviate ( double  x,
double  spread 
)

Description not yet available.

Parameters

Definition at line 118 of file cnorlogmix.cpp.

double robust_normal_mixture_deviate ( double  x,
double  spread 
)

Description not yet available.

Parameters

Definition at line 130 of file cnorlogmix.cpp.

dvariable robust_normal_mixture_deviate ( const prevariable x,
double  spread 
)

Description not yet available.

Parameters

Definition at line 28 of file vnorlogmix.cpp.

dvariable robust_regression ( const dvector obs,
const dvar_vector pred,
const double  a 
)

Description not yet available.

Parameters

Definition at line 58 of file newreg2.cpp.

dvariable robust_regression ( const dvector obs,
const dvar_vector pred,
const dvariable a 
)

Description not yet available.

Parameters

Definition at line 17 of file newreg2.cpp.

dvariable robust_regression_fixed ( const dvector obs,
const dvar_vector pred,
double  a = 0.7 
)
dvector row ( const dmatrix matrix,
int  i 
)

Returns a copied row for matrix at i.

Note: i must be a valid row.

Parameters
matrixdmatrix
irow index

Definition at line 24 of file dmat6.cpp.

Referenced by laplace_approximation_calculator::check_sparse_matrix_structure(), and extract_row().

dvar_vector row ( const dvar_matrix m,
int  j 
)

Description not yet available.

Parameters

Definition at line 27 of file fvar_ar7.cpp.

dmatrix row_vector ( const dvector )

Returns dvar_matrix with a single row using values from v.

Definition at line 24 of file dvect13.cpp.

dvar_matrix row_vector ( const dvar_vector )

Returns dvar_matrix with a single row using values from v.

Definition at line 52 of file dvect13.cpp.

dvar_vector rowsum ( const dvar_matrix v)

Description not yet available.

Parameters

Definition at line 40 of file fvar_a31.cpp.

dvector rowsum ( const dmatrix matrix)

Returns dvector where each element contains the sum total of each row in matrix.

Parameters
matrixdmatrix

Definition at line 61 of file dvect12.cpp.

Referenced by expm().

ivector rowsum ( const imatrix matrix)

Returns integer vector rowsums where each element is the sum of the ith row in matrix.

Parameters
matriximatrix

Definition at line 46 of file imat8.cpp.

void save_ad_pointer ( void *  p)

Description not yet available.

Parameters

Definition at line 226 of file cmpdif3.cpp.

Referenced by varchol().

void save_dmatrix_derivatives ( const dvar_matrix_position _pos,
const double  x,
const int &  i,
int &  j 
)

Description not yet available.

Parameters

Definition at line 265 of file cmpdif5.cpp.

Referenced by df_xdet(), df_xldet(), dfinvpret(), and dmdv_solve().

void save_double_derivative ( const double  x,
const prevariable_position _pos 
)
void save_double_value ( double  x)

Description not yet available.

Parameters

Definition at line 90 of file cmpdif8.cpp.

void save_int_value ( int  x)

Description not yet available.

Parameters

Definition at line 104 of file cmpdif8.cpp.

void save_pointer_value ( void *  ptr)

Description not yet available.

Parameters

Definition at line 118 of file cmpdif8.cpp.

void send_dv3_to_master ( const dvar3_array v)
void set_gradstack_flag ( char *  _str,
int  i,
int  j 
)

Description not yet available.

Parameters

Definition at line 109 of file cmpdif3.cpp.

void set_gradstack_flag ( char *  str)

Description not yet available.

Parameters

Definition at line 82 of file cmpdif3.cpp.

void set_value ( const dvar_matrix x,
const dvar_vector v,
const int &  _ii,
double  s 
)
void set_value ( const dvar_matrix x,
const dvar_vector v,
const int &  ii,
double  fmin,
double  fmax,
const dvariable fpen,
double  s 
)

Description not yet available.

Parameters

Definition at line 272 of file set.cpp.

void set_value ( const dvar_vector _x,
const dvar_vector v,
const int &  _ii,
double  s 
)

Description not yet available.

Parameters

Definition at line 128 of file set.cpp.

void set_value ( const dvar_vector _x,
const dvar_vector v,
const int &  _ii,
double  fmin,
double  fmax,
const dvariable fpen,
double  s 
)

Description not yet available.

Parameters

Definition at line 169 of file set.cpp.

void set_value ( const prevariable _x,
const dvar_vector v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 19 of file set.cpp.

void set_value ( const prevariable _x,
const dvar_vector v,
const int &  _ii,
double  s 
)

Description not yet available.

Parameters

Definition at line 30 of file set.cpp.

void set_value ( const dvar_vector x,
const dvar_vector v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 110 of file set.cpp.

void set_value ( const prevariable _x,
const dvar_vector v,
const int &  _ii,
double  fmin,
double  fmax,
const dvariable _fpen,
double  s 
)

Description not yet available.

Parameters

Definition at line 54 of file set.cpp.

void set_value ( const prevariable _u,
const dvar_vector x,
const int &  _ii,
const double  fmin,
const double  fmax,
const dvariable _fpen 
)

Description not yet available.

Parameters

Definition at line 79 of file set.cpp.

void set_value ( const dvar_vector x,
const dvar_vector v,
const int &  _ii,
double  fmin,
double  fmax,
const dvariable fpen 
)

Description not yet available.

Parameters

Definition at line 148 of file set.cpp.

void set_value ( const dvar_matrix x,
const dvar_vector v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 217 of file set.cpp.

void set_value ( const dvar_matrix x,
const dvar_vector v,
const int &  ii,
const double  fmin,
const double  fmax,
const dvariable fpen 
)

Description not yet available.

Parameters

Definition at line 254 of file set.cpp.

void set_value ( dvar3_array x,
const dvar_vector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 374 of file set.cpp.

void set_value ( dvar3_array x,
const dvar_vector v,
const int &  ii,
const double  fmin,
const double  fmax,
const dvariable fpen 
)

Description not yet available.

Parameters

Definition at line 290 of file set.cpp.

void set_value_exp ( const prevariable _x,
const dvar_vector v,
const int &  _ii,
double  fmin,
double  fmax,
const dvariable fpen,
double  s 
)
void set_value_inv ( const dvar_matrix x,
const dvector v,
const int &  ii,
double  s 
)
void set_value_inv ( const dvar_matrix x,
const dvector v,
const int &  ii,
double  fmin,
double  fmax,
double  s 
)

Description not yet available.

Parameters

Definition at line 450 of file setin.cpp.

void set_value_inv ( const dvar_vector x,
const dvector _v,
const int &  _ii,
double  s 
)

Description not yet available.

Parameters

Definition at line 374 of file setin.cpp.

void set_value_inv ( const dvar_vector x,
const dvector _v,
const int &  _ii,
double  fmin,
double  fmax,
double  s 
)

Description not yet available.

Parameters

Definition at line 337 of file setin.cpp.

void set_value_inv ( const dvar_matrix x,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 394 of file setin.cpp.

void set_value_inv ( const prevariable x,
const dvector _v,
const int &  _ii,
double  s 
)

Description not yet available.

Parameters

Definition at line 42 of file set.cpp.

void set_value_inv ( const prevariable x,
const dvector _v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 295 of file setin.cpp.

void set_value_inv ( const dvar_matrix x,
const dvector v,
const int &  ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 431 of file setin.cpp.

void set_value_inv ( const dvar3_array x,
const dvector v,
const int &  ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 487 of file setin.cpp.

void set_value_inv ( const dvar3_array x,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 469 of file setin.cpp.

void set_value_inv ( const double  x,
const dvector _v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 17 of file setin.cpp.

void set_value_inv ( const prevariable x,
const dvector _v,
const int &  _ii,
double  fmin,
double  fmax,
double  s 
)

Description not yet available.

Parameters

Definition at line 67 of file set.cpp.

void set_value_inv ( const prevariable u,
const dvector _x,
const int &  _ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 40 of file setin.cpp.

void set_value_inv ( const double  u,
const dvector _x,
const int &  _ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 28 of file setin.cpp.

void set_value_inv ( const dvector x,
const dvector _v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 52 of file setin.cpp.

void set_value_inv ( const dvar_vector x,
const dvector _v,
const int &  _ii 
)

Description not yet available.

Parameters

Definition at line 318 of file setin.cpp.

void set_value_inv ( const dvar_vector x,
const dvector _v,
const int &  _ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 101 of file setin.cpp.

void set_value_inv ( const dvector x,
const dvector _v,
const int &  _ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 84 of file setin.cpp.

void set_value_inv ( const dmatrix x,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 118 of file setin.cpp.

void set_value_inv ( const dmatrix x,
const dvector v,
const int &  ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 136 of file setin.cpp.

void set_value_inv ( const d3_array x,
const dvector v,
const int &  ii 
)

Description not yet available.

Parameters

Definition at line 155 of file setin.cpp.

void set_value_inv ( const d3_array x,
const dvector v,
const int &  ii,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 173 of file setin.cpp.

void set_value_inv_exp ( const prevariable x,
const dvector _v,
const int &  _ii,
double  fmin,
double  fmax,
double  s 
)
void set_value_inv_partial ( const dvector x,
const dvector _v,
const int &  _ii,
int  n 
)

Description not yet available.

Parameters

Definition at line 192 of file setin.cpp.

Referenced by set_value_inv_partial().

void set_value_inv_partial ( const dvector x,
const dvector _v,
const int &  _ii,
int  n,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 214 of file setin.cpp.

void set_value_inv_partial ( const dmatrix x,
const dvector v,
const int &  ii,
int  n 
)
void set_value_inv_partial ( const dvar_matrix x,
const dvector _v,
const int &  _ii,
int  n 
)

Description not yet available.

Parameters

Definition at line 236 of file setin.cpp.

void set_value_inv_partial ( const d3_array x,
const dvector v,
const int &  ii,
int  n 
)
void set_value_inv_partial ( const dvar_vector x,
const dvector _v,
const int &  _ii,
int  n 
)

Description not yet available.

Parameters

Definition at line 251 of file setin.cpp.

void set_value_inv_partial ( const dvar_vector x,
const dvector _v,
const int &  _ii,
int  n,
const double  fmin,
const double  fmax 
)

Description not yet available.

Parameters

Definition at line 273 of file setin.cpp.

void set_value_partial ( const dvar_vector x,
const dvar_vector v,
const int &  _ii,
int  n 
)

Description not yet available.

Parameters

Definition at line 323 of file set.cpp.

Referenced by set_value_partial().

void set_value_partial ( const dvar_vector x,
const dvar_vector v,
const int &  _ii,
int  n,
const double  fmin,
const double  fmax,
const dvariable fpen 
)

Description not yet available.

Parameters

Definition at line 348 of file set.cpp.

void set_value_partial ( const dvar_matrix x,
const dvar_vector v,
const int &  _ii,
int  n 
)

Description not yet available.

Parameters

Definition at line 308 of file set.cpp.

void set_value_partial ( dvar3_array x,
const dvar_vector v,
const int &  ii,
int  n 
)
ostream& setfixed ( const ostream &  s)
prefixed setfixed ( void  )

Description not yet available.

Parameters

Definition at line 59 of file admanip.cpp.

Referenced by function_minimizer::sd_routine().

ostream& setscientific ( const ostream &  s)
prescientific setscientific ( void  )
preshowpoint setshowpoint ( void  )

Description not yet available.

Parameters

Definition at line 38 of file admanip.cpp.

Referenced by laplace_approximation_calculator::do_newton_raphson_banded(), function_minimizer::hess_inv(), and initial_params::save().

double sfabs ( const double  v1)

Description not yet available.

Parameters

Definition at line 20 of file dvect14.cpp.

Referenced by bessj(), function_minimizer::hess_routine_noparallel_random_effects(), and sfabs().

dvector sfabs ( const dvector t1)

Description not yet available.

Parameters

Definition at line 54 of file dvect14.cpp.

double sgamma ( double  a,
const random_number_generator _rng 
)

Description not yet available.

Parameters

Definition at line 44 of file drangam.cpp.

Referenced by randnegbinomial(), and sgamma().

ivector sgn ( const dvector v)
ivector sgn ( const dvar_vector variables)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns vector of signs from variables. -1 for negative number and zero, 1 for positive.

Parameters
variablesdvar_vector

Definition at line 13 of file fvar_a58.cpp.

double sigmoid ( const double  v1)

Returns computed sigmoid value at v1.

Parameters
v1value
Returns
computed sigmoid value

Definition at line 31 of file dvar.cpp.

dvector sin ( const dvector vec)

Returns dvector with sine for each value of vec.

Parameters
vecarray of floating values

Definition at line 21 of file dvect6.cpp.

dvar_vector sin ( const dvar_vector v1)

Computes sin of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 67 of file fvar_a29.cpp.

dmatrix sin ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 146 of file dmat20.cpp.

dvar_matrix sin ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 258 of file fvar_m27.cpp.

d3_array sin ( const d3_array arr3)

Returns d3_array results with computed sin from elements in arr3.

Parameters
arr3d3_array

Definition at line 43 of file d3arr2a.cpp.

Referenced by bessj0(), bessj1(), bessy0(), bessy1(), boundp(), cmvbvu_(), cos(), DF_dvcos(), gammln(), mvbvu_(), nsin(), sin(), and tan().

dvar3_array sin ( const dvar3_array m)

Computes sin of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 90 of file f3arr2.cpp.

sing_val_decomp singval_decomp ( const dmatrix _a)

Singular value decomposition.

param _a

Definition at line 71 of file dmat42.cpp.

dvector sinh ( const dvector vec)

Returns dvector with hyperbolic sine for each value of vec.

Parameters
vecarray of floating values

Definition at line 84 of file dvect6.cpp.

Referenced by cosh(), and sinh().

dvar_vector sinh ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 42 of file fvar_ar8.cpp.

unsigned int size_count ( const dvar_vector x)

Returns size of dvar_vector x.

Parameters
xdvar_vector

Definition at line 14 of file size.cpp.

unsigned int size_count ( const dvar_matrix x)

Returns size of dvar_matrix x.

Parameters
xdvar_matrix

Definition at line 36 of file size.cpp.

unsigned int size_count ( const dvar3_array x)

Returns size of dvar3_array x.

Parameters
xdvar3_array

Definition at line 82 of file size.cpp.

unsigned int size_count ( const dvar4_array x)

Returns size of dvar4_array x.

Parameters
xdvar4_array

Definition at line 104 of file size.cpp.

unsigned int size_count ( const dvector x)
unsigned int size_count ( const dmatrix x)

Returns total size of elements in matrix x.

Parameters
xmatrix

Definition at line 35 of file dsize.cpp.

unsigned int size_count ( const d3_array x)

Returns total size of elements in d3_array x.

Parameters
xmatrix

Definition at line 69 of file dsize.cpp.

unsigned int size_count ( const d4_array x)

Returns size of d4_array x.

Parameters
xd4_array

Definition at line 126 of file size.cpp.

int size_count_partial ( const dvar_vector x,
int  n 
)

Description not yet available.

Parameters

Definition at line 23 of file size.cpp.

int size_count_partial ( const dvar_matrix x,
int  n 
)

Description not yet available.

Parameters

Definition at line 58 of file size.cpp.

int size_count_partial ( const dvar3_array x,
int  n 
)

Description not yet available.

Parameters

Definition at line 148 of file size.cpp.

int size_count_partial ( const dvector x,
int  n 
)

Description not yet available.

Parameters

Definition at line 26 of file dsize.cpp.

Referenced by size_count_partial().

int size_count_partial ( const dmatrix x,
int  n 
)

Description not yet available.

Parameters

Definition at line 53 of file dsize.cpp.

int size_count_partial ( const d3_array x,
int  n 
)

Description not yet available.

Parameters

Definition at line 87 of file dsize.cpp.

void slave_gradcalc ( void  )
int smbfct_ ( int *  neqns,
ivector xadj,
ivector adjncy,
ivector perm,
ivector invp,
ivector xlnz,
int *  maxlnz,
ivector xnzsub,
ivector nzsub,
int *  maxsub,
ivector rchlnk,
ivector mrglnk,
ivector marker,
int *  flag__ 
)
dvar_vector solve ( const dvar_matrix aa,
const dvar_vector z 
)

Solve a linear system using LU decomposition.

Parameters
aaA dvar_matrix containing LU decomposition of input matrix. $a$.
zA dvar_vector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
Returns
A dvar_vector containing solution vector $X$.

Definition at line 37 of file fvar_m24.cpp.

dvar_vector solve ( const dvar_matrix aa,
const dvar_vector z,
prevariable ln_unsigned_det,
const prevariable _sign 
)

Solve a linear system using LU decomposition.

Parameters
aaA dvar_matrix containing LU decomposition of input matrix. $a$.
zA dvar_vector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
_ln_unsigned_deg
sign
Returns
A dvar_vector containing solution vector $X$.

The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 56 of file fvar_m24.cpp.

dvector solve ( const dmatrix aa,
const dvector z 
)
dvector solve ( const dmatrix aa,
const dvector z,
const double &  _ln_unsigned_det,
double &  sign 
)

Solve a linear system using LU decomposition.

Parameters
aaA dmatrix containing LU decomposition of input matrix. $a$.
zA dvector containing the RHS, $b$ of the linear equation $A\cdot X = B$, to be solved.
_ln_unsigned_deg
sign
Returns
A dvector containing solution vector $X$.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2

Definition at line 66 of file dmat34.cpp.

dvar_matrix solve ( const dvar_matrix aa,
const dvar_matrix zz 
)

Definition at line 39 of file linad99/expm.cpp.

dmatrix solve ( const banded_symmetric_dmatrix m,
const dmatrix n 
)

Description not yet available.

Parameters

Definition at line 69 of file dmat37.cpp.

dmatrix solve ( const dmatrix m,
const dmatrix M 
)

/param aa /param tz

Definition at line 36 of file dmat38.cpp.

dvector solve ( const banded_symmetric_dmatrix m,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 38 of file dmat37.cpp.

dvar_vector solve ( const banded_lower_triangular_dvar_matrix m,
const dvar_vector v 
)

Description not yet available.

Parameters

Definition at line 18 of file fvar_m41.cpp.

dvector solve ( const banded_lower_triangular_dmatrix m,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 79 of file dmat37.cpp.

dvector solve ( const lower_triangular_dmatrix m,
const dvector v 
)

Description not yet available.

Parameters

Definition at line 30 of file dmat36.cpp.

dvector solve ( const dcompressed_triplet ,
const dmatrix ,
const dvector  
)
dvector solve ( const dcompressed_triplet ,
const dvector ,
const hs_symbolic ,
int &  ierr 
)

Definition at line 2820 of file hs_sparse.cpp.

dvector solve ( const dcompressed_triplet ,
const dvector ,
const hs_symbolic  
)

Definition at line 2793 of file hs_sparse.cpp.

dvector solve ( const dcompressed_triplet ,
const dmatrix ,
const dvector ,
const hs_symbolic  
)
dvector solve_trans ( const banded_lower_triangular_dmatrix M,
const dvector y 
)

Description not yet available.

Parameters

Definition at line 108 of file dmat37.cpp.

dvector solve_trans ( const lower_triangular_dmatrix M,
const dvector y 
)
dvar_vector solve_trans ( const banded_lower_triangular_dvar_matrix M,
const dvector y 
)

Description not yet available.

Parameters

Definition at line 17 of file fvar_m52.cpp.

dvar_vector sort ( const dvar_vector ,
int  NSTACK = 60 
)
dvector sort ( const dvector v,
int  NSTACK 
)

Quicksort.

Parameters
vA dvector to be sorted.
NSTACKNot used.
Returns
dvector object containing the input vector sorted in ascending order.



Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html

Parameters
vVector of doubles to be sorted
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
dvector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 40 of file dvsort.cpp.

ivector sort ( const ivector v,
int  NSTACK 
)

Quicksort.

Parameters
vVector of integers to be sorted
NSTACKNot used.
Returns
ivector object containing the input vector sorted in ascending order.



Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html

Parameters
vVector of integers to be sorted
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
ivector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 40 of file ivsort.cpp.

dvector sort ( const dvector _v,
const ivector _index,
int  NSTACK 
)

Quicksort.

Parameters
_vA dvector to be sorted.
_indexivector on return containing the input order of the original vector.
NSTACKNot used.
Returns
ivector object containing the input vector sorted in ascending order.



Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html

Parameters
_vVector to be sorted
_indexivector on return containing the input order of the origian vector.
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
dvector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 79 of file dvsort.cpp.

ivector sort ( const ivector _v,
const ivector _index,
int  NSTACK 
)

Quicksort.

Parameters
_vVector of integers to be sorted
_indexivector on return containing the input order of the original vector.
NSTACKNot used.
Returns
ivector object containing the input vector sorted in ascending order.



Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html

Parameters
_vVector of integers to be sorted
_indexivector on return containing the input order of the origian vector.
NSTACKLenth of intermediate storage vector. Default is NSTACK = 60.
Returns
ivector object containing the input vector sorted in ascending order.



The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 8

Definition at line 78 of file ivsort.cpp.

dmatrix sort ( const dmatrix m,
int  column,
int  NSTACK 
)
imatrix sort ( const imatrix m,
int  col,
int  NSTACK 
)

Description not yet available.

Parameters

Definition at line 17 of file imsort.cpp.

void spdll_exit ( int  )

Definition at line 55 of file gradstrc.cpp.

Referenced by do_dll_housekeeping().

dvector sqr ( const dvector vec)

Returns dvector with the square of each element in vec.

Parameters
vecscalar vector

Definition at line 301 of file dvect6.cpp.

dvar_vector sqr ( const dvar_vector v1)

Computes square of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 442 of file fvar_a29.cpp.

dmatrix sqr ( const dmatrix m)

Returns dmatrix with each of element in m is squared.

Parameters
mdmatrix

Definition at line 231 of file dmat20.cpp.

dvar_matrix sqr ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 324 of file fvar_m27.cpp.

d3_array sqr ( const d3_array arr3)

Returns d3_array with square values from arr3.

Parameters
arr3input values

Definition at line 25 of file d3arr2c.cpp.

Referenced by sqr().

dvar3_array sqr ( const dvar3_array m)

Computes square of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 144 of file f3arr2.cpp.

dvector sqrt ( const dvector vec)

Returns dvector with the square of each element in vec.

Parameters
vecscalar vector

Definition at line 287 of file dvect6.cpp.

dvar_vector sqrt ( const dvar_vector v1)

Computes sqrt of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 417 of file fvar_a29.cpp.

dmatrix sqrt ( const dmatrix m)

Returns dmatrix with each of element in m is square rooted.

Parameters
mdmatrix

Definition at line 211 of file dmat20.cpp.

dvar_matrix sqrt ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 302 of file fvar_m27.cpp.

d3_array sqrt ( const d3_array arr3)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns d3_array with square root values from arr3.

Parameters
arr3input values

Definition at line 11 of file d3arr2c.cpp.

Referenced by acos(), function_minimizer::adapt_eps(), asin(), atan2(), bessi(), bessi0(), bessi1(), bessj(), bessj0(), bessj1(), bessk0(), bessk1(), bessy0(), bessy1(), bounded_multivariate_normal(), bounded_multivariate_normal_mcmc(), function_minimizer::calculate_chd_and_inverse(), check_choleski_decomp(), chol(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), choleski_decomp_trust_bound(), cholnew(), cmvbvu_(), cs_amd(), cubic_interpolation(), cumd_cauchy(), tiny_ad::D_acos(), tiny_ad::D_asin(), dafsqrt(), density_cauchy(), DF_dvsqrt(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_banded(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), dfcholeski_sparse(), dmultinom(), gasdev(), gauss_hermite(), gauss_legendre(), laplace_approximation_calculator::generate_antithetical_rvs(), get_eigen(), get_eigen_values(), get_eigenv(), get_initial_u(), get_inverse_sparse_hessian(), function_minimizer::hess_routine_noparallel_random_effects(), imtqlx(), inv_cumd_cauchy(), inv_cumd_norm_inner(), inv_cumd_norm_ln(), inv_cumd_t(), kludge_cumd_cauchy(), lbfgs_(), ln_det_choleski(), ln_det_choleski_error(), log_density_cauchy(), lower_triangular_choleski_decomp_positive(), function_minimizer::mcmc_routine(), mcstep_(), function_minimizer::monte_carlo_routine(), multifan(), multivariate_mixture(), mvbvu_(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), nllLognormal(), nllNormal(), norm(), normalized_gauss_hermite(), orthpoly(), orthpoly_constant_begin(), orthpoly_constant_begin_end(), pearson_residuals(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), quiet_choleski_decomp(), randn(), randpoisson(), read_hessian_matrix_and_scale1(), dfsdmat::restore(), rgamma(), robust_regression(), function_minimizer::rwm_mcmc_routine(), save_number_of_local_effects(), function_minimizer::sd_routine(), sgamma(), sqrt(), sqrt_m32(), sqrt_m5(), sqrt_m52(), std_dev(), svd_mln(), svd_nlm(), tmpxchol1(), tri_dag(), tri_dagv(), var(), and varchol().

dvar3_array sqrt ( const dvar3_array m)

Computes square root of each element in m to a dvar3_array.

Parameters
mdvar3_array

Definition at line 126 of file f3arr2.cpp.

d4_array sqrt ( const d4_array darray)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns results in a d4_array with the computed square roots of the elements in darray.

Parameters
darrayd4_array

Definition at line 14 of file d4arr1.cpp.

dvar4_array sqrt ( const dvar4_array m)

Description not yet available.

Parameters

Definition at line 17 of file f4arr1.cpp.

d5_array sqrt ( const d5_array x)
dvar5_array sqrt ( const dvar5_array m)

Description not yet available.

Parameters

Definition at line 42 of file f5arr1.cpp.

dvariable& square ( const prevariable variable)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return the computed square of variable, then set gradient_structure.

Parameters
variableprevariable

Definition at line 12 of file fvar_op7.cpp.

dvar_vector square ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 19 of file fvar_a44.cpp.

dvar_matrix square ( const dvar_matrix matrix)

Return results of computing the square of variable matrix.

Parameters
matrixvariable matrix

Definition at line 29 of file fvar_op7.cpp.

dvar3_array square ( const dvar3_array vararr3)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns dvar3_array with squared values from each element in vararr3.

Parameters
vararr3values to square

Definition at line 13 of file f3arr6.cpp.

double std_dev ( const dvector vec)

Returns the computed standand deviation of vec.

Parameters
vecdvector

Definition at line 34 of file cranfill.cpp.

dvariable std_dev ( const dvar_vector v)

Description not yet available.

Parameters

Definition at line 44 of file fvar_a49.cpp.

int sub_unallocated ( const dvar_vector v)

Author: David Fournier Copyright (c) 2008-2017 Regents of the University of California.

Returns true if v was not allocated, otherwise false.

Parameters
vvariable vector

Definition at line 13 of file suballoc.cpp.

Referenced by sub_unallocated().

int sub_unallocated ( const dvar_matrix m)

Returns true if any of the sub vectors of matrix m was not allocated, otherwise false.

Parameters
mvariable dvar_matrix

Definition at line 23 of file suballoc.cpp.

int sub_unallocated ( const dvar3_array arr3)

Returns true if any of the sub vectors of arr3 was not allocated, otherwise false.

Parameters
arr3variable dvar3_array

Definition at line 47 of file suballoc.cpp.

int sub_unallocated ( const dvar4_array arr4)

Returns true if any of the sub vectors of arr4 was not allocated, otherwise false.

Parameters
arr4variable dvar4_array

Definition at line 71 of file suballoc.cpp.

int sub_unallocated ( const dvar5_array arr5)

Returns true if any of the sub vectors of arr5 was not allocated, otherwise false.

Parameters
arr5variable dvar5_array

Definition at line 95 of file suballoc.cpp.

int sub_unallocated ( const dvector v)

Returns true if v was not allocated, otherwise false.

Parameters
vvariable vector

Definition at line 119 of file suballoc.cpp.

int sub_unallocated ( const dmatrix m)

Returns true if any of the sub vectors of matrix m was not allocated, otherwise false.

Parameters
mdmatrix

Definition at line 129 of file suballoc.cpp.

int sub_unallocated ( const d3_array m)

Returns true if any of the sub vectors of arr3 was not allocated, otherwise false.

Parameters
arr3d3_array

Definition at line 153 of file suballoc.cpp.

int sub_unallocated ( const d4_array arr4)

Returns true if any of the sub vectors of arr4 was not allocated, otherwise false.

Parameters
arr4d4_array

Definition at line 177 of file suballoc.cpp.

int sub_unallocated ( const d5_array arr5)

Returns true if any of the sub vectors of arr5 was not allocated, otherwise false.

Parameters
arr5d5_array

Definition at line 201 of file suballoc.cpp.

int sub_unallocated ( const ivector v)

Returns true if v was not allocated, otherwise false.

Parameters
vvariable vector

Definition at line 225 of file suballoc.cpp.

int sub_unallocated ( const imatrix m)

Returns true if any of the sub vectors of matrix m was not allocated, otherwise false.

Parameters
mimatrix

Definition at line 235 of file suballoc.cpp.

int sub_unallocated ( const i3_array arr3)

Returns true if any of the sub vectors of arr3 was not allocated, otherwise false.

Parameters
arr3i3_array

Definition at line 259 of file suballoc.cpp.

int sub_unallocated ( const i4_array arr4)

Returns true if any of the sub vectors of arr4 was not allocated, otherwise false.

Parameters
arr4i4_array

Definition at line 283 of file suballoc.cpp.

int sub_unallocated ( const i5_array arr5)

Returns true if any of the sub vectors of arr5 was not allocated, otherwise false.

Parameters
arr5i5_array

Definition at line 307 of file suballoc.cpp.

AD_LONG_INT sum ( const lvector )
double sum ( const dvector values)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return the total sum of the elements in values.

Parameters
valuesdvector

Definition at line 12 of file dvect12.cpp.

int sum ( const ivector v)

Return integer sum of all the elements in ivector v.

Parameters
vinteger vector

Definition at line 23 of file ivect6.cpp.

int sum ( const imatrix matrix)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return total sum of the values in matrix.

Parameters
matriximatrix

Definition at line 13 of file imat7.cpp.

double sum ( const dmatrix matrix)

Return total sum of all elements in matrix.

Parameters
matrixdmatrix

Definition at line 83 of file dvect12.cpp.

double sum ( const d3_array darray)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return total sum of the elements in darray.

Parameters
darrayd3_array

Definition at line 21 of file d3arr.cpp.

Referenced by function_minimizer::adamoeba(), ageLengthKey(), ALK(), bessj(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), colsum(), det(), dgamma(), dlnorm(), dmultinom(), dmvlogistic(), dnorm(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), dstudent_t(), dv_xminuseq(), dv_xpluseq(), ivector::fill_multinomial(), dvector::fill_multinomial(), lvector::fill_multinomial(), get_ft(), function_minimizer::get_hybrid_monte_carlo_value(), gser(), inv(), function_minimizer::likeprof_routine(), ln_det(), logitProp(), lower_triangular_solve_trans(), lubksb(), ludcmp(), ludcmp_det(), ludcmp_index(), mean(), multifan(), neff(), nllBeta(), nllBinomial(), nllDirichlet(), nllGamma(), nllInverseGamma(), nllLognormal(), nllLognormal2(), nllMultiNomial(), nllNegativeBinomial(), nllPoisson(), norm2(), normalize_p(), function_minimizer::nuts_mcmc_routine(), operator*(), orthpoly(), orthpoly_constant_begin(), orthpoly_constant_begin_end(), padsum(), pearson_residuals(), print_hist_data(), function_minimizer::pvm_master_get_monte_carlo_value(), rdirichlet(), rmvlogistic(), robust_regression(), function_minimizer::rotate_gradient(), rowsum(), function_minimizer::sd_routine(), solve(), solve_trans(), sum(), trace(), function_minimizer::trapzd(), and unique().

double sum ( const d4_array darray)

Return the sum total of all the elements in darray.

Parameters
arrayd4_array

Definition at line 45 of file d4arr.cpp.

double sum ( const d5_array darray)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Return total sum of darray.

Parameters
darrayd5_array

Definition at line 17 of file d5arr.cpp.

double sum ( const d6_array darray)

Return total sum of darray.

Parameters
darrayd6_array

Definition at line 227 of file d6arr.cpp.

double sum ( const d7_array darray)

Return total sum of darray.

Parameters
darrayd7_array

Definition at line 39 of file d7arr1.cpp.

dvariable sum ( const dvar3_array m)

Description not yet available.

Parameters

Definition at line 115 of file f3arr1.cpp.

dvariable sum ( const dvar4_array m)

Description not yet available.

Parameters

Definition at line 101 of file f4arr1.cpp.

dvariable sum ( const dvar5_array m)

Description not yet available.

Parameters

Definition at line 17 of file f5arr1.cpp.

dvariable sum ( const dvar6_array m)

Description not yet available.

Parameters

Definition at line 128 of file f6arr1.cpp.

dvariable sum ( const dvar7_array m)

Description not yet available.

Parameters

Definition at line 102 of file f7arr1.cpp.

double sumsq ( const d3_array )

Definition at line 181 of file d3arr2a.cpp.

dvariable sumsq ( const dvar3_array m)

Definition at line 47 of file f3arr2.cpp.

double sumsq ( const banded_symmetric_dmatrix B)

Definition at line 721 of file fvar_m40.cpp.

int sumsq ( const ivector ivec)

Returns the sum of the squares of all elements in ivec.

Parameters
ivecivector

Definition at line 368 of file ivector.cpp.

dmatrix symmetrize ( const dmatrix matrix)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns symmetric matrix by averaging the elements upper and lower triangles in matrix. So, results(i, j) and results(j, i) are equal to (matrix(i, j) + matrix(j, i)) / 2. Note: Requires that matrix is square.

Parameters
mdmatrix

Definition at line 14 of file dmat12.cpp.

Referenced by eigenvalues(), eigenvectors(), and function_minimizer::random_effects_maximization().

dvar_matrix symmetrize ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 107 of file fvar_m30.cpp.

dmatrix symmetrize ( const lower_triangular_dmatrix T)

Description not yet available.

Parameters

Definition at line 58 of file dmat36.cpp.

dvector tan ( const dvector vec)

Returns dvector with tangent for each value of vec.

Parameters
vecarray of floating values

Definition at line 63 of file dvect6.cpp.

dvar_vector tan ( const dvar_vector v1)

Computes tan of each element in v1 to a dvar_vector.

Parameters
v1dvar_vector

Definition at line 315 of file fvar_a29.cpp.

dmatrix tan ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 102 of file dmat20.cpp.

dvar_matrix tan ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 214 of file fvar_m27.cpp.

d3_array tan ( const d3_array arr3)

Returns d3_array results with computed tan from elements in arr3.

Parameters
arr3d3_array

Definition at line 73 of file d3arr2a.cpp.

Referenced by AD_df1_tan(), AD_df2_tan(), AD_df3_tan(), dftinv(), param_init_bounded_vector::get_jacobian(), inv_cumd_cauchy(), randpoisson(), set_value_inv_mc(), tan(), and tan_address().

dvar3_array tan ( const dvar3_array m)

Description not yet available.

Parameters

Definition at line 162 of file f3arr2.cpp.

dvector tanh ( const dvector vec)

Returns dvector with hyperbolic tangent for each value of vec.

Parameters
vecarray of floating values

Definition at line 126 of file dvect6.cpp.

Referenced by tanh().

dvar_vector tanh ( const dvar_vector v1)

Description not yet available.

Parameters

Definition at line 77 of file fvar_ar8.cpp.

dvar_matrix tensor_prod ( const dvar_matrix a,
const dvar_matrix b 
)

The tensor product of two dvar_matrixes.

Parameters
afirst dvar_matrix
bsecond dvar_matrix
Returns
c a dvar_matrix of the tensor product.

Calcuates the tensor product of a and b. $ C = A \otimes B $

Definition at line 24 of file tensprod.cpp.

void tracing_message ( int  _traceflag,
const char *  s 
)

Description not yet available.

Parameters

Definition at line 94 of file newfmin.cpp.

Referenced by function_minimizer::computations(), function_minimizer::computations1(), fmm::fmin(), and function_minimizer::minimize().

void tracing_message ( int  _traceflag,
const char *  s,
int *  pn 
)

Description not yet available.

Parameters

Definition at line 109 of file newfmin.cpp.

void tracing_message ( int  _traceflag,
const char *  s,
double *  pd 
)

Description not yet available.

Parameters

Definition at line 124 of file newfmin.cpp.

void tracing_message ( int  _traceflag,
const char *  s,
double  d 
)

Description not yet available.

Parameters

Definition at line 139 of file newfmin.cpp.

imatrix trans ( const imatrix m1)

Description not yet available.

Parameters

Definition at line 32 of file imat3.cpp.

dvar_matrix use_shape ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 73 of file fvar_m27.cpp.

Referenced by cos(), elem_div(), elem_prod(), exp(), log(), operator*(), operator+(), operator-(), pow(), sin(), sqr(), sqrt(), and tan().

dmatrix use_shape ( const dmatrix m)

Description not yet available.

Parameters

Definition at line 99 of file fvar_m27.cpp.

double& value ( const prevariable v1)
inline

Definition at line 1495 of file fvar.hpp.

dmatrix value ( const dvar_matrix m)

Description not yet available.

Parameters

Definition at line 22 of file fvar_m13.cpp.

d3_array value ( const dvar3_array arr3)

Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.

Returns d3_array with scalar values of variable arr3 array.

Parameters
arr3

Definition at line 13 of file f3arr3.cpp.

Description not yet available.

Parameters

Definition at line 114 of file fvar_m40.cpp.

double var ( const dvector vec)
dvariable var ( const dvar_vector v)

Description not yet available.

Parameters

Definition at line 28 of file fvar_a49.cpp.

dvector VEC ( const dmatrix _m)

The VEC operator concatenates the columns of matrix M into a column vector.

Parameters
matrixM

Definition at line 17 of file dmat29.cpp.

dvar_vector VEC ( const dvar_matrix _m)

The VEC operator concatenates the columns of matrix M into a column vector.

Parameters
matrixM

Definition at line 17 of file fvar_m43.cpp.

pre_zero_print zero_print ( const dvector v)

Description not yet available.

Parameters

Definition at line 62 of file dvect23.cpp.

Variable Documentation

exitptr ad_exit

Definition at line 53 of file gradstrc.cpp.

Referenced by ad_comm::ad_comm(), ad_dstar::ad_dstar(), ad_read_pass1(), ad_read_pass1_der_values(), ad_read_pass1_eq(), ad_read_pass1_initialize(), ad_read_pass1_minus_eq(), ad_read_pass1_plus_eq(), ad_read_pass1x(), ad_read_pass2(), ad_read_pass2_dvdv(), ad_read_pass2_dvdvdv(), ad_read_pass2_minus(), ad_read_pass2_minuscv(), ad_read_pass2_minusvc(), ad_read_pass2_prod(), ad_read_pass2_prod_vector(), ad_read_pass2_prodc1(), ad_read_pass2_prodc2(), ad_read_pass2_sum(), ad_read_pass2_sumc(), ad_read_write_tilde_values(), stddev_params::add_to_gui_list(), initial_df1b2params::add_to_list(), quadratic_prior::add_to_list(), df1b2quadratic_prior::add_to_list(), stddev_params::add_to_list(), adnewhandler(), adpool::adpool(), adstring::adstring(), dfpool::alloc(), adpool::alloc(), factor::allocate(), param_init_bounded_number_matrix::allocate(), adstring::allocate(), df3_one_vector::allocate(), df1_one_vector::allocate(), df1_two_vector::allocate(), df1_three_vector::allocate(), imatrix::allocate(), funnel_init_df1b2variable::allocate(), ivector::allocate(), df3_three_vector::allocate(), dvector::allocate(), df3_two_vector::allocate(), adstring_array::allocate(), init_df1b2vector::allocate(), test_smartlist::allocate(), ptr_vector::allocate(), fixed_smartlist::allocate(), lvector::allocate(), fixed_smartlist2::allocate(), adlist_ptr::allocate(), df1b2vector::allocate(), param_init_vector::allocate(), df1b2matrix::allocate(), param_init_bounded_vector::allocate(), df1b23array::allocate(), param_init_number::allocate(), param_init_bounded_number::allocate(), param_init_matrix::allocate(), df1b2_init_number_vector::allocate(), df1b2_init_bounded_number_vector::allocate(), quadratic_prior::allocate(), dvar_vector::allocate(), dvar_matrix::allocate(), param_init_vector_vector::allocate(), param_init_bounded_vector_vector::allocate(), param_init_matrix_vector::allocate(), param_init_bounded_matrix_vector::allocate(), dmatrix::allocate(), param_init_number_vector::allocate(), param_init_bounded_number_vector::allocate(), d3_array::allocate(), i3_array::allocate(), dvar3_array::allocate(), d4_array::allocate(), dvar4_array::allocate(), i4_array::allocate(), i5_array::allocate(), d5_array::allocate(), dvar5_array::allocate(), d6_array::allocate(), dvar6_array::allocate(), d7_array::allocate(), dvar7_array::allocate(), lmatrix::allocate(), ad_comm::allocate(), funnel_init_var::allocate_all(), laplace_approximation_calculator::allocate_block_diagonal_stuff(), allocate_dvariable_space(), arr_list::arr_new(), arr_list::arr_remove(), atan2(), laplace_approximation_calculator::banded_calculations(), banded_symmetric_dmatrix::banded_symmetric_dmatrix(), betacf(), calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_importance_sample_block_diagonal_funnel(), calculate_importance_sample_block_diagonal_option2(), calculate_importance_sample_block_diagonal_option_antithetical(), calculate_importance_sample_funnel(), calculate_importance_sample_shess(), calculate_laplace_approximation(), ad_comm::change_datafile_name(), ad_comm::change_pinfile_name(), test_smartlist::check_buffer_size(), fixed_smartlist::check_buffer_size(), fixed_smartlist2::check_buffer_size(), check_datafile_pointer(), laplace_approximation_calculator::check_derivatives(), laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_hessian_type2(), laplace_approximation_calculator::check_pool_size(), gradient_structure::check_set_error(), check_shape(), checkidentiferstring(), choleski_decomp(), choleski_decomp_error(), function_minimizer::choleski_decomp_hmc(), choleski_decomp_neghess_error(), choleski_decomp_positive(), colsum(), column(), function_minimizer::computations1(), grad_stack::create_gradfile(), laplace_approximation_calculator::default_calculations(), funnel_init_var::delete_from_list(), density_negbinomial(), derch(), det(), df1_one_matrix::df1_one_matrix(), df1_three_matrix::df1_three_matrix(), df1_two_matrix::df1_two_matrix(), df1b2_header_ptr_vector::df1b2_header_ptr_vector(), df3_one_matrix::df3_one_matrix(), df3_three_matrix::df3_three_matrix(), df3_two_matrix::df3_two_matrix(), df_check_derivative_values(), df_check_derivative_values_indexed(), df_check_derivative_values_indexed_break(), DF_FILE::DF_FILE(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfcholeski_sparse(), diagonal(), dlist::dlist(), dmatrix::dmatrix(), dmultinom(), dnorm(), do_dll_housekeeping(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), laplace_approximation_calculator::do_newton_raphson_banded(), laplace_approximation_calculator::do_separable_stuff(), laplace_approximation_calculator::do_separable_stuff_hessian_type_information(), laplace_approximation_calculator::do_separable_stuff_laplace_approximation_banded_adjoint(), laplace_approximation_calculator::do_separable_stuff_newton_raphson_banded(), dot(), double_ptr_vector::double_ptr_vector(), dvar_matrix::dvar_matrix(), dvar_vector::dvar_vector(), dvector::dvector(), eigenvalues(), eigenvectors(), imatrix::elem(), i3_array::elem(), i4_array::elem(), i5_array::elem(), d6_array::elem(), d7_array::elem(), elem_div(), elem_prod(), admb::messages::error(), expm(), extract_column(), extract_diagonal(), extract_row(), fill(), dvector::fill(), dvar_vector::fill(), dvar_matrix::fill(), dmatrix::fill(), dvector::fill_randbi(), dvar_vector::fill_randbi(), dvector::fill_randbi_ni(), dvar_vector::fill_randbi_ni(), function_minimizer::find_reasonable_stepsize(), first_difference(), fmm::fmin(), fmmt1::fmin(), fmmt1::fmin2(), adpool::free(), funnel_gradcalc(), funnel_init_df1b2variable::funnel_init_df1b2variable(), gauss_hermite(), gauss_hermite_stuff::gauss_hermite_stuff(), gauss_legendre(), laplace_approximation_calculator::generate_antithetical_rvs(), function_minimizer::get_bigS(), quadratic_prior::get_cgradient(), quadratic_prior::get_cHessian(), quadratic_prior::get_cHessian_contribution(), quadratic_prior::get_cHessian_from_vHessian(), get_eigen(), get_eigen_values(), get_eigenv(), laplace_approximation_calculator::get_hessian_components_banded_lme(), laplace_approximation_calculator::get_hessian_from_components_lme(), function_minimizer::get_hybrid_monte_carlo_value(), get_initial_u(), shareinfo::get_inv_matrix_shared(), shareinfo::get_inv_vector_shared(), param_init_d3array::get_jacobian(), df1b2quadratic_prior::get_Lxu(), get_second_ders(), quadratic_prior::get_vHessian(), ghk_test(), grad_stack::grad_stack(), gradcalc(), gradient_structure::gradcalc(), gradient_structure::gradient_structure(), gradnew(), dfpool::grow(), adpool::grow(), function_minimizer::hess_inv(), function_minimizer::hess_routine(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::hess_routine_random_effects(), function_minimizer::hess_step(), function_minimizer::hybrid_mcmc_routine(), imatrix::imatrix(), imtqlx(), df1b2variable::increment_adpool_counter(), grad_stack::increment_current_gradfile_ptr(), init_df1_one_variable::init_df1_one_variable(), init_df1_three_variable::init_df1_three_variable(), init_df1_two_variable::init_df1_two_variable(), init_df3_three_variable::init_df3_three_variable(), init_df3_two_variable::init_df3_two_variable(), dvar_vector::initialize(), inv(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_norm_inner(), inv_cumd_norm_logistic(), gradient_structure::jacobcalc(), laplace_approximation_calculator::laplace_approximation_calculator(), function_minimizer::limited_memory_quasi_newton_block(), lmatrix::lmatrix(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), ln_normal_tail_left(), ln_normal_tail_right(), log_comb(), log_density_negbinomial(), log_negbinomial_density(), lower_triangular_choleski_decomp_positive(), lower_triangular_solve(), lower_triangular_solve_trans(), lubksb(), lvector::lvector(), gradient_structure::make_indvar_list(), function_minimizer::mcmc_routine(), mean(), memcpy(), memory_allocate_error(), function_minimizer::minimize(), function_minimizer::monte_carlo_routine(), negbinomial_density(), df1b2vector::noallocate(), nograd_assign_column(), nograd_assign_row(), function_minimizer::nuts_mcmc_routine(), old_inv_cumd_beta_stable(), double_index_guts::operator double(), index_guts::operator int(), vector_shape::operator new(), arr_link::operator new(), adstring::operator()(), adstring_array::operator()(), vcubic_spline_function_array::operator()(), laplace_approximation_calculator::operator()(), ptr_vector::operator()(), dvar_vector_position::operator()(), operator*(), operator+(), ivector::operator+=(), dvector::operator+=(), test_smartlist::operator+=(), fixed_smartlist::operator+=(), fixed_smartlist2::operator+=(), df1b2matrix::operator+=(), dvar_vector::operator+=(), dvar_matrix::operator+=(), dmatrix::operator+=(), operator-(), fixed_smartlist::operator--(), fixed_smartlist2::operator--(), dvector::operator-=(), test_smartlist::operator-=(), fixed_smartlist::operator-=(), fixed_smartlist2::operator-=(), df1b2matrix::operator-=(), dvar_vector::operator-=(), dvar_matrix::operator-=(), dmatrix::operator-=(), operator<<(), imatrix::operator=(), funnel_dependent_df1b2variable::operator=(), ivector::operator=(), dvector::operator=(), df1b2vector::operator=(), df1b2matrix::operator=(), quadratic_prior::operator=(), independent_variables::operator=(), df1b2quadratic_prior::operator=(), dvar_vector::operator=(), dvar_matrix::operator=(), dmatrix::operator=(), d3_array::operator=(), i3_array::operator=(), dvar3_array::operator=(), d4_array::operator=(), dvar4_array::operator=(), d5_array::operator=(), dvar5_array::operator=(), d6_array::operator=(), dvar6_array::operator=(), d7_array::operator=(), dvar7_array::operator=(), lmatrix::operator=(), banded_symmetric_dmatrix::operator=(), banded_lower_triangular_dmatrix::operator=(), operator>>(), adstring::operator[](), adstring_array::operator[](), ptr_vector::operator[](), polint(), function_minimizer::prof_minimize_re(), param_init_d3array::pvm_pack(), function_minimizer::pvm_slave_likeprof_routine(), param_init_d3array::pvm_unpack(), function_minimizer::quasi_newton_block(), randnegbinomial(), test_smartlist::read_buffer(), fixed_smartlist::read_buffer(), fixed_smartlist2::read_buffer(), DF_FILE::read_cmpdif_stack_buffer(), read_covariance_matrix(), dvar_matrix::read_from(), dmatrix::read_from(), grad_stack::read_grad_stack_buffer(), read_hessian_matrix_and_scale(), read_hessian_matrix_and_scale1(), function_minimizer::read_mle_hmc(), read_old_scale(), reorder(), df1b2variable::restore_adpool_pointer(), initial_df1b2params::restore_varsptr(), gradient_structure::RETURN_ARRAYS_DECREMENT(), gradient_structure::RETURN_ARRAYS_INCREMENT(), fixed_smartlist::rewind(), fixed_smartlist2::rewind(), function_minimizer::rotate_gradient(), function_minimizer::rotate_pars(), function_minimizer::rwm_mcmc_routine(), ivector::safe_allocate(), dvector::safe_allocate(), dvector::safe_deallocate(), ivector::safe_deallocate(), dfsdmat::save(), df1b2variable::save_adpool_pointer(), gradient_structure::save_dependent_variable_position(), save_dmatrix_derivatives(), save_number_of_local_effects(), initial_df1b2params::save_varsptr(), function_minimizer::sd_routine(), gradient_structure::set_ARRAY_MEMBLOCK_SIZE(), param_init_vector_vector::set_scalefactor(), param_init_bounded_vector_vector::set_scalefactor(), param_init_matrix_vector::set_scalefactor(), param_init_bounded_matrix_vector::set_scalefactor(), param_init_number_vector::set_scalefactor(), param_init_bounded_number_vector::set_scalefactor(), funnel_init_df1b2variable::set_value(), param_init_vector::set_value_inv(), initial_params::setshare(), param_init_vector::setshare(), param_init_matrix::setshare(), param_init_d3array::setshare(), shape_check(), initial_params::shared_set_value(), initial_params::shared_set_value_inv(), initial_params::shared_size_count(), function_minimizer::shmc_mcmc_routine(), singval_decomp(), smartlist::smartlist(), Sn(), solve(), solve_trans(), admb_deprecated::sort(), sort(), sqrt(), string_parser::string_parser(), symmetrize(), tmpxchol1(), trace(), tri_dag(), tri_dagv(), function_minimizer::trust_region_update(), function_minimizer::user_d2frandeff(), function_minimizer::user_dfrandeff(), function_minimizer::user_randeff(), verify_identifier_string(), test_smartlist::write(), fixed_smartlist::write(), fixed_smartlist2::write(), test_smartlist::write_buffer(), fixed_smartlist::write_buffer(), fixed_smartlist2::write_buffer(), fixed_smartlist::write_buffer_one_less(), fixed_smartlist2::write_buffer_one_less(), DF_FILE::write_cmpdif_stack_buffer(), grad_stack::write_grad_stack_buffer(), dvar_matrix::write_on(), dmatrix::write_on(), df1b2_gradlist::write_pass1_prod(), funnel_init_df1b2variable::xinit(), dvector::~dvector(), gradient_structure::~gradient_structure(), init_df3_three_variable::~init_df3_three_variable(), and ptr_vector::~ptr_vector().

int ad_kill_flag
int just_to_link_fvar1