ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
Typedefs | Functions | Variables
gradstrc.cpp File Reference

(* $Id$)

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.
void cleanup_temporary_files ()
 Close gradient and variable files.
void fill_ad_random_part (void)
char lastchar (char *s)
 Description not yet available.
void memory_allocate_error (const char *s, void *ptr)
 Description not yet available.
void null_ptr_err_message (void)
 Outputs null error message.
void RETURN_ARRAYS_DECREMENT (void)
 Decrements gradient_structure::RETURN_ARRAYS_PTR.
void RETURN_ARRAYS_INCREMENT (void)
 Increments gradient_structure::RETURN_ARRAYS_PTR.
void spdll_exit (int ierr)

Variables

exitptr ad_exit = &exit
fptr ad_printf = printf
char ad_random_part [6]
ofstream clogf
int ctlc_flag = 0
 Description not yet available.

Detailed Description

Description not yet available.

Definition in file gradstrc.cpp.


Typedef Documentation

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

Definition at line 46 of file gradstrc.cpp.


Function Documentation

void allocate_dvariable_space ( void  )

Description not yet available.

Parameters:

Definition at line 223 of file gradstrc.cpp.

Close gradient and variable files.

Free gradient structure memory.

Definition at line 175 of file gradstrc.cpp.

void fill_ad_random_part ( void  )

Definition at line 89 of file gradstak.cpp.

Referenced by gradient_structure::gradient_structure().

char lastchar ( char *  s)

Description not yet available.

Parameters:

Definition at line 154 of file gradstrc.cpp.

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

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

Description not yet available.

Parameters:

Definition at line 690 of file gradstrc.cpp.

Referenced by gradient_structure::gradient_structure().

void null_ptr_err_message ( void  )

Outputs null error message.

Definition at line 681 of file gradstrc.cpp.

Referenced by gradient_structure::~gradient_structure().

void spdll_exit ( int  ierr)

Definition at line 54 of file gradstrc.cpp.

Referenced by do_dll_housekeeping().


Variable Documentation

exitptr ad_exit = &exit

Definition at line 52 of file gradstrc.cpp.

Referenced by ad_comm::ad_comm(), initial_params::add_to_list(), initial_df1b2params::add_to_list(), quadratic_prior::add_to_list(), df1b2quadratic_prior::add_to_list(), adnewhandler(), adpool::adpool(), adpool::alloc(), dfpool::alloc(), factor::allocate(), param_init_bounded_number_matrix::allocate(), imatrix::allocate(), df3_one_vector::allocate(), df1_one_vector::allocate(), df1_two_vector::allocate(), df1_three_vector::allocate(), funnel_init_df1b2variable::allocate(), dvector::allocate(), ivector::allocate(), df3_three_vector::allocate(), df3_two_vector::allocate(), init_df1b2vector::allocate(), test_smartlist::allocate(), ptr_vector::allocate(), fixed_smartlist::allocate(), lvector::allocate(), fixed_smartlist2::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(), quadratic_prior::allocate(), dvar_vector::allocate(), dvar_matrix::allocate(), dmatrix::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(), funnel_init_var::allocate_all(), laplace_approximation_calculator::allocate_block_diagonal_stuff(), allocate_dvariable_space(), arr_new(), 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(), 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(), 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_FILE::DF_FILE(), df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfcholeski_sparse(), 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(), elem_div(), elem_prod(), admb::messages::error(), exp(), expm(), extract_diagonal(), 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(), first_difference(), fmm::fmin(), fmmt1::fmin(), adpool::free(), 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(), df1b2quadratic_prior::get_Lxu(), get_second_ders(), quadratic_prior::get_vHessian(), grad_stack::grad_stack(), 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::hybrid_mcmc_routine(), i3_array::i3_array(), 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(), 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(), log_comb(), log_density_negbinomial(), log_negbinomial_density(), lower_triangular_choleski_decomp_positive(), lower_triangular_solve(), lower_triangular_solve_trans(), lubksb(), lvector::lvector(), make_indvar_list(), function_minimizer::mcmc_routine(), mean(), memory_allocate_error(), function_minimizer::minimize(), negbinomial_density(), df1b2vector::noallocate(), nograd_assign_column(), nograd_assign_row(), double_index_guts::operator double(), index_guts::operator int(), vector_shape::operator new(), arr_link::operator new(), adstring_array::operator()(), vcubic_spline_function_array::operator()(), laplace_approximation_calculator::operator()(), ptr_vector::operator()(), dvar_vector_position::operator()(), operator*(), operator+(), dvector::operator+=(), df1b2matrix::operator+=(), dvar_vector::operator+=(), dvar_matrix::operator+=(), dmatrix::operator+=(), operator-(), dvector::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=(), independent_variables::operator=(), quadratic_prior::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=(), adstring_array::operator[](), ptr_vector::operator[](), 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(), dvar_matrix::read_from(), dmatrix::read_from(), grad_stack::read_grad_stack_buffer(), reorder(), df1b2variable::restore_adpool_pointer(), initial_df1b2params::restore_varsptr(), RETURN_ARRAYS_DECREMENT(), RETURN_ARRAYS_INCREMENT(), fixed_smartlist::rewind(), fixed_smartlist2::rewind(), dvector::safe_allocate(), ivector::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(), singval_decomp(), Sn(), solve(), solve_trans(), sort(), sqr(), sqrt(), 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(), ivector::~ivector(), and ptr_vector::~ptr_vector().

fptr ad_printf = printf
char ad_random_part[6]

Definition at line 87 of file gradstak.cpp.

ofstream clogf
int ctlc_flag = 0

Description not yet available.

Parameters:

Definition at line 67 of file gradstrc.cpp.

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