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

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

Description not yet available. More...

#include <unistd.h>
#include "fvar.hpp"
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Typedefs

typedef int(* fptr )(const char *format,...)
 

Functions

void allocate_dvariable_space ()
 Description not yet available. More...
 
void cleanup_temporary_files ()
 Close gradient and variable files and free gradient structure memory. More...
 
void fill_ad_random_part (void)
 
char lastchar (char *s)
 Description not yet available. More...
 
void memory_allocate_error (const char *s, void *ptr)
 Description not yet available. More...
 
void null_ptr_err_message (void)
 Outputs null error message. More...
 
void RETURN_ARRAYS_DECREMENT ()
 Decrements gradient_structure::RETURN_ARRAYS_PTR. More...
 
void RETURN_ARRAYS_INCREMENT ()
 Increments gradient_structure::RETURN_ARRAYS_PTR. More...
 
void spdll_exit (int ierr)
 

Variables

exitptr ad_exit =&exit
 
char ad_random_part [6]
 
int ctlc_flag = 0
 Description not yet available. More...
 

Detailed Description

Description not yet available.

Definition in file gradstrc.cpp.

Typedef Documentation

typedef int(* fptr)(const char *format,...)

Definition at line 48 of file gradstrc.cpp.

Function Documentation

void allocate_dvariable_space ( void  )

Description not yet available.

Parameters

Definition at line 210 of file gradstrc.cpp.

void cleanup_temporary_files ( )

Close gradient and variable files and free gradient structure memory.

Definition at line 192 of file gradstrc.cpp.

void fill_ad_random_part ( void  )

Definition at line 87 of file gradstak.cpp.

Referenced by gradient_structure::gradient_structure().

char lastchar ( char *  s)

Description not yet available.

Parameters

Definition at line 173 of file gradstrc.cpp.

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

void memory_allocate_error ( const char *  s,
void *  ptr 
)

Description not yet available.

Parameters

Definition at line 624 of file gradstrc.cpp.

Referenced by gradient_structure::gradient_structure().

void null_ptr_err_message ( void  )

Outputs null error message.

Definition at line 615 of file gradstrc.cpp.

Referenced by gradient_structure::~gradient_structure().

void spdll_exit ( int  ierr)

Definition at line 55 of file gradstrc.cpp.

Referenced by do_dll_housekeeping().

Variable Documentation

exitptr ad_exit =&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().

char ad_random_part[6]

Definition at line 85 of file gradstak.cpp.

int ctlc_flag = 0

Description not yet available.

Parameters

Definition at line 68 of file gradstrc.cpp.

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