ADMB Documentation
-a65f1c97
|
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... | |
prevariable & | bounded_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... | |
prevariable & | cube (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) |
prevariable & | cumd_norm (const prevariable &x) |
Culative normal distribution; variable objects. More... | |
prevariable & | cumd_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 . More... | |
double | factln (double n) |
Log-factorial . 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_int * | gradnew () |
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... | |
uostream & | operator<< (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... | |
uostream & | operator<< (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... | |
uostream & | operator<< (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... | |
uostream & | operator<< (const uostream &ostr, const ivector &z) |
Write values to output. More... | |
ostream & | operator<< (const ostream &ostr, const lvector &z) |
Description not yet available. More... | |
uostream & | operator<< (const uostream &ostr, const lvector &z) |
Description not yet available. More... | |
ostream & | operator<< (const ostream &ostr, const dvector &z) |
Description not yet available. More... | |
uostream & | operator<< (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... | |
uostream & | operator<< (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... | |
uostream & | operator<< (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... | |
uostream & | operator<< (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... | |
prevariable & | operator<< (const prevariable &v1, const prevariable &v2) |
Description not yet available. More... | |
dvar_vector & | operator<< (const dvar_vector &v1, const dvar_vector &v2) |
Description not yet available. More... | |
dvar_matrix & | operator<< (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... | |
uostream & | operator<< (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (const uistream &istr, const lvector &z) |
Description not yet available. More... | |
istream & | operator>> (const istream &istr, const dvector &z) |
Description not yet available. More... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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... | |
uistream & | operator>> (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) |
uistream & | operator>> (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 and sets a penalty for . More... | |
double | posfun (const double &x, const double eps, const double &_pen) |
Retuns a positive function of the argument and sets a penalty for . More... | |
dvariable | posfun2 (const dvariable &x, const double eps, const prevariable &pen) |
Retuns a positive function of the argument and sets a penalty for . More... | |
double | posfun2 (const double &x, const double eps, const double &_pen) |
Retuns a positive function of the argument and sets a penalty for . 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... | |
dvariable & | square (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 |
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:
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.
#define AD_LONG_INT long int |
Definition at line 81 of file fvar.hpp.
Referenced by lvector::allocate(), colsum(), lvector::fill_seqadd(), lvector::initialize(), lvector::lvector(), dvector::operator()(), dvar_vector::operator()(), and lvector::read_from().
#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.
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 | |||
) |
#define END_MINIMIZATION | ( | nvar, | |
gradient | |||
) |
#define LSEEK lseek |
Definition at line 75 of file fvar.hpp.
Referenced by default_evaluation3ind(), default_evaluation4ind(), DF_FILE::fread(), gradient_structure::funnel_gradcalc(), gradient_structure::gradcalc(), gradient_structure::jacobcalc(), DF_FILE::read_cmpdif_stack_buffer(), grad_stack::read_grad_stack_buffer(), reset_gradient_stack(), dfsdmat::restore(), gradient_structure::restore_arrays(), dfsdmat::save(), gradient_structure::save_arrays(), gradient_structure::save_dependent_variable_position(), grad_stack::write_grad_stack_buffer(), DF_FILE::~DF_FILE(), and grad_stack::~grad_stack().
#define M_PI 3.14159265358979323846 |
Definition at line 92 of file fvar.hpp.
Referenced by dlnorm(), dnorm(), multifan(), nllLognormal(), nllLognormal2(), nllNormal(), and nllNormal2().
#define O_BINARY 0 |
Definition at line 163 of file fvar.hpp.
Referenced by test_smartlist::allocate(), fixed_smartlist::allocate(), fixed_smartlist2::allocate(), grad_stack::create_gradfile(), DF_FILE::DF_FILE(), dfsdmat::save(), and smartlist::smartlist().
#define OFF_T off_t |
Definition at line 74 of file fvar.hpp.
Referenced by default_evaluation3ind(), default_evaluation4ind(), DF_FILE::DF_FILE(), DF_FILE::fread(), gradient_structure::funnel_gradcalc(), DF_FILE::fwrite(), gradient_structure::gradcalc(), gradient_structure::jacobcalc(), DF_FILE::read_cmpdif_stack_buffer(), grad_stack::read_grad_stack_buffer(), DF_FILE::write_cmpdif_stack_buffer(), grad_stack::write_grad_stack_buffer(), DF_FILE::~DF_FILE(), and grad_stack::~grad_stack().
#define PI M_PI |
Definition at line 95 of file fvar.hpp.
Referenced by bounded_multivariate_normal(), bounded_multivariate_normal_mcmc(), calculate_laplace_approximation(), cumd_cauchy(), density_cauchy(), dfatan1(), dftinv(), param_init_bounded_vector::get_jacobian(), inv_cumd_cauchy(), kludge_cumd_cauchy(), log_density_cauchy(), multivariate_mixture(), new_probing_bounded_multivariate_normal(), new_probing_bounded_multivariate_normal_mcmc(), probing_bounded_multivariate_normal(), probing_bounded_multivariate_normal_mcmc(), randn(), randpoisson(), robust_regression(), set_value_inv_mc(), and set_value_mc().
#define READ read |
Definition at line 76 of file fvar.hpp.
Referenced by DF_FILE::read_cmpdif_stack_buffer().
#define WRITE write |
Definition at line 77 of file fvar.hpp.
Referenced by DF_FILE::write_cmpdif_stack_buffer().
Returns dvector with principal value of the arc cosine of vec, expressed in radians.
vec | scalar vector |
Definition at line 244 of file dvect6.cpp.
Referenced by acos().
dvar_vector acos | ( | const dvar_vector & | v1 | ) |
void ad_begin_funnel | ( | void | ) |
Description not yet available.
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.
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.
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().
int ad_printf | ( | FILE * | stream, |
const char * | format, | ||
Args... | args | ||
) |
Definition at line 9487 of file fvar.hpp.
Referenced by ad_comm::ad_comm(), boundpin(), grad_stack::create_gradfile(), derch(), DF_FILE::DF_FILE(), dftinv(), fmm::fmin(), fmmt1::fmin(), fmmc::fmin(), get_option_number(), function_minimizer::limited_memory_quasi_newton(), gradient_structure::make_indvar_list(), onintr(), operator*(), function_minimizer::random_effects_maximization(), and spdll_exit().
int ad_printf | ( | const char * | format, |
Args... | args | ||
) |
void ad_set_new_handler | ( | void | ) |
|
inline |
|
inline |
Definition at line 8979 of file fvar.hpp.
Referenced by calculate_importance_sample(), calculate_laplace_approximation(), check_choleski_decomp(), choleski_decomp(), choleski_decomp_positive(), dfbltsolve(), dfcholeski_decomp_banded(), dfcholeski_decomp_banded_positive(), banded_symmetric_dmatrix::operator=(), and solve().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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.
ivec | ivector |
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.
lvec | lvector |
Definition at line 22 of file fvar_a59.cpp.
int allocated | ( | const dvector & | dvec | ) |
Returns true if lvector is allocated, otherwise false.
lvec | lvector |
Definition at line 31 of file fvar_a59.cpp.
int allocated | ( | const dvar_vector & | variables | ) |
Returns true if variables is allocated, otherwise false.
variables | dvar_vector |
Definition at line 40 of file fvar_a59.cpp.
int allocated | ( | const imatrix & | imat | ) |
Returns true if imat is allocated, otherwise false.
imat | imatrix |
Definition at line 49 of file fvar_a59.cpp.
int allocated | ( | const dmatrix & | dmat | ) |
Returns true if dmat is allocated, otherwise false.
dmat | dmatrix |
Definition at line 58 of file fvar_a59.cpp.
int allocated | ( | const dvar_matrix & | vmat | ) |
Returns true if vmat is allocated, otherwise false.
vmat | dvar_matrix |
Definition at line 67 of file fvar_a59.cpp.
int allocated | ( | const i3_array & | iarr3 | ) |
Returns true if iarr3 is allocated, otherwise false.
iarr3 | i3_array |
Definition at line 76 of file fvar_a59.cpp.
int allocated | ( | const d3_array & | arr3 | ) |
Returns true if arr3 is allocated, otherwise false.
arr3 | d3_array |
Definition at line 85 of file fvar_a59.cpp.
int allocated | ( | const dvar3_array & | varr3 | ) |
Returns true if varr3 is allocated, otherwise false.
varr3 | dvar3_array |
Definition at line 94 of file fvar_a59.cpp.
int allocated | ( | const i4_array & | iarr4 | ) |
Returns true if iarr4 is allocated, otherwise false.
iarr4 | i4_array |
Definition at line 103 of file fvar_a59.cpp.
int allocated | ( | const d4_array & | arr4 | ) |
Returns true if arr4 is allocated, otherwise false.
arr4 | d4_array |
Definition at line 112 of file fvar_a59.cpp.
int allocated | ( | const dvar4_array & | varr4 | ) |
Returns true if varr4 is allocated, otherwise false.
varr4 | dvar4_array |
Definition at line 121 of file fvar_a59.cpp.
int allocated | ( | const i5_array & | iarr5 | ) |
Returns true if iarr5 is allocated, otherwise false.
iarr5 | i5_array |
Definition at line 139 of file fvar_a59.cpp.
int allocated | ( | const d5_array & | arr5 | ) |
Returns true if arr5 is allocated, otherwise false.
arr5 | d5_array |
Definition at line 130 of file fvar_a59.cpp.
int allocated | ( | const dvar5_array & | varr5 | ) |
Returns true if varr5 is allocated, otherwise false.
varr5 | dvar5_array |
Definition at line 148 of file fvar_a59.cpp.
int allocated | ( | const d6_array & | arr6 | ) |
Returns true if arr6 is allocated, otherwise false.
arr6 | d6_array |
Definition at line 157 of file fvar_a59.cpp.
int allocated | ( | const dvar6_array & | varr6 | ) |
Returns true if varr6 is allocated, otherwise false.
varr6 | dvar6_array |
Definition at line 166 of file fvar_a59.cpp.
int allocated | ( | const d7_array & | arr7 | ) |
Returns true if arr7 is allocated, otherwise false.
arr7 | d7_array |
Definition at line 175 of file fvar_a59.cpp.
int allocated | ( | const dvar7_array & | varr7 | ) |
Returns true if varr7 is allocated, otherwise false.
varr6 | dvar7_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 * | ) |
Definition at line 34 of file factors.cpp.
Returns dvector with principal value of the arc sine of vec, expressed in radians.
vec | scalar vector |
Definition at line 229 of file dvect6.cpp.
Referenced by asin(), boundpin(), cmvbvu_(), and mvbvu_().
dvar_vector asin | ( | const dvar_vector & | v1 | ) |
Returns dvector with principal value of the arc tangent of vec, expressed in radians.
vec | scalar 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.
v1 | dvar_vector |
Definition at line 366 of file fvar_a29.cpp.
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 | ||
) |
dvariable avg | ( | const prevariable & | x, |
const prevariable & | y | ||
) |
Definition at line 271 of file vbessel.cpp.
double besselI | ( | double | x, |
int | nu | ||
) |
Definition at line 267 of file cbessel.cpp.
Definition at line 296 of file vbessel.cpp.
double besselJ | ( | double | x, |
int | nu | ||
) |
Definition at line 292 of file cbessel.cpp.
Definition at line 283 of file vbessel.cpp.
double besselK | ( | double | x, |
int | nu | ||
) |
Definition at line 279 of file cbessel.cpp.
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 | ||
) |
double beta_deviate | ( | double | a, |
double | b, | ||
double | x, | ||
double | eps | ||
) |
double betacf | ( | const double | a, |
const double | b, | ||
double | x, | ||
int | maxit = 100 |
||
) |
Definition at line 11 of file cbetacf.cpp.
Definition at line 12 of file vbetacf.cpp.
Incomplete beta function for variable objects.
a | |
b | |
x | |
maxit | Maximum number of iterations for the continued fraction approximation in betacf. |
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.
Author: David Fournier Copyright (c) 2009, 2010 ADMB Foundation
a | |
b | |
x | |
maxit | Maximum number of iterations for the continued fraction approximation in betacf. |
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 | ||
) |
double bounded_cumd_norm | ( | const double | x, |
double | beta | ||
) |
Description not yet available.
Definition at line 119 of file cumdist.cpp.
Referenced by norm_to_gamma().
double bounder | ( | double | x, |
double | min, | ||
double | max, | ||
double | scale | ||
) |
dvariable bounder | ( | const prevariable & | x, |
double | min, | ||
double | max, | ||
double | scale | ||
) |
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).
x | Model variable |
fmin | Lower bound of x |
fmin | Upper bound of x |
_fpen | On return, contains penalty if x > fmax or x < fmin |
Definition at line 310 of file boundfun.cpp.
double boundp | ( | double | x, |
double | fmin, | ||
double | fmax | ||
) |
Return scaled variable to original units; constant objects.
x | Variable scaled between [-1,1] |
fmin | Lower bound of x |
fmin | Upper bound of x |
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.
x | Variable scaled between [-1,1] |
fmin | Lower bound of x |
fmin | Upper bound of x |
_fpen | On return, contains penalty if x > 1 or x < -1 |
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.
x | Variable scaled between [-1,1] |
fmin | Lower bound of x |
fmin | Upper bound of x |
_fpen | On return, contains penalty if x > 1 or x < -1 |
s | Divide x by s before scaling and setting bounds |
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)
x | Model variable |
fmin | Lower bound of x |
fmin | Upper bound of x |
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).
x | Model variable |
fmin | Lower bound of x |
fmin | Upper bound of x |
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).
x | Model variable |
fmin | Lower bound of x |
fmin | Upper bound of x |
s | Divide x by s before scaling and setting bounds |
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 | ) |
void check_derivative_values | ( | const char * | _s, |
int | i | ||
) |
void check_derivative_values_break | ( | const char * | _s, |
int | i, | ||
int | b | ||
) |
dvar_matrix choleski_decomp | ( | const dvar_matrix & | MM | ) |
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.
Description not yet available.
Definition at line 111 of file dmat15.cpp.
Referenced by choleski_solve_error().
Description not yet available.
Definition at line 176 of file dmat15.cpp.
Referenced by choleski_solve_neghess_error().
banded_lower_triangular_dvar_matrix choleski_decomp_positive | ( | const banded_symmetric_dvar_matrix & | MM, |
double | eps, | ||
dvariable & | _fpen | ||
) |
banded_lower_triangular_dmatrix choleski_decomp_trust_bound | ( | const banded_symmetric_dmatrix & | _M, |
const int & | _ierr | ||
) |
Description not yet available.
Definition at line 198 of file dmat37.cpp.
Referenced by laplace_approximation_calculator::default_calculations().
Description not yet available.
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;.
level | is the index of ivec |
Definition at line 377 of file ivector.cpp.
dvar_vector colsum | ( | const dvar_matrix & | v | ) |
Returns dvector where each element contains the sum total of each column in matrix.
matrix | dmatrix |
Definition at line 32 of file dvect12.cpp.
int colsum | ( | const imatrix & | matrix, |
int | column | ||
) |
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 | ||
) |
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 | ||
) |
pre_column_print column_print | ( | const dvector & | v | ) |
dvector column_value | ( | const dvar_matrix & | m, |
int | j | ||
) |
Description not yet available.
Definition at line 57 of file fvar_ar7.cpp.
Referenced by operator*().
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.
Returns dvector with cosine for each value of vec.
vec | array of floating values |
Definition at line 42 of file dvect6.cpp.
dvar_vector cos | ( | const dvar_vector & | v1 | ) |
dvar_matrix cos | ( | const dvar_matrix & | m | ) |
Returns d3_array results with computed cos from elements in arr3.
arr3 | d3_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.
m | dvar3_array |
Definition at line 108 of file f3arr2.cpp.
Returns dvector with hyperbolic cosine for each value of vec.
vec | array 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 | ) |
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.
Solve a linear system using LU decomposition.
Definition at line 32 of file dmat34.cpp.
Description not yet available.
Definition at line 17 of file d3arr5.cpp.
Referenced by AD_df3_atan(), AD_pow_222(), boundp(), cube(), exp(), gammlnguts(), inv(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), log(), posfun2(), set_derivatives(), and sqrt().
dvar_vector cube | ( | const dvar_vector & | v1 | ) |
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.
varmat | dvar_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.
varmat | dvar3_array input |
Definition at line 27 of file f3arr7.cpp.
Cumulative bivariate normal distribution.
Assumes two distributions X and Y both N(0,1).
x | Upper limit of inetegration on X. |
y | Upper limit of inetegration on Y |
rho | correlation coefficient. |
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).
xl | Lower limit of inetegration on X. |
yl | Lower limit of inetegration on Y. |
xu | Upper limit of inetegration on X. |
yu | Upper limit of inetegration on Y. |
rho | correlation coefficient. |
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 | ) |
dvariable cumd_cauchy | ( | const prevariable & | x | ) |
dvariable cumd_exponential | ( | const prevariable & | x | ) |
double cumd_exponential | ( | double | x | ) |
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.
Definition at line 13 of file ccumdlog.cpp.
Referenced by cumd_norm_logistic(), and ghk_choleski_m_logistic().
dvariable cumd_logistic | ( | const prevariable & | x | ) |
double cumd_norm | ( | const double & | x, |
double | |||
) |
prevariable& cumd_norm_logistic | ( | const prevariable & | _x, |
double | p | ||
) |
double cumd_norm_logistic | ( | double | _x, |
double | p | ||
) |
Description not yet available.
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 | ||
) |
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 | ||
) |
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.
Definition at line 61 of file def_eval.cpp.
Referenced by acos(), asin(), atan(), bounded_cumd_norm(), cos(), cosh(), cumd_norm(), exp(), fabs(), gammlnguts(), inv_cumd_gamma(), inv_cumd_norm_inner(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), ldexp(), log(), log10(), prevariable::operator*=(), operator/(), prevariable::operator/=(), pow(), sfabs(), sigmoid(), sin(), sinh(), sqrt(), tan(), and tanh().
void default_evaluation0 | ( | void | ) |
Description not yet available.
Definition at line 126 of file def_eval.cpp.
Referenced by dvariable::dvariable(), and prevariable::operator=().
void default_evaluation1 | ( | void | ) |
Description not yet available.
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.
Definition at line 110 of file def_eval.cpp.
Referenced by operator-().
void default_evaluation2 | ( | void | ) |
Description not yet available.
Definition at line 136 of file def_eval.cpp.
Referenced by cube(), fourth(), operator*(), and square().
void default_evaluation3 | ( | void | ) |
Description not yet available.
Definition at line 157 of file def_eval.cpp.
Referenced by operator*(), and operator/().
void default_evaluation3ind | ( | void | ) |
Description not yet available.
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.
Definition at line 251 of file def_eval.cpp.
Referenced by operator+().
void default_evaluation4ind | ( | void | ) |
void default_evaluation4m | ( | void | ) |
Description not yet available.
Definition at line 265 of file def_eval.cpp.
Referenced by operator-().
double density_cauchy | ( | const double & | x | ) |
void derch | ( | const double & | _f, |
const independent_variables & | _x, | ||
const dvector & | _gg, | ||
int | n, | ||
const int & | _ireturn | ||
) |
void derch | ( | const double & | _f, |
const dvector & | _x, | ||
const dvector & | _gg, | ||
int | n, | ||
const int & | _ireturn | ||
) |
Description not yet available.
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.
Definition at line 364 of file newdar.cpp.
Referenced by check_derivative_values().
void df_check_derivative_values_indexed | ( | void | ) |
Description not yet available.
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.
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.
x | Variable to be scaled |
fmin | Lower bound of x |
fmin | Upper bound of x |
_fpen | On return, contains penalty if x > fmax or x < fmin |
Definition at line 37 of file boundfun.cpp.
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)
x | Variable to be scaled |
fmin | Lower bound of x |
fmin | Upper bound of x |
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 | ||
) |
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)
x | Variable to be scaled |
fmin | Lower bound of x |
fmin | Upper bound of x |
Definition at line 66 of file boundfun.cpp.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return vector containing diagonal of a matrix.
matrix | dmatrix |
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().
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return vector diagonal of matrix.
matrix | imatrix |
Definition at line 12 of file imat10.cpp.
dvar_vector diagonal | ( | const dvar_matrix & | m | ) |
dvar_matrix diagonal_matrix | ( | const dvar_vector & | v | ) |
double dmax | ( | double | x, |
double | y | ||
) |
Returns the maximum of two numbers.
x | First number |
y | Second number |
Definition at line 505 of file boundfun.cpp.
void dmdm_prod | ( | void | ) |
Description not yet available.
Definition at line 126 of file fvar_m14.cpp.
Referenced by operator*().
double dmin | ( | double | x, |
double | y | ||
) |
Returns the minimum of two numbers.
x | First number |
y | Second number |
Definition at line 489 of file boundfun.cpp.
Description not yet available.
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.
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*().
dvar_vector eigenvalues | ( | const dvar_matrix & | m1 | ) |
Definition at line 17 of file dveigen.cpp.
dvector eigenvalues | ( | const banded_symmetric_dmatrix & | _SS | ) |
Description not yet available.
Definition at line 411 of file dmat28.cpp.
Referenced by calculate_laplace_approximation(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), laplace_approximation_calculator::do_newton_raphson_banded(), eigenvalues(), function_minimizer::hess_inv(), function_minimizer::mcmc_routine(), function_minimizer::random_effects_maximization(), read_hessian_matrix_and_scale(), function_minimizer::sd_routine(), function_minimizer::trust_region_update(), and write_empirical_covariance_matrix().
Eigenvectors.
Computes eigenvectors of a real square matrix. Input matrix is symmetrized.
m | Real square matrix. |
Definition at line 44 of file eigenv.cpp.
Eigenvectors.
Computes eigenvectors of a real square matrix. Input matrix is symmetrized.
m | Real square matrix. |
_diag |
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.
m | Real square matrix. |
_diag |
Definition at line 42 of file dveigenv.cpp.
dmatrix eigenvectors | ( | const banded_symmetric_dmatrix & | _SS, |
const dvector & | _e | ||
) |
Description not yet available.
Definition at line 442 of file dmat28.cpp.
Referenced by calculate_laplace_approximation(), choleski_decomp(), laplace_approximation_calculator::do_newton_raphson_banded(), eigenvectors(), function_minimizer::hess_inv(), and function_minimizer::random_effects_maximization().
dvar_matrix elem_div | ( | const dvar_matrix & | m, |
const dvar_matrix & | m2 | ||
) |
dvar_matrix elem_div | ( | const dvar_matrix & | m, |
const dmatrix & | m2 | ||
) |
dvar_matrix elem_div | ( | const dmatrix & | m, |
const dvar_matrix & | m2 | ||
) |
Returns d3_array results with computed elements division 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.
Definition at line 112 of file d3arr2a.cpp.
Referenced by laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), function_minimizer::dep_hess_routine(), dmultinom(), dnorm(), dstudent_t(), elem_div(), eplogis(), generalized_Ricker1(), generalized_Ricker2(), get_ft(), Hassell(), Hill(), HollingII(), HollingIII(), HollingIV(), function_minimizer::likeprof_routine(), logistic(), logistic3(), logisticK(), Michaelis_Menten1(), Michaelis_Menten2(), function_minimizer::monte_carlo_routine(), multifan(), pearson_residuals(), initial_params::reset1(), and Shepherd().
dvar3_array elem_div | ( | const dvar3_array & | m1, |
const dvar3_array & | m2 | ||
) |
dvar3_array elem_div | ( | const d3_array & | m1, |
const dvar3_array & | m2 | ||
) |
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).
m1 | left side variable array |
m2 | right side variable array |
Definition at line 42 of file f3arr9.cpp.
dvar_matrix elem_prod | ( | const dvar_matrix & | m, |
const dvar_matrix & | m2 | ||
) |
dvar_matrix elem_prod | ( | const dvar_matrix & | m, |
const dmatrix & | m2 | ||
) |
dvar_matrix elem_prod | ( | const dmatrix & | m, |
const dvar_matrix & | m2 | ||
) |
Returns d3_array results with computed elements product of a(i, j, k) * b(i, j, k).
a and b should be allocated and have the same dimensions.
Definition at line 92 of file d3arr2a.cpp.
Referenced by function_minimizer::add_sample_diag(), laplace_approximation_calculator::banded_calculations(), laplace_approximation_calculator::block_diagonal_calculations(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), dgamma(), dmultinom(), dnorm(), dstudent_t(), elem_prod(), generalized_Ricker1(), generalized_Ricker2(), get_ft(), get_solution_vector(), Gompertz(), Hassell(), Hill(), HollingII(), HollingIII(), HollingIV(), logistic(), logistic3(), logisticK(), Michaelis_Menten1(), Michaelis_Menten2(), monomolecular(), multifan(), neff(), nonrectangular_hyperbola(), normalized_gauss_hermite(), pearson_residuals(), Ricker(), Shepherd(), theta_logistic(), and initial_params::xinit1().
dvar3_array elem_prod | ( | const dvar3_array & | m1, |
const dvar3_array & | m2 | ||
) |
dvar3_array elem_prod | ( | const d3_array & | m1, |
const dvar3_array & | m2 | ||
) |
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).
m1 | left side variable array |
m2 | right side variable array |
Definition at line 20 of file f3arr9.cpp.
dvar_matrix empirical_covariance | ( | const dvar_matrix & | v1 | ) |
dvar_matrix empirical_covariance | ( | const dvar_matrix & | _v1, |
const imatrix & | _missflags | ||
) |
void exit_handler | ( | int | k | ) |
Description not yet available.
Definition at line 20 of file signalh.cpp.
Referenced by onintr(), and set_signal_handlers().
dvar_vector exp | ( | const dvar_vector & | v1 | ) |
dvar_matrix exp | ( | const dvar_matrix & | m | ) |
Returns d3_array results with computed exp from elements in arr3.
arr3 | d3_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.
m | dvar3_array |
Definition at line 54 of file f3arr2.cpp.
Returns results in a d4_array with the computed exponential of the elements in darray.
darray | d4_array |
Definition at line 30 of file d4arr1.cpp.
dvar4_array exp | ( | const dvar4_array & | m | ) |
dvar5_array exp | ( | const dvar5_array & | m | ) |
double expdev | ( | const random_number_generator & | _rng | ) |
Description not yet available.
Definition at line 311 of file drangam.cpp.
Referenced by sgamma().
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 | ||
) |
dvar_vector extract_row | ( | const dvar_matrix & | m, |
int | i | ||
) |
dvar3_array fabs | ( | const dvar3_array & | m | ) |
dvar_vector factln | ( | const dvar_vector & | r | ) |
void* farptr_norm | ( | void * | ) |
dmatrix fillout | ( | const lower_triangular_dmatrix & | M | ) |
dmatrix fillout_trans | ( | const lower_triangular_dmatrix & | M | ) |
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.
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 | ||
) |
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 | ) |
dvariable gammln | ( | const prevariable & | xx | ) |
double gasdev | ( | const random_number_generator & | _rng | ) |
Description not yet available.
Definition at line 292 of file drangam.cpp.
Referenced by sgamma().
Gauss-Hermite quadature.
Computes a Gauss-Hermite quadrature formula with simple knots.
_t | array of abscissa |
_wts | array of corresponding wights |
Definition at line 36 of file gaussher.cpp.
Referenced by normalized_gauss_hermite().
Gauss-Legendre quadature.
computes knots and weights of a Gauss-Legendre quadrature formula.
a | Left endpoint of interval |
b | Right endpoint of interval |
_t | array of abscissa |
_wts | array of corresponding wights |
Definition at line 148 of file gaussher.cpp.
Referenced by gauss_legendre().
Gauss-Legendre quadature.
_x | array of abscissa |
_w | array of corresponding wights |
Definition at line 331 of file gaussher.cpp.
Eigenvalues.
_d | Diagonal elements of the matrix computed by Householder transformation. |
_e | Off-diagonal elements. |
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 11
dvar_vector get_eigen_values | ( | const dvar_vector & | _ddd, |
const dvar_vector & | _eee | ||
) |
Eigenvalues and eigenvectors.
_d | Diagonal elements of the matrix computed by Householder transformation. |
_e | Off-diagonal elements. |
_z | On return containses eigenvectors. |
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.
Eigenvalues and eigenvectors.
_d | Diagonal elements of the matrix computed by Householder transformation. |
_e | Off-diagonal elements. |
_z | On return containses eigenvectors. |
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 11
std::ostream& get_output_stream | ( | ) |
Definition at line 45 of file adglobl.cpp.
Referenced by laplace_approximation_calculator::block_diagonal_calculations(), laplace_approximation_calculator::default_calculations(), function_minimizer::dep_hess_routine(), laplace_approximation_calculator::do_newton_raphson_banded(), laplace_approximation_calculator::do_newton_raphson_state_space(), evaluate_function(), fmm::fmin(), fmmdisp(), laplace_approximation_calculator::get_uhat_lm_newton2(), laplace_approximation_calculator::get_uhat_quasi_newton(), laplace_approximation_calculator::get_uhat_quasi_newton_block_diagonal(), hess_calcreport(), hess_errorreport(), function_minimizer::hess_inv(), function_minimizer::hess_routine_noparallel_random_effects(), function_minimizer::limited_memory_quasi_newton_block(), laplace_approximation_calculator::local_minimization(), laplace_approximation_calculator::local_minimization_routine(), ludcmp(), function_minimizer::minimize(), function_minimizer::quasi_newton_block(), function_minimizer::sd_routine(), and safe_choleski_solver::solve().
adstring get_string_marker | ( | void | ) |
Description not yet available.
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().
dvariable ghk | ( | const dvar_vector & | lower, |
const dvar_vector & | upper, | ||
const dvar_matrix & | Sigma, | ||
const dmatrix & | eps | ||
) |
dvariable ghk | ( | const dvar_vector & | lower, |
const dvar_vector & | upper, | ||
const dvar_matrix & | Sigma, | ||
const dmatrix & | eps, | ||
int | _i | ||
) |
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 | ||
) |
dvariable ghk_choleski_m_cauchy | ( | const dvar_vector & | upper, |
const dvar_matrix & | ch, | ||
const dmatrix & | eps | ||
) |
dvariable ghk_choleski_m_logistic | ( | const dvar_vector & | upper, |
const dvar_matrix & | ch, | ||
const dmatrix & | eps | ||
) |
void grad_chk | ( | void | ) |
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.
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.
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].
min | lower row and column index |
max | upper row and column index |
Definition at line 14 of file dmat17.cpp.
void insert_identifier_string | ( | const char * | _s | ) |
|
inline |
Inverse of a constant matrix by LU decomposition.
m1 | A dmatrix, , for which the inverse is to be computed. |
_ln_det | On return contains |
_sign |
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 | ) |
dvariable inv_cumd_cauchy | ( | const prevariable & | x | ) |
dvariable inv_cumd_exponential | ( | const prevariable & | y | ) |
double inv_cumd_exponential | ( | double | y | ) |
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.
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 | ) |
double inv_cumd_norm | ( | const double & | x | ) |
dvariable inv_cumd_norm | ( | const prevariable & | x | ) |
dvar_vector inv_cumd_norm | ( | const dvar_vector & | x | ) |
dvariable inv_cumd_norm_logistic | ( | const prevariable & | x, |
double | p | ||
) |
double inv_cumd_norm_logistic | ( | double | x, |
double | p | ||
) |
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 | ||
) |
dvariable inv_cumd_normal_mixture | ( | const prevariable & | _yy, |
double | a | ||
) |
double inv_cumd_normal_mixture | ( | double | yy, |
double | a | ||
) |
Description not yet available.
Definition at line 90 of file cnormmix.cpp.
Referenced by robust_normal_mixture_deviate().
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.
Definition at line 11 of file cinvcumdt.cpp.
Referenced by t_deviate().
dvariable inv_cumd_t | ( | const prevariable & | n, |
const prevariable & | u, | ||
double | eps | ||
) |
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 | ||
) |
Inverse logit function.
Definition at line 15 of file linad99/invlogit.cpp.
void jacobcalc | ( | int | nvar, |
const dmatrix & | jac | ||
) |
void jacobcalc | ( | int | nvar, |
const ofstream & | ofs | ||
) |
void jacobcalc | ( | int | nvar, |
const uostream & | ofs | ||
) |
dvariable kludge_cumd_cauchy | ( | const prevariable & | x | ) |
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 | ||
) |
dvariable ln_det | ( | dvar_compressed_triplet & | , |
hs_symbolic & | , | ||
laplace_approximation_calculator * | |||
) |
dvariable ln_det | ( | dvar_compressed_triplet & | ) |
Definition at line 2865 of file hs_sparse.cpp.
dvariable ln_det | ( | dvar_compressed_triplet & | , |
hs_symbolic & | |||
) |
Definition at line 2882 of file hs_sparse.cpp.
dvariable ln_det | ( | dvar_compressed_triplet & | , |
hs_symbolic & | , | ||
dcompressed_triplet & | |||
) |
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 | ||
) |
Definition at line 218 of file dmat38.cpp.
Referenced by laplace_approximation_calculator::banded_calculations(), 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_laplace_approximation(), do_gauss_hermite_block_diagonal(), and do_gauss_hermite_block_diagonal_multi().
dvariable ln_det_choleski | ( | const dvar_matrix & | MM | ) |
dvariable ln_det_choleski_error | ( | const dvar_matrix & | MM, |
int & | onerror | ||
) |
Description not yet available.
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 | ||
) |
dvar_vector log | ( | const dvar_vector & | v1 | ) |
dvar_matrix log | ( | const dvar_matrix & | m | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns d3_array results with computed log from elements in arr3.
arr3 | d3_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.
m | dvar3_array |
Definition at line 72 of file f3arr2.cpp.
Returns results in a d4_array with the computed log of the elements in darray.
darray | d4_array |
Definition at line 62 of file d4arr1.cpp.
dvar4_array log | ( | const dvar4_array & | m | ) |
dvar5_array log | ( | const dvar5_array & | m | ) |
Returns dvector with the common (base-10) logarithm of vec.
vec | scalar 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 | ) |
dvar_vector log_comb | ( | const dvar_vector & | n, |
const dvector & | r | ||
) |
dvar_vector log_comb | ( | const dvar_vector & | n, |
const dvar_vector & | r | ||
) |
dvar_vector log_comb | ( | const dvector & | n, |
const dvar_vector & | r | ||
) |
dvar_vector log_comb | ( | double | n, |
const dvar_vector & | r | ||
) |
dvar_vector log_comb | ( | const dvariable & | n, |
const dvector & | r | ||
) |
dvar_vector log_comb | ( | const dvariable & | n, |
const dvar_vector & | r | ||
) |
double log_density_cauchy | ( | const double & | x | ) |
dvariable log_der_logistic | ( | double | a, |
double | b, | ||
const prevariable & | x | ||
) |
double log_negbinomial_density | ( | double | x, |
double | mu, | ||
double | tau | ||
) |
Referenced by dnbinom_tau(), and nllNegativeBinomial2().
double logistic | ( | double | a, |
double | b, | ||
const double & | x | ||
) |
dvariable logistic | ( | double | a, |
double | b, | ||
const prevariable & | x | ||
) |
lower_triangular_dmatrix lower_triangular_choleski_decomp_positive | ( | const dmatrix & | MM, |
const int & | _ierr | ||
) |
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 | ) |
dvariable lower_triangular_ln_det | ( | const dvar_matrix & | m, |
int & | sgn | ||
) |
Description not yet available.
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 | ||
) |
Lu decomposition of a constant matrix.
_a | A dmatrix; replaced by the by its resulting LU decomposition |
_indx | An ivector containing the row permutations generated by partial pivoting |
_d | A 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 |
LU decomposition.
The implementation of this algorithm was inspired by "Numerical Recipes in C", 2nd edition, Press, Teukolsky, Vetterling, Flannery, chapter 2
dmatrix make_dmatrix | ( | dcompressed_triplet & | M | ) |
Definition at line 202 of file hs_sparse.cpp.
Referenced by laplace_approximation_calculator::do_newton_raphson_banded().
int make_sub_directory | ( | const char * | s | ) |
Create a sub directory s.
Definition at line 95 of file makesub.cpp.
Referenced by DF_FILE::DF_FILE(), and grad_stack::grad_stack().
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.
vector | v |
integer | n, the number of rows in the resulting matrix |
integer | m, 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.
vector | v |
integer | n, the number of rows in the resulting matrix |
integer | m, the umber of columns in the resulting matrix |
Definition at line 46 of file fvar_m43.cpp.
double max | ( | const dmatrix & | m | ) |
int max | ( | const imatrix & | M | ) |
double max | ( | const dvector & | vec | ) |
Returns the maximum value of vector vec.
Note: vec is an allocated vector.
vec | scalar vector |
Definition at line 85 of file dvect7.cpp.
int max | ( | const ivector & | ivec | ) |
Returns maximum value of all elements in ivec.
ivec | ivector |
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.
ivec | ivector |
Definition at line 12 of file ivect10.cpp.
unsigned long max | ( | unsigned long | u, |
unsigned long | v | ||
) |
double max | ( | const double | u, |
const double | v | ||
) |
int max | ( | int | i, |
int | j, | ||
int | k | ||
) |
double mean | ( | const dvector & | vec | ) |
Returns computed mean of vec.
vec | dvector |
Definition at line 43 of file cranfill.cpp.
Referenced by 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(), dmvlogistic(), ivector::fill_multinomial(), dvector::fill_multinomial(), lvector::fill_multinomial(), print_is_diagnostics(), rmvlogistic(), robust_regression(), param_init_bounded_dev_vector::set_value(), df1b2_init_bounded_dev_vector::set_value(), std_dev(), and var().
double mean | ( | const dmatrix & | m | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return computed mean of matrix m.
m | dmatrix |
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 | ||
) |
double mf_upper_bound | ( | const double & | x, |
double | M, | ||
prevariable & | fpen | ||
) |
Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1.
v1 | a data vector |
Definition at line 49 of file dvect19.cpp.
Safe version of exp that interpolates values greater than equal to 60 in each element of a vector v1.
v1 | a data vector |
d | macro for CGNU_DOUBLE |
Definition at line 20 of file dvect19.cpp.
dvar_vector mfexp | ( | const dvar_vector & | v1 | ) |
dvar_vector mfexp | ( | const dvar_vector & | v1, |
const double | d | ||
) |
dvar_matrix mfexp | ( | const dvar_matrix & | m | ) |
dvar_matrix mfexp | ( | const dvar_matrix & | m, |
const double | d | ||
) |
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().
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 | ) |
dvar3_array mfexp | ( | const dvar3_array & | m, |
const double | d | ||
) |
Returns results in a d4_array with the computed exponential of the elements in darray.
darray | d4_array |
Definition at line 46 of file d4arr1.cpp.
dvar4_array mfexp | ( | const dvar4_array & | m | ) |
dvar5_array mfexp | ( | const dvar5_array & | m | ) |
double min | ( | const dmatrix & | m | ) |
int min | ( | const ivector & | ivec | ) |
Returns minimum value of all elements in ivec.
ivec | ivector |
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.
a | An integer |
b | An integer |
Definition at line 31 of file fvar_m15.cpp.
unsigned long min | ( | unsigned long | u, |
unsigned long | v | ||
) |
double min | ( | const double | u, |
const double | v | ||
) |
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.
msg | Pointer 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.
x | Variable to be scaled |
fmin | Lower bound of x |
fmin | Upper bound of x |
_fpen | On return, contains penalty if x > fmax or x < fmin |
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 | ) |
dvariable nograd_assign | ( | double | tmp | ) |
dvar_vector nograd_assign | ( | dvector | tmp | ) |
Description not yet available.
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.
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 | ||
) |
dvar_matrix nograd_assign_trans | ( | const dmatrix & | m | ) |
double norm | ( | const d3_array & | a | ) |
Return computed norm value of a.
a | d3_array |
Definition at line 190 of file d3arr2a.cpp.
Referenced by do_interpolate(), laplace_approximation_calculator::do_newton_raphson_state_space(), fcomp1(), fmmt1::fmin2(), laplace_approximation_calculator::generate_antithetical_rvs(), function_minimizer::get_particular_grad(), function_minimizer::hess_inv(), function_minimizer::hess_routine_and_constraint(), function_minimizer::likeprof_routine(), laplace_approximation_calculator::lincg(), laplace_approximation_calculator::local_minimization_routine(), mylinmin(), orthpoly2(), function_minimizer::projected_hess_determinant(), read_hessian_matrix_and_scale1(), function_minimizer::sd_routine(), seldif_basis(), safe_choleski_solver::solve(), std_dev(), laplace_approximation_calculator::test_trust_region_method(), update1(), and var().
dvariable norm | ( | const dvar3_array & | m | ) |
double norm | ( | const banded_symmetric_dmatrix & | B | ) |
Definition at line 234 of file dmat38.cpp.
dvariable norm | ( | const banded_symmetric_dvar_matrix & | B | ) |
double norm2 | ( | const d3_array & | a | ) |
Return sum of squared elements in a.
a | d3_array |
Definition at line 167 of file d3arr2a.cpp.
Referenced by 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(), choleski_decomp_trust_bound(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), dlnorm(), dmvlogistic(), dnorm(), fcomp1(), function_minimizer::find_reasonable_stepsize(), fmmt1::fmin(), function_minimizer::hess_routine_and_constraint(), function_minimizer::hybrid_mcmc_routine(), laplace_approximation_calculator::lincg(), multifan(), neff(), nllLognormal(), nllLognormal2(), nllNormal(), nllNormal2(), norm(), norm2(), function_minimizer::nuts_mcmc_routine(), orthpoly(), orthpoly_constant_begin(), orthpoly_constant_begin_end(), regression(), function_minimizer::shmc_mcmc_routine(), and sumsq().
dvariable norm2 | ( | const dvar3_array & | m | ) |
double norm2 | ( | const banded_symmetric_dmatrix & | B | ) |
Definition at line 239 of file dmat38.cpp.
dvariable norm2 | ( | const banded_symmetric_dvar_matrix & | B | ) |
int norm2 | ( | const ivector & | ivec | ) |
Returns the sum of the squares of all elements in ivec.
ivec | ivector |
Definition at line 354 of file ivector.cpp.
dvariable norm_to_gamma | ( | const prevariable & | v, |
const prevariable & | alpha, | ||
double | bound | ||
) |
double norm_to_gamma | ( | double | v, |
double | alpha, | ||
double | bound | ||
) |
double normal_tail_right | ( | const double & | x | ) |
Gauss-Hermite quadature.
this is normlaized so that standard normal density integrates to 1
_x | array of abscissa |
_w | array 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 | ||
) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Concatenates dvector elements in a with b and return results.
a | scalar vector |
b | scalar 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.
a | variable vector |
b | variable vector |
Definition at line 42 of file dvect15.cpp.
dvar_vector operator* | ( | const dvar_vector & | t1, |
const double | x | ||
) |
dvar_vector operator* | ( | const dvar_vector & | t1, |
const prevariable & | x | ||
) |
dvar_vector operator* | ( | const dvector & | t1, |
const prevariable & | x | ||
) |
dvar_vector operator* | ( | const prevariable & | x, |
const dvector & | t1 | ||
) |
dvar_matrix operator* | ( | const prevariable & | x, |
const dmatrix & | m | ||
) |
dvar_matrix operator* | ( | const dvar_matrix & | m, |
const prevariable & | x | ||
) |
dvar_matrix operator* | ( | const prevariable & | x, |
const dvar_matrix & | m | ||
) |
dvar_matrix operator* | ( | const double | x, |
const dvar_matrix & | m | ||
) |
dvar_matrix operator* | ( | const dvar_matrix & | m, |
const double | x | ||
) |
Returns results of integer matrix multiplication (a x b).
a | imatrix |
b | imatrix |
Definition at line 80 of file imat10.cpp.
Returns d3_array results of multiplying elements in a with value a(i, j, k) * value.
a | d3_array |
Definition at line 264 of file d3arr2a.cpp.
Returns d3_array results of multiplying value by elements in a value * a(i, j, k).
a | d3_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 | ||
) |
dvar3_array operator* | ( | const dvariable & | d, |
const d3_array & | m2 | ||
) |
dvar3_array operator* | ( | const dvariable & | d, |
const dvar3_array & | m2 | ||
) |
dvar3_array operator* | ( | double | d, |
const dvar3_array & | m2 | ||
) |
dvar_vector operator+ | ( | const double | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator+ | ( | const dvar_vector & | t1, |
const double | x | ||
) |
dvar_vector operator+ | ( | const prevariable & | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator+ | ( | const dvar_vector & | t1, |
const prevariable & | x | ||
) |
dvar_matrix operator+ | ( | const dvariable & | x, |
const dmatrix & | m | ||
) |
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.
Definition at line 132 of file d3arr2a.cpp.
Returns d3_array results with subtracting elements in a to value a(i, j, k) + value.
a | d3_array |
Definition at line 232 of file d3arr2a.cpp.
Returns d3_array results with adding elements in a to value value + a(i, j, k).
a | d3_array |
Definition at line 200 of file d3arr2a.cpp.
dvar3_array operator+ | ( | const dvar3_array & | m1, |
const dvar3_array & | m2 | ||
) |
dvar3_array operator+ | ( | const d3_array & | m1, |
const dvar3_array & | m2 | ||
) |
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).
m1 | left side variable array |
m2 | right side variable array |
Definition at line 62 of file f3arr9.cpp.
dvar3_array operator+ | ( | const dvar3_array & | m1, |
const dvariable & | d | ||
) |
dvar3_array operator+ | ( | const dvariable & | d1, |
const dvar3_array & | m1 | ||
) |
dvar3_array operator+ | ( | const dvariable & | d, |
const d3_array & | m2 | ||
) |
Returns dvar3_array with each element equal to d + m2(i, j, k).
d | left side variable |
m2 | right side variable array |
Definition at line 102 of file f3arr9.cpp.
dvar3_array operator+ | ( | double | d, |
const dvar3_array & | m1 | ||
) |
dvar_vector operator- | ( | const double | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator- | ( | const dvar_vector & | t1, |
const double | x | ||
) |
Subtracts x from each element of t1 into a dvar_vector.
t1 | dvar_vector |
x | double |
Definition at line 19 of file fvar_a39.cpp.
dvar_vector operator- | ( | const dvar_vector & | t1 | ) |
dvar_vector operator- | ( | const prevariable & | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator- | ( | const dvar_vector & | t1, |
const prevariable & | x | ||
) |
dvar_vector operator- | ( | const dvector & | t1, |
const prevariable & | x | ||
) |
dvar_matrix operator- | ( | const dvariable & | x, |
const dmatrix & | m | ||
) |
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.
Definition at line 152 of file d3arr2a.cpp.
Returns d3_array results with subtracting elements in a to value a(i, j, k) - value.
a | d3_array |
Definition at line 248 of file d3arr2a.cpp.
Returns d3_array results with subtracting elements in a to value value - a(i, j, k).
a | d3_array |
Definition at line 216 of file d3arr2a.cpp.
dvar3_array operator- | ( | const dvar3_array & | m1, |
const dvar3_array & | m2 | ||
) |
dvar3_array operator- | ( | const d3_array & | m1, |
const dvar3_array & | m2 | ||
) |
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).
m1 | left side variable array |
m2 | right side variable array |
Definition at line 82 of file f3arr9.cpp.
dvar3_array operator- | ( | const dvar3_array & | m1, |
const dvariable & | d | ||
) |
dvar3_array operator- | ( | const dvariable & | d, |
const d3_array & | m2 | ||
) |
Returns dvar3_array with each element equal to d + m2(i, j, k).
d | left side variable |
m2 | right 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 | ||
) |
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.
varmat | varaible matrix |
Definition at line 12 of file fvar_m45.cpp.
dvar_vector operator/ | ( | const double | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator/ | ( | const dvar_vector & | t1, |
const double | x | ||
) |
Divides each element of t1 by x, then return result in dvar_vector.
t1 | dvar_vector |
x | divisor |
Definition at line 19 of file fvar_a34.cpp.
dvar_vector operator/ | ( | const prevariable & | x, |
const dvar_vector & | t1 | ||
) |
dvar_vector operator/ | ( | const dvar_vector & | t1, |
const prevariable & | x | ||
) |
dvar_matrix operator/ | ( | const dvar_matrix & | m, |
const prevariable & | e | ||
) |
dvar_matrix operator/ | ( | const dmatrix & | m, |
const prevariable & | e | ||
) |
dvar_matrix operator/ | ( | const dvar_matrix & | m, |
const double | e | ||
) |
dvar_matrix operator/ | ( | const double | e, |
const dvar_matrix & | m | ||
) |
dvar_matrix operator/ | ( | const prevariable & | e, |
const dvar_matrix & | m | ||
) |
Author: David Fournier.
Copyright (c) 2008-2012 Regents of the University of California Divide each element of m by d.
Definition at line 14 of file d3arr2b.cpp.
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).
d | numerator |
m | denominator 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).
d | numerator |
m | denominator 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).
d | double numerator |
m | denominator for each element i and j. |
Definition at line 46 of file f3arr10.cpp.
dvar3_array operator/ | ( | const dvar3_array & | m, |
const prevariable & | d | ||
) |
dvar3_array operator/ | ( | const d3_array & | m, |
const prevariable & | d | ||
) |
dvar3_array operator/ | ( | const dvar3_array & | m, |
const double | d | ||
) |
Returns d4_array with all elements arr4 divided by d.
d | double |
Definition at line 24 of file d4arr2.cpp.
Returns d4_array with all elements equal to d divided by elements in arr4.
arr4 | d4_array |
Definition at line 39 of file d4arr2.cpp.
dvar4_array operator/ | ( | const d4_array & | m, |
const prevariable & | d | ||
) |
dvar4_array operator/ | ( | const dvar4_array & | m, |
const double | d | ||
) |
dvar4_array operator/ | ( | const dvar4_array & | m, |
const prevariable & | d | ||
) |
dvar5_array operator/ | ( | const d5_array & | m, |
const prevariable & | d | ||
) |
dvar5_array operator/ | ( | const dvar5_array & | m, |
double | d | ||
) |
dvar5_array operator/ | ( | const dvar5_array & | m, |
const prevariable & | d | ||
) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns d5_array with all elements arr5 divided by d.
arr5 | numerator |
d | denominator |
Definition at line 13 of file d5arr1.cpp.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return results of all elements of darray divided by divisor.
darray | d6_array |
divisor | double |
Definition at line 13 of file d6arr1.cpp.
dvar6_array operator/ | ( | const d6_array & | m, |
const prevariable & | d | ||
) |
dvar6_array operator/ | ( | const dvar6_array & | m, |
const double | d | ||
) |
dvar6_array operator/ | ( | const dvar6_array & | m, |
const prevariable & | d | ||
) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return result of dividing all darray elements by divisor.
divisor | double |
Definition at line 12 of file d7arr1.cpp.
dvar7_array operator/ | ( | const d7_array & | m, |
const prevariable & | d | ||
) |
dvar7_array operator/ | ( | const dvar7_array & | m, |
const double | d | ||
) |
dvar7_array operator/ | ( | const dvar7_array & | m, |
const prevariable & | d | ||
) |
int operator< | ( | double | v0, |
const prevariable & | v1 | ||
) |
ostream& operator<< | ( | const ostream & | _ostr, |
const dmatrix & | z | ||
) |
Write values to output.
output | uostream |
value | dmatrix |
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.
Save values from arr3 to output stream.
output | uostream |
arr3 | d3_array |
Definition at line 28 of file d3_io1.cpp.
ostream& operator<< | ( | const ostream & | _ostr, |
const dvar3_array & | z | ||
) |
uostream& operator<< | ( | const uostream & | output, |
const dvar3_array & | varr3 | ||
) |
Save values from varr3 to output stream.
output | uostream |
varr3 | dvar3_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.
Write values to output.
output | uostream |
values | ivector |
Definition at line 58 of file ivec_io1.cpp.
ostream& operator<< | ( | const ostream & | _ostr, |
const lvector & | z | ||
) |
ostream& operator<< | ( | const ostream & | _ostr, |
const dvector & | z | ||
) |
ostream& operator<< | ( | const ostream & | ostr, |
const dvar_vector & | z | ||
) |
uostream& operator<< | ( | const uostream & | ostr, |
const dvar_vector & | z | ||
) |
ostream& operator<< | ( | const ostream & | _ostr, |
const dvar_matrix & | z | ||
) |
uostream& operator<< | ( | const uostream & | ostr, |
const dvar_matrix & | z | ||
) |
Operator to write values from dvar_matrix to output stream ostr.
ostr | output stream |
z | dvar_matrix values |
Definition at line 69 of file fvarm1_i.cpp.
ostream& operator<< | ( | const ostream & | _ostr, |
const prevariable & | f | ||
) |
uostream& operator<< | ( | const uostream & | _ostr, |
const prevariable & | f | ||
) |
ostream& operator<< | ( | const ostream & | _s, |
preshowpoint | p | ||
) |
Description not yet available.
Definition at line 48 of file admanip.cpp.
Referenced by operator<<().
ostream& operator<< | ( | const ostream & | _s, |
prefixed | p | ||
) |
ostream& operator<< | ( | const ostream & | _s, |
prescientific | p | ||
) |
ostream& operator<< | ( | const ostream & | _ostr, |
const imatrix & | z | ||
) |
ostream& operator<< | ( | const ostream & | output, |
const i3_array & | iarr3 | ||
) |
prevariable& operator<< | ( | const prevariable & | _v1, |
const prevariable & | v2 | ||
) |
dvar_vector& operator<< | ( | const dvar_vector & | v1, |
const dvar_vector & | v2 | ||
) |
dvar_matrix& operator<< | ( | const dvar_matrix & | v1, |
const dvar_matrix & | v2 | ||
) |
ostream & operator<< | ( | const ostream & | _s, |
const ptr_vector & | _v | ||
) |
ostream& operator<< | ( | const ostream & | s, |
const fmm_control & | fmc | ||
) |
<< operator to write function minimizer details
s | string of details |
fmc | function minimizer control object |
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 | ||
) |
ostream& operator<< | ( | const ostream & | output, |
const d5_array & | values | ||
) |
ostream& operator<< | ( | const ostream & | output, |
const d6_array & | values | ||
) |
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.
output | ostream |
varr4 | dvar4_array |
ostream& operator<< | ( | const ostream & | ostr, |
const dvar5_array & | z | ||
) |
Outputs dvar5_array z.
ostream& operator<< | ( | const ostream & | ostr, |
const dvar6_array & | z | ||
) |
ostream& operator<< | ( | const ostream & | output, |
const i4_array & | iarray | ||
) |
ostream& operator<< | ( | const ostream & | output, |
const i5_array & | iarray | ||
) |
ostream& operator<< | ( | const ostream & | ofs1, |
const banded_symmetric_dmatrix & | S1 | ||
) |
ostream& operator<< | ( | const ostream & | _ofs, |
const banded_symmetric_dvar_matrix & | S1 | ||
) |
ostream& operator<< | ( | const ostream & | _ofs, |
const banded_lower_triangular_dmatrix & | S1 | ||
) |
ostream& operator<< | ( | const ostream & | _ofs, |
const banded_lower_triangular_dvar_matrix & | S1 | ||
) |
ostream& operator<< | ( | const ostream & | _ofs, |
const pre_column_print & | p | ||
) |
ostream& operator<< | ( | const ostream & | _ofs, |
const pre_zero_print & | p | ||
) |
int operator<= | ( | double | v0, |
const prevariable & | v1 | ||
) |
int operator== | ( | double | v0, |
const prevariable & | v1 | ||
) |
int operator> | ( | double | v0, |
const prevariable & | v1 | ||
) |
int operator>= | ( | double | v0, |
const prevariable & | v1 | ||
) |
istream& operator>> | ( | const istream & | _istr, |
const dmatrix & | _z | ||
) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Read values from input.
input | uistream |
value | dmatrix |
Definition at line 26 of file dmat_io3.cpp.
istream& operator>> | ( | const istream & | input, |
const d3_array & | arr3 | ||
) |
Read values from input stream to arr3.
input | uistream |
arr3 | d3_array |
Definition at line 43 of file d3_io1.cpp.
istream& operator>> | ( | const istream & | _istr, |
const dvar3_array & | z | ||
) |
uistream& operator>> | ( | const uistream & | input, |
const dvar3_array & | varr3 | ||
) |
Read values from input stream to varr3.
input | uistream |
varr3 | dvar3_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.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Read from input to values.
input | uistream |
values | ivector |
Definition at line 30 of file ivec_io1.cpp.
istream& operator>> | ( | const istream & | _istr, |
const lvector & | _z | ||
) |
istream& operator>> | ( | const istream & | _istr, |
const dvector & | _z | ||
) |
istream& operator>> | ( | const istream & | istr, |
const dvar_vector & | _z | ||
) |
uistream& operator>> | ( | const uistream & | istr, |
const dvar_vector & | _z | ||
) |
istream& operator>> | ( | const istream & | _istr, |
const dvar_matrix & | _z | ||
) |
uistream& operator>> | ( | const uistream & | istr, |
const dvar_matrix & | _z | ||
) |
Operator to read values to dvar_matrix form input stream istr.
istr | output stream |
_z | dvar_matrix values |
Definition at line 36 of file fvarm1_i.cpp.
istream& operator>> | ( | const istream & | _istr, |
const prevariable & | _f | ||
) |
uistream& operator>> | ( | const uistream & | _istr, |
const prevariable & | _f | ||
) |
istream& operator>> | ( | const istream & | _istr, |
const imatrix & | z | ||
) |
istream& operator>> | ( | const istream & | input, |
const i3_array & | iarr3 | ||
) |
istream& operator>> | ( | const istream & | s, |
const ptr_vector & | v | ||
) |
istream& operator>> | ( | const istream & | input, |
const d4_array & | values | ||
) |
istream& operator>> | ( | const istream & | input, |
const d5_array & | values | ||
) |
istream& operator>> | ( | const istream & | input, |
const d6_array & | values | ||
) |
istream& operator>> | ( | const istream & | input, |
const dvar4_array & | varr4 | ||
) |
Read values to varr4 from input stream.
input | istream |
varr4 | dvar4_array |
istream& operator>> | ( | const istream & | istr, |
const dvar5_array & | z | ||
) |
istream& operator>> | ( | const istream & | istr, |
const dvar6_array & | z | ||
) |
istream& operator>> | ( | const istream & | input, |
const i4_array & | iarray | ||
) |
istream& operator>> | ( | const istream & | input, |
const i5_array & | iarray | ||
) |
int option_match | ( | int | argc, |
char * | argv[], | ||
const char * | option | ||
) |
Checks if the program has been invoked with a particular command line argument ("string").
argc | Number of command line arguments (as in all C programs) |
argv | Array (of length argc) of command line arguments (as in all C programs) |
option | Should be one of the possible command line arguments to an ADMB program. |
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.
argc | Number of command line arguments (as in all C programs) |
argv | Array (of length argc) of command line arguments (as in all C programs) |
option | Should be one of the possible command line arguments to an ADMB program. |
nopt | On return holds the number arguments/options associated with "string". |
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.
Definition at line 72 of file optmatch.cpp.
int option_match | ( | char * | _s, |
const char * | option | ||
) |
Search for option in _s.
Definition at line 46 of file optmatch.cpp.
dmatrix orthpoly | ( | int | n, |
int | deg | ||
) |
dmatrix orthpoly | ( | int | n, |
int | deg, | ||
int | skip | ||
) |
d4_array orthpoly2 | ( | int | d1, |
int | d2, | ||
int | n, | ||
int | m | ||
) |
dmatrix orthpoly_constant_begin | ( | int | n, |
int | deg, | ||
int | nconst | ||
) |
dmatrix orthpoly_constant_begin_end | ( | int | n, |
int | deg, | ||
int | nconst_begin, | ||
int | end_degree, | ||
int | nconst_end | ||
) |
Description not yet available.
Definition at line 17 of file dmat23.cpp.
Referenced by function_minimizer::add_sample_dense(), function_minimizer::mcmc_routine(), function_minimizer::rwm_mcmc_routine(), and write_empirical_covariance_matrix().
dvar_matrix outer_prod | ( | const dvar_vector & | v1, |
const dvar_vector & | v2 | ||
) |
dvar_matrix outer_prod | ( | const dvector & | v1, |
const dvar_vector & | v2 | ||
) |
Compute the outer product of v1 and v2 vectors into dvar_matrix.
v1 | dvector |
v2 | dvar_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.
v1 | dvar_vector |
v2 | dvector |
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 | ||
) |
beta distribution function for variable objects (alias of ibeta function with same arguments order as in R).
x | |
a | |
b | |
maxit | Maximum number of iterations for the continued fraction approximation in betacf. |
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).
x | |
a | |
b | |
maxit | Maximum number of iterations for the continued fraction approximation in betacf. |
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.
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 | ||
) |
Returns a dvector with base raised to the power exponent for each element in exponents.
base | array of floating values |
exponent | a floating value |
Definition at line 149 of file dvect6.cpp.
Returns a dvector with base raised to the power exponent for each element in exponents.
base | array of floating values |
exponent | a integer |
Definition at line 172 of file dvect6.cpp.
Returns a dvector with base raised to the power exponent for each element in exponents.
base | double |
exponents | array of floating points |
Definition at line 214 of file dvect6.cpp.
Returns integer vector with all the base elements in ivector v1 base raised to the power exponent x.
v1 | base elements |
x | exponent |
Definition at line 45 of file ivect6.cpp.
Returns integer vector with base x raised with all the elements in exponent ivector x.
x | base |
v1 | exponent |
Definition at line 71 of file ivect6.cpp.
dvar_vector pow | ( | const dvar_vector & | v1, |
const dvar_vector & | v2 | ||
) |
dvar_vector pow | ( | const dvar_vector & | v1, |
const dvector & | v2 | ||
) |
raise v1 to the power v2.
v1 | vector of bases |
v2 | vector 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.
Returns a dvector with each element from bases is raised to the power exponent for each element in exponents.
base | array of floating values |
exponents | array 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.
v1 | dvar_vector |
Definition at line 496 of file fvar_a29.cpp.
dvar_vector pow | ( | const dvar_vector & | v1, |
int | e | ||
) |
dvar_vector pow | ( | const dvar_vector & | v1, |
const prevariable & | e | ||
) |
dvar_vector pow | ( | const dvector & | v1, |
const prevariable & | e | ||
) |
dvar_vector pow | ( | const prevariable & | x, |
const dvar_vector & | v2 | ||
) |
Definition at line 81 of file dmat20.cpp.
Returns dmatrix with pow of each element in m raised to the exponent e.
m | dmatrix |
e | integer exponent |
Definition at line 60 of file dmat20.cpp.
dvar_matrix pow | ( | const dvar_matrix & | m, |
const double | e | ||
) |
dvar_matrix pow | ( | const dvar_matrix & | m, |
const prevariable & | e | ||
) |
dvar_matrix pow | ( | const dmatrix & | m, |
const prevariable & | e | ||
) |
dvar_matrix pow | ( | const dvar_matrix & | m, |
int | e | ||
) |
Description not yet available.
Definition at line 17 of file d3arr6.cpp.
Referenced by _dtweedie(), AD_pow_1(), AD_pow_11(), AD_pow_111(), AD_pow_112(), AD_pow_12(), AD_pow_122(), AD_pow_2(), AD_pow_22(), AD_pow_222(), function_minimizer::adapt_eps(), ADpow_fun(), function_minimizer::adromb(), cube(), DF_cdvpow(), DF_dvatan(), DF_dvcpow(), DF_dvdvpow(), DF_dvmfexp(), DF_dvpow(), DF_dvtan(), doubleEqual(), dzinbinom(), eplogis(), expm(), function_minimizer::find_reasonable_stepsize(), fmm_control::fmm_control(), gauss_hermite_stuff::gauss_hermite_stuff(), gauss_legendre(), generalized_Ricker1(), generalized_Ricker2(), multi_index::get_offset(), Hassell(), Hill(), HollingIII(), HollingIV(), inv_cumd_beta_stable(), inv_cumd_mixture(), inv_cumd_mixture_02(), ldexp(), mylinmin(), mypow(), function_minimizer::neldmead(), nonrectangular_hyperbola(), norm(), old_inv_cumd_beta_stable(), orthpoly(), orthpoly2(), orthpoly_constant_begin(), orthpoly_constant_begin_end(), pow(), function_minimizer::prof_minimize(), function_minimizer::prof_minimize_re(), rdqk15i(), rdqk21(), read_hessian_matrix_and_scale(), read_hessian_matrix_and_scale1(), rgamma(), qfclib::rgamma(), robust_regression(), Shepherd(), sqr(), and theta_logistic().
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.
base | dvar3_array of base |
exp | int 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.
Definition at line 253 of file vcumdbetainv.cpp.
double randnegbinomial | ( | double | mu, |
double | tau, | ||
const random_number_generator & | rng | ||
) |
Description not yet available.
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.
xm | Mean of Poisson distribution |
rng | Instance of class random_number_generator. |
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 | ||
) |
void report_gradstack_flag | ( | void | ) |
Description not yet available.
Definition at line 36 of file cmpdif3.cpp.
Referenced by set_gradstack_flag().
void reset_gradient_stack | ( | void | ) |
Rewind buffer.
Definition at line 367 of file sgradclc.cpp.
Referenced by laplace_approximation_calculator::banded_calculations_lme(), function_minimizer::depvars_routine(), function_minimizer::limited_memory_quasi_newton_block(), and function_minimizer::quasi_newton_block().
long int reset_gs_stack | ( | void | ) |
void reset_gs_stack | ( | long | int | ) |
void* restore_ad_pointer | ( | void | ) |
Description not yet available.
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.
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.
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.
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 | ) |
d3_array_position restore_d3_array_position | ( | void | ) |
d3_array restore_d3_array_value | ( | const d3_array_position & | mpos | ) |
dmatrix_position restore_dmatrix_position | ( | ) |
dmatrix restore_dmatrix_value | ( | const dmatrix_position & | mpos | ) |
double restore_double_value | ( | void | ) |
dmatrix restore_dvar_matrix_der_nozero | ( | const dvar_matrix_position & | _pos | ) |
dvector restore_dvar_matrix_derivative_column | ( | const dvar_matrix_position & | _pos, |
const int & | ii | ||
) |
Description not yet available.
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 | ||
) |
dmatrix restore_dvar_matrix_derivatives | ( | const dvar_matrix_position & | pos | ) |
Description not yet available.
Definition at line 178 of file cmpdif6.cpp.
Referenced by cmdm_prod(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfempirical_covarv(), dfempirical_covarv_partial(), dfmattrans(), dfouter_prodvv(), dmcm_prod(), and dmdm_prod().
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 | ) |
dvector restore_dvar_vector_der_nozero | ( | const dvar_vector_position & | tmp | ) |
Description not yet available.
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 | ) |
Description not yet available.
Definition at line 150 of file cmpdif5.cpp.
Referenced by cmdv_prod(), cvdv_add(), cvdv_elem_div(), cvdv_elem_prod(), cvdv_sub(), DF_ccv_dble_prod(), DF_cdble_dv_add(), DF_cdble_dv_diff(), DF_cdble_dv_div(), DF_cdble_dv_diveq(), DF_cdvpow(), DF_dble_dv_add(), DF_dble_dv_diff(), DF_dble_dv_div(), DF_dv_cdble_diff(), DF_dv_cdble_div(), DF_dv_dble_diff(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dv_double_prod(), DF_dv_minus(), DF_dvatan(), DF_dvcos(), DF_dvcpow(), DF_dvcube(), DF_dvdvpow(), DF_dvexp(), DF_dvfourth(), DF_dvlog(), DF_dvmfexp(), DF_dvpow(), DF_dvsin(), DF_dvsqrt(), DF_dvsquare(), DF_dvtan(), DF_first_diference(), DF_unary_diff(), DF_v_xdble_diff(), DF_vdble_dv_diveq(), dfbltsolve(), dfcholeski_sparse(), dmcv_prod(), dmdv_prod(), dmdv_solve(), dv_assign(), dv_eqdoub(), dv_eqprev(), dv_subassign(), dvcm_prod(), dvcv_add(), dvcv_elem_div(), dvcv_elem_prod(), dvcv_sub(), dvdm_prod(), dvdv_add(), dvdv_elem_div(), dvdv_elem_prod(), dvdv_sub(), restore_banded_lower_triangular_dvar_matrix_derivatives(), restore_bounded_symmetric_dvar_matrix_derivatives(), restore_dvar_matrix_derivative_row(), and restore_dvar_matrix_derivatives().
dvar_vector_position restore_dvar_vector_position | ( | void | ) |
dvector restore_dvar_vector_value | ( | const dvar_vector_position & | tmp | ) |
Restores the size, address, and value information for a dvar_vector.
Back up the stream and read the number of bytes written in the write function'' corresponding to this
read function''
Definition at line 227 of file cmpdif4.cpp.
Referenced by cmdv_prod(), DF_ccv_dble_prod(), DF_cdble_dv_div(), DF_dble_dv_div(), DF_dv_cdble_div(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dvatan(), DF_dvcos(), DF_dvcpow(), DF_dvcube(), DF_dvdvpow(), DF_dvexp(), DF_dvfourth(), DF_dvlog(), DF_dvmfexp(), DF_dvpow(), DF_dvsin(), DF_dvsqrt(), DF_dvsquare(), DF_dvtan(), DF_vdble_dv_diveq(), dfbltsolve(), dfouter_prodvv(), dmcv_prod(), dmdv_prod(), dvcv_elem_div(), dvdm_prod(), dvdv_dot(), dvdv_elem_div(), dvdv_elem_prod(), restore_banded_lower_triangular_dvar_matrix_value(), restore_banded_symmetric_dvar_matrix_value(), and restore_lower_triangular_dvar_matrix_value().
dvector_position restore_dvector_position | ( | void | ) |
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 this
read function''
tmp | To get indexmin and indexmax |
Definition at line 174 of file cmpdif4.cpp.
int restore_int_value | ( | void | ) |
ivector_position restore_ivector_position | ( | ) |
ivector restore_ivector_value | ( | const ivector_position & | tmp | ) |
Description not yet available.
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 | ) |
double restore_prevariable_derivative | ( | const prevariable_position & | _pos | ) |
Description not yet available.
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 | ( | ) |
prevariable_position restore_prevariable_position | ( | ) |
double restore_prevariable_value | ( | void | ) |
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.
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 | ||
) |
double robust_normal_mixture_deviate | ( | double | x, |
double | spread | ||
) |
dvariable robust_normal_mixture_deviate | ( | const prevariable & | x, |
double | spread | ||
) |
dvariable robust_regression | ( | const dvector & | obs, |
const dvar_vector & | pred, | ||
const double | a | ||
) |
dvariable robust_regression | ( | const dvector & | obs, |
const dvar_vector & | pred, | ||
const dvariable & | a | ||
) |
dvariable robust_regression_fixed | ( | const dvector & | obs, |
const dvar_vector & | pred, | ||
double | a = 0.7 |
||
) |
Returns a copied row for matrix at i.
Note: i must be a valid row.
matrix | dmatrix |
i | row 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 | ||
) |
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 | ) |
Returns dvector where each element contains the sum total of each row in matrix.
matrix | dmatrix |
Definition at line 61 of file dvect12.cpp.
Referenced by expm().
void save_ad_pointer | ( | void * | p | ) |
Description not yet available.
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.
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 | ||
) |
Description not yet available.
Definition at line 28 of file cmpdif8.cpp.
Referenced by DF_ccv_dble_prod(), DF_cdvpow(), DF_dble_dv_add(), DF_dble_dv_diff(), DF_dble_dv_div(), DF_dv_dble_diff(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dvdvpow(), DF_v_xdble_diff(), DF_vdble_dv_diveq(), dv_eqprev(), dv_xminuseq(), and dv_xpluseq().
void save_double_value | ( | double | x | ) |
void save_int_value | ( | int | x | ) |
void save_pointer_value | ( | void * | ptr | ) |
void send_dv3_to_master | ( | const dvar3_array & | v | ) |
void set_gradstack_flag | ( | char * | _str, |
int | i, | ||
int | j | ||
) |
void set_gradstack_flag | ( | char * | str | ) |
void set_value | ( | const dvar_matrix & | x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | s | ||
) |
Description not yet available.
Definition at line 235 of file set.cpp.
Referenced by set_value(), param_init_vector::set_value(), param_init_bounded_vector::set_value(), param_init_number::set_value(), param_init_bounded_number::set_value(), param_init_matrix::set_value(), param_init_bounded_matrix::set_value(), and df1b2_init_bounded_number::set_value().
void set_value | ( | const dvar_matrix & | x, |
const dvar_vector & | v, | ||
const int & | ii, | ||
double | fmin, | ||
double | fmax, | ||
const dvariable & | fpen, | ||
double | s | ||
) |
void set_value | ( | const dvar_vector & | _x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | s | ||
) |
void set_value | ( | const dvar_vector & | _x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
const dvariable & | fpen, | ||
double | s | ||
) |
void set_value | ( | const prevariable & | _x, |
const dvar_vector & | v, | ||
const int & | _ii | ||
) |
void set_value | ( | const prevariable & | _x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | s | ||
) |
void set_value | ( | const dvar_vector & | x, |
const dvar_vector & | v, | ||
const int & | _ii | ||
) |
void set_value | ( | const prevariable & | _x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
const dvariable & | _fpen, | ||
double | s | ||
) |
void set_value | ( | const prevariable & | _u, |
const dvar_vector & | x, | ||
const int & | _ii, | ||
const double | fmin, | ||
const double | fmax, | ||
const dvariable & | _fpen | ||
) |
void set_value | ( | const dvar_vector & | x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
const dvariable & | fpen | ||
) |
void set_value | ( | const dvar_matrix & | x, |
const dvar_vector & | v, | ||
const int & | _ii | ||
) |
void set_value | ( | const dvar_matrix & | x, |
const dvar_vector & | v, | ||
const int & | ii, | ||
const double | fmin, | ||
const double | fmax, | ||
const dvariable & | fpen | ||
) |
void set_value | ( | dvar3_array & | x, |
const dvar_vector & | v, | ||
const int & | ii | ||
) |
void set_value | ( | dvar3_array & | x, |
const dvar_vector & | v, | ||
const int & | ii, | ||
const double | fmin, | ||
const double | fmax, | ||
const dvariable & | fpen | ||
) |
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.
Definition at line 412 of file setin.cpp.
Referenced by set_value_inv(), param_init_vector::set_value_inv(), param_init_bounded_vector::set_value_inv(), param_init_number::set_value_inv(), param_init_bounded_number::set_value_inv(), param_init_matrix::set_value_inv(), and param_init_bounded_matrix::set_value_inv().
void set_value_inv | ( | const dvar_matrix & | x, |
const dvector & | v, | ||
const int & | ii, | ||
double | fmin, | ||
double | fmax, | ||
double | s | ||
) |
void set_value_inv | ( | const dvar_vector & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
double | s | ||
) |
void set_value_inv | ( | const dvar_vector & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
double | s | ||
) |
void set_value_inv | ( | const dvar_matrix & | x, |
const dvector & | v, | ||
const int & | ii | ||
) |
void set_value_inv | ( | const prevariable & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
double | s | ||
) |
void set_value_inv | ( | const prevariable & | x, |
const dvector & | _v, | ||
const int & | _ii | ||
) |
void set_value_inv | ( | const dvar_matrix & | x, |
const dvector & | v, | ||
const int & | ii, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_inv | ( | const dvar3_array & | x, |
const dvector & | v, | ||
const int & | ii, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_inv | ( | const dvar3_array & | x, |
const dvector & | v, | ||
const int & | ii | ||
) |
void set_value_inv | ( | const double | x, |
const dvector & | _v, | ||
const int & | _ii | ||
) |
void set_value_inv | ( | const prevariable & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
double | s | ||
) |
void set_value_inv | ( | const prevariable & | u, |
const dvector & | _x, | ||
const int & | _ii, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_inv | ( | const double | u, |
const dvector & | _x, | ||
const int & | _ii, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_inv | ( | const dvar_vector & | x, |
const dvector & | _v, | ||
const int & | _ii | ||
) |
void set_value_inv | ( | const dvar_vector & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_inv_exp | ( | const prevariable & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
double | fmin, | ||
double | fmax, | ||
double | s | ||
) |
Description not yet available.
Definition at line 192 of file setin.cpp.
Referenced by set_value_inv_partial().
void set_value_inv_partial | ( | const dvar_matrix & | 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 | ||
) |
void set_value_inv_partial | ( | const dvar_vector & | x, |
const dvector & | _v, | ||
const int & | _ii, | ||
int | n, | ||
const double | fmin, | ||
const double | fmax | ||
) |
void set_value_partial | ( | const dvar_vector & | x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
int | n | ||
) |
Description not yet available.
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 | ||
) |
void set_value_partial | ( | const dvar_matrix & | x, |
const dvar_vector & | v, | ||
const int & | _ii, | ||
int | n | ||
) |
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.
Definition at line 59 of file admanip.cpp.
Referenced by function_minimizer::sd_routine().
ostream& setscientific | ( | const ostream & | s | ) |
prescientific setscientific | ( | void | ) |
Description not yet available.
Definition at line 80 of file admanip.cpp.
Referenced by calculate_laplace_approximation(), choleski_decomp(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), df_check_derivative_values(), df_check_derivative_values_indexed(), laplace_approximation_calculator::do_newton_raphson_state_space(), get_inverse_sparse_hessian(), function_minimizer::hess_routine_noparallel_random_effects(), pads(), and function_minimizer::sd_routine().
preshowpoint setshowpoint | ( | void | ) |
Description not yet available.
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.
Definition at line 20 of file dvect14.cpp.
Referenced by bessj(), function_minimizer::hess_routine_noparallel_random_effects(), and sfabs().
double sgamma | ( | double | a, |
const random_number_generator & | _rng | ||
) |
Description not yet available.
Definition at line 44 of file drangam.cpp.
Referenced by randnegbinomial(), and sgamma().
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Return ivector filled with flags for 1 positive and -1 negative for values in dvector v.
Definition at line 11 of file dvect24.cpp.
Referenced by laplace_approximation_calculator::banded_calculations(), 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_laplace_approximation(), do_gauss_hermite_block_diagonal(), do_gauss_hermite_block_diagonal_multi(), evaluate_function_with_quadprior(), laplace_approximation_calculator::get_gradient_for_hessian_calcs(), get_initial_u(), get_ln_det(), function_minimizer::hess_determinant(), inv(), inv_cumd_t(), ln_det(), lower_triangular_ln_det(), function_minimizer::monte_carlo_routine(), quadratic_prior::operator=(), function_minimizer::projected_hess_determinant(), function_minimizer::random_effects_maximization(), function_minimizer::sd_routine(), solve(), and function_minimizer::unrestricted_hess_determinant().
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.
variables | dvar_vector |
Definition at line 13 of file fvar_a58.cpp.
double sigmoid | ( | const double | v1 | ) |
Returns dvector with sine for each value of vec.
vec | array 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.
v1 | dvar_vector |
Definition at line 67 of file fvar_a29.cpp.
dvar_matrix sin | ( | const dvar_matrix & | m | ) |
dvar3_array sin | ( | const dvar3_array & | m | ) |
Computes sin of each element in m to a dvar3_array.
m | dvar3_array |
Definition at line 90 of file f3arr2.cpp.
sing_val_decomp singval_decomp | ( | const dmatrix & | _a | ) |
Returns dvector with hyperbolic sine for each value of vec.
vec | array of floating values |
Definition at line 84 of file dvect6.cpp.
dvar_vector sinh | ( | const dvar_vector & | v1 | ) |
unsigned int size_count | ( | const dvar_vector & | x | ) |
unsigned int size_count | ( | const dvar_matrix & | x | ) |
unsigned int size_count | ( | const dvar3_array & | x | ) |
unsigned int size_count | ( | const dvar4_array & | x | ) |
unsigned int size_count | ( | const dvector & | x | ) |
Returns total size of elements in vector x.
x | vector |
Definition at line 17 of file dsize.cpp.
Referenced by cubic_spline(), dlnorm(), dnorm(), dpois(), get_ft(), invLogitProp(), logitProp(), matrix2vector(), mean(), nllBeta(), nllGamma(), nllInverseGamma(), nllLognormal(), nllLognormal2(), nllNegativeBinomial(), nllNormal(), nllNormal2(), nllPoisson(), regression(), function_minimizer::sd_routine(), param_init_vector::size_count(), param_init_bounded_vector::size_count(), param_init_matrix::size_count(), param_stddev_vector::size_count(), param_stddev_matrix::size_count(), param_init_d3array::size_count(), and size_count().
unsigned int size_count | ( | const dmatrix & | x | ) |
unsigned int size_count | ( | const d3_array & | x | ) |
unsigned int size_count | ( | const d4_array & | x | ) |
int size_count_partial | ( | const dvar_vector & | x, |
int | n | ||
) |
int size_count_partial | ( | const dvar_matrix & | x, |
int | n | ||
) |
int size_count_partial | ( | const dvar3_array & | x, |
int | n | ||
) |
int size_count_partial | ( | const dvector & | x, |
int | n | ||
) |
Description not yet available.
Definition at line 26 of file dsize.cpp.
Referenced by size_count_partial().
int size_count_partial | ( | const dmatrix & | x, |
int | n | ||
) |
int size_count_partial | ( | const d3_array & | x, |
int | n | ||
) |
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.
aa | A dvar_matrix containing LU decomposition of input matrix. . |
z | A dvar_vector containing the RHS, of the linear equation , to be solved. |
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.
aa | A dvar_matrix containing LU decomposition of input matrix. . |
z | A dvar_vector containing the RHS, of the linear equation , to be solved. |
_ln_unsigned_deg | |
sign |
Definition at line 56 of file fvar_m24.cpp.
Solve a linear system using LU decomposition.
aa | A dmatrix containing LU decomposition of input matrix. . |
z | A dvector containing the RHS, of the linear equation , to be solved. |
Definition at line 46 of file dmat34.cpp.
Referenced by laplace_approximation_calculator::banded_calculations(), laplace_approximation_calculator::banded_calculations_lme(), laplace_approximation_calculator::banded_calculations_trust_region_approach(), laplace_approximation_calculator::block_diagonal_calculations(), csolve(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), df1b2function_tweaker::df1b2function_tweaker(), dfunction_tweaker::dfunction_tweaker(), laplace_approximation_calculator::do_newton_raphson_banded(), laplace_approximation_calculator::do_separable_stuff_laplace_approximation_importance_sampling_adjoint(), laplace_approximation_calculator::do_separable_stuff_newton_raphson_block_diagonal(), laplace_approximation_calculator::do_separable_stuff_x_u_block_diagonal(), expm(), function_tweaker::function_tweaker(), function_minimizer::hess_routine_noparallel_random_effects(), quadratic_prior::operator=(), df1b2quadratic_prior::operator=(), safe_choleski_solver::solve(), solve(), and function_minimizer::trust_region_update().
dvector solve | ( | const dmatrix & | aa, |
const dvector & | z, | ||
const double & | _ln_unsigned_det, | ||
double & | sign | ||
) |
Solve a linear system using LU decomposition.
aa | A dmatrix containing LU decomposition of input matrix. . |
z | A dvector containing the RHS, of the linear equation , to be solved. |
_ln_unsigned_deg | |
sign |
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 | ||
) |
/param aa /param tz
Definition at line 36 of file dmat38.cpp.
dvector solve | ( | const banded_symmetric_dmatrix & | m, |
const dvector & | v | ||
) |
dvar_vector solve | ( | const banded_lower_triangular_dvar_matrix & | m, |
const dvar_vector & | v | ||
) |
dvector solve | ( | const banded_lower_triangular_dmatrix & | m, |
const dvector & | v | ||
) |
dvector solve | ( | const lower_triangular_dmatrix & | m, |
const dvector & | v | ||
) |
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 | ||
) |
dvector solve_trans | ( | const lower_triangular_dmatrix & | M, |
const dvector & | y | ||
) |
Description not yet available.
Definition at line 80 of file dmat36.cpp.
Referenced by laplace_approximation_calculator::banded_calculations_trust_region_approach(), calculate_importance_sample(), laplace_approximation_calculator::do_newton_raphson_banded(), function_minimizer::hess_routine_noparallel_random_effects(), solve(), and safe_choleski_solver::solve().
dvar_vector solve_trans | ( | const banded_lower_triangular_dvar_matrix & | M, |
const dvector & | y | ||
) |
dvar_vector sort | ( | const dvar_vector & | , |
int | NSTACK = 60 |
||
) |
Quicksort.
v | A dvector to be sorted. |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
v | Vector of doubles to be sorted |
NSTACK | Lenth of intermediate storage vector. Default is NSTACK = 60. |
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.
Quicksort.
v | Vector of integers to be sorted |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
v | Vector of integers to be sorted |
NSTACK | Lenth of intermediate storage vector. Default is NSTACK = 60. |
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.
Quicksort.
_v | A dvector to be sorted. |
_index | ivector on return containing the input order of the original vector. |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
_v | Vector to be sorted |
_index | ivector on return containing the input order of the origian vector. |
NSTACK | Lenth of intermediate storage vector. Default is NSTACK = 60. |
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.
Quicksort.
_v | Vector of integers to be sorted |
_index | ivector on return containing the input order of the original vector. |
NSTACK | Not used. |
Adopted from the GNU C Library. http://www.corpit.ru/mjt/qsort.html
_v | Vector of integers to be sorted |
_index | ivector on return containing the input order of the origian vector. |
NSTACK | Lenth of intermediate storage vector. Default is NSTACK = 60. |
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.
Description not yet available.
Definition at line 17 of file dmsort.cpp.
Referenced by calculate_importance_sample(), calculate_importance_sample_block_diagonal(), calculate_laplace_approximation(), laplace_approximation_calculator::check_hessian_type(), laplace_approximation_calculator::check_sparse_matrix_structure(), common(), laplace_approximation_calculator::default_calculations(), laplace_approximation_calculator::default_calculations_check_derivatives(), derch(), dmultinom(), function_minimizer::hess_inv(), function_minimizer::mcmc_routine(), print_is_diagnostics(), function_minimizer::sd_routine(), sort(), function_minimizer::trust_region_update(), unique(), and write_empirical_covariance_matrix().
void spdll_exit | ( | int | ) |
Definition at line 55 of file gradstrc.cpp.
Referenced by do_dll_housekeeping().
Returns dvector with the square of each element in vec.
vec | scalar 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.
v1 | dvar_vector |
Definition at line 442 of file fvar_a29.cpp.
Returns dmatrix with each of element in m is squared.
m | dmatrix |
Definition at line 231 of file dmat20.cpp.
dvar_matrix sqr | ( | const dvar_matrix & | m | ) |
Returns d3_array with square values from arr3.
arr3 | input 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.
m | dvar3_array |
Definition at line 144 of file f3arr2.cpp.
Returns dvector with the square of each element in vec.
vec | scalar 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.
v1 | dvar_vector |
Definition at line 417 of file fvar_a29.cpp.
Returns dmatrix with each of element in m is square rooted.
m | dmatrix |
Definition at line 211 of file dmat20.cpp.
dvar_matrix sqrt | ( | const dvar_matrix & | m | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns d3_array with square root values from arr3.
arr3 | input 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.
m | dvar3_array |
Definition at line 126 of file f3arr2.cpp.
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.
darray | d4_array |
Definition at line 14 of file d4arr1.cpp.
dvar4_array sqrt | ( | const dvar4_array & | m | ) |
dvar5_array sqrt | ( | const dvar5_array & | m | ) |
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.
variable | prevariable |
Definition at line 12 of file fvar_op7.cpp.
dvar_vector square | ( | const dvar_vector & | v1 | ) |
dvar_matrix square | ( | const dvar_matrix & | matrix | ) |
Return results of computing the square of variable matrix.
matrix | variable 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.
vararr3 | values to square |
Definition at line 13 of file f3arr6.cpp.
double std_dev | ( | const dvector & | vec | ) |
Returns the computed standand deviation of vec.
vec | dvector |
Definition at line 34 of file cranfill.cpp.
dvariable std_dev | ( | const dvar_vector & | v | ) |
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.
v | variable 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.
m | variable 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.
arr3 | variable 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.
arr4 | variable 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.
arr5 | variable 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.
v | variable 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.
m | dmatrix |
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.
arr3 | d3_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.
arr4 | d4_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.
arr5 | d5_array |
Definition at line 201 of file suballoc.cpp.
int sub_unallocated | ( | const ivector & | v | ) |
Returns true if v was not allocated, otherwise false.
v | variable 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.
m | imatrix |
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.
arr3 | i3_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.
arr4 | i4_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.
arr5 | i5_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.
values | dvector |
Definition at line 12 of file dvect12.cpp.
int sum | ( | const ivector & | v | ) |
Return integer sum of all the elements in ivector v.
v | integer vector |
Definition at line 23 of file ivect6.cpp.
int sum | ( | const imatrix & | matrix | ) |
double sum | ( | const dmatrix & | matrix | ) |
Return total sum of all elements in matrix.
matrix | dmatrix |
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.
darray | d3_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 | ) |
double sum | ( | const d5_array & | darray | ) |
double sum | ( | const d6_array & | darray | ) |
double sum | ( | const d7_array & | darray | ) |
dvariable sum | ( | const dvar3_array & | m | ) |
dvariable sum | ( | const dvar4_array & | m | ) |
dvariable sum | ( | const dvar5_array & | m | ) |
dvariable sum | ( | const dvar6_array & | m | ) |
dvariable sum | ( | const dvar7_array & | m | ) |
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 | ) |
dvariable sumsq | ( | const banded_symmetric_dvar_matrix & | 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.
ivec | ivector |
Definition at line 368 of file ivector.cpp.
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.
m | dmatrix |
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 | ) |
dmatrix symmetrize | ( | const lower_triangular_dmatrix & | T | ) |
Returns dvector with tangent for each value of vec.
vec | array 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.
v1 | dvar_vector |
Definition at line 315 of file fvar_a29.cpp.
dvar_matrix tan | ( | const dvar_matrix & | m | ) |
Returns d3_array results with computed tan from elements in arr3.
arr3 | d3_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 | ) |
Returns dvector with hyperbolic tangent for each value of vec.
vec | array of floating values |
Definition at line 126 of file dvect6.cpp.
Referenced by tanh().
dvar_vector tanh | ( | const dvar_vector & | v1 | ) |
dvar_matrix tensor_prod | ( | const dvar_matrix & | a, |
const dvar_matrix & | b | ||
) |
The tensor product of two dvar_matrixes.
a | first dvar_matrix |
b | second dvar_matrix |
Calcuates the tensor product of a and b.
Definition at line 24 of file tensprod.cpp.
void tracing_message | ( | int | _traceflag, |
const char * | s | ||
) |
Description not yet available.
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 | ||
) |
void tracing_message | ( | int | _traceflag, |
const char * | s, | ||
double * | pd | ||
) |
void tracing_message | ( | int | _traceflag, |
const char * | s, | ||
double | d | ||
) |
dvar_matrix use_shape | ( | const dvar_matrix & | m | ) |
Description not yet available.
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().
|
inline |
dmatrix value | ( | const dvar_matrix & | m | ) |
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.
arr3 |
Definition at line 13 of file f3arr3.cpp.
banded_symmetric_dmatrix value | ( | const banded_symmetric_dvar_matrix & | v | ) |
double var | ( | const dvector & | vec | ) |
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Returns the computed variance of vec.
vec | dvector |
Definition at line 23 of file cranfill.cpp.
Referenced by dnorm(), init_df1_one_variable::init_df1_one_variable(), init_df3_one_variable::init_df3_one_variable(), init_df3_three_variable::init_df3_three_variable(), param_init_bounded_vector::mc_scale(), param_init_bounded_matrix::mc_scale(), neff(), df3_three_variable::operator*=(), df3_three_variable::operator/=(), pearson_residuals(), and std_dev().
dvariable var | ( | const dvar_vector & | v | ) |
The VEC operator concatenates the columns of matrix M into a column vector.
matrix | M |
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.
matrix | M |
Definition at line 17 of file fvar_m43.cpp.
pre_zero_print zero_print | ( | const dvector & | v | ) |
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 |
Definition at line 23 of file newdar.cpp.
Referenced by df_check_derivative_values(), df_check_derivative_values_indexed(), and df_check_derivative_values_indexed_break().
int just_to_link_fvar1 |
Generated on Wed Sep 7 2022 00:01:31 for ADMB Documentation by 1.8.5 |