ADMB Documentation
-a65f1c97
|
Stores the adjoint gradient data that will be processed by gradcalc. More...
#include <gradient_structure.h>
Public Attributes | |
union { | |
char fourb [sizeof(OFF_T)] | |
OFF_T offset | |
}; | |
char * | buff |
char | cmpdif_file_name [81] |
int | file_ptr |
OFF_T | toffset |
Private Attributes | |
OFF_T | buff_end |
size_t | buff_size |
Stores the adjoint gradient data that will be processed by gradcalc.
Definition at line 283 of file gradient_structure.h.
|
inline |
Default uses gradient_structure::CMPDIF_BUFFER_SIZE.
Definition at line 287 of file gradient_structure.h.
|
delete |
Do not allow copy contructor.
|
inline |
User defined size with default id.
Definition at line 291 of file gradient_structure.h.
DF_FILE::DF_FILE | ( | const size_t | nbytes, |
const unsigned int | id | ||
) |
Constructor to allocate buffer and storage output file.
nbytes | size of buffer |
id | added to filename if greater than default zero. |
Definition at line 97 of file df_file.cpp.
DF_FILE::~DF_FILE | ( | ) |
Destructor.
Definition at line 233 of file df_file.cpp.
void DF_FILE::fread | ( | void * | s, |
const size_t | num_bytes | ||
) |
Reads num_bytes from buffer and copies to s.
s | pointer to copy bytes from. |
num_bytes | number of bytes to read from buffer. |
Definition at line 270 of file df_file.cpp.
Referenced by get_string_marker(), report_gradstack_flag(), report_gradstack_flag2(), restore_ad_pointer(), restore_d3_array_position(), restore_dmatrix_position(), restore_double_value(), restore_dvar_matrix_position(), restore_dvar_vector_position(), restore_dvar_vector_value(), restore_dvector_position(), restore_dvector_value(), restore_imatrix_position(), restore_int_value(), restore_ivector_position(), restore_ivector_value(), restore_pointer_value(), restore_prevariable_derivative(), restore_prevariable_position(), restore_prevariable_value(), and verify_identifier_string().
void DF_FILE::fread | ( | const int & | _x | ) |
void DF_FILE::fread | ( | const double & | _x | ) |
void DF_FILE::fread | ( | void *& | x | ) |
void DF_FILE::fwrite | ( | const void * | s, |
const size_t | num_bytes | ||
) |
Reads num_bytes from s and writes to buffer.
s | pointer to read bytes from. |
num_bytes | number of bytes to write to buffer. |
Definition at line 296 of file df_file.cpp.
Referenced by gradient_structure::funnel_gradcalc(), save_ad_pointer(), save_d3_array_position(), save_dmatrix_position(), save_double_value(), save_dvar_matrix_position(), save_dvar_vector_position(), save_dvar_vector_value(), save_dvector_position(), save_dvector_value(), save_identifier_string(), save_imatrix_position(), save_int_value(), save_ivector_position(), save_ivector_value(), save_pointer_value(), save_prevariable_position(), save_prevariable_value(), and set_gradstack_flag().
void DF_FILE::fwrite | ( | const int & | x | ) |
void DF_FILE::fwrite | ( | double | x | ) |
void DF_FILE::fwrite | ( | void * | ptr | ) |
void DF_FILE::read_cmpdif_stack_buffer | ( | OFF_T & | lpos | ) |
Description not yet available.
Definition at line 328 of file df_file.cpp.
Referenced by fread(), and gradient_structure::jacobcalc().
d3_array_position DF_FILE::restore_d3_array_position | ( | ) |
Definition at line 93 of file cmpdif6.cpp.
Referenced by restore_d3_array_position().
d3_array DF_FILE::restore_d3_array_value | ( | const d3_array_position & | mpos | ) |
Definition at line 127 of file cmpdif5.cpp.
Referenced by restore_d3_array_value().
dmatrix_position DF_FILE::restore_dmatrix_position | ( | ) |
Definition at line 147 of file cmpdif6.cpp.
Referenced by cmdm_prod(), cmdv_prod(), df_xdet(), df_xldet(), dfinvpret(), dmcm_prod(), dmdv_solve(), restore_d3_array_value(), and restore_dmatrix_position().
dmatrix DF_FILE::restore_dmatrix_value | ( | const dmatrix_position & | mpos | ) |
Definition at line 100 of file cmpdif5.cpp.
Referenced by cmdm_prod(), cmdv_prod(), df_xdet(), df_xldet(), dfinvpret(), dmcm_prod(), dmdv_solve(), restore_d3_array_value(), and restore_dmatrix_value().
double DF_FILE::restore_double_value | ( | ) |
Definition at line 186 of file cmpdif8.cpp.
Referenced by DF_cdble_dv_div(), DF_cdble_dv_diveq(), DF_dv_double_prod(), DF_dvcpow(), DF_dvpow(), df_xdet(), df_xldet(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), funnel_derivatives(), and restore_double_value().
dvar_matrix_position DF_FILE::restore_dvar_matrix_position | ( | ) |
Definition at line 114 of file cmpdif6.cpp.
Referenced by cmdm_prod(), df_ln_det_choleski(), df_xdet(), df_xldet(), dfbltsolve(), dfcholeski_decomp(), dfcholeski_decomp_banded(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), dfempirical_covarv(), dfempirical_covarv_partial(), dfinvpret(), dfmatinit(), dfmattrans(), dfouter_prodvv(), dmcm_prod(), dmcv_prod(), dmdm_prod(), dmdv_prod(), dmdv_solve(), dvcm_prod(), dvdm_prod(), and restore_dvar_matrix_position().
dmatrix DF_FILE::restore_dvar_matrix_value | ( | const dvar_matrix_position & | mpos | ) |
Definition at line 74 of file cmpdif5.cpp.
Referenced by df_ln_det_choleski(), dfcholeski_decomp(), dfcholeski_decomp_positive(), dfempirical_covarv(), dfempirical_covarv_partial(), dmdm_prod(), dmdv_prod(), dvcm_prod(), dvdm_prod(), and restore_dvar_matrix_value().
dvar_vector_position DF_FILE::restore_dvar_vector_position | ( | void | ) |
Definition at line 69 of file cmpdif4.cpp.
Referenced by cmdv_prod(), cvdv_add(), cvdv_dot(), 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(), dfouter_prodvv(), dmcv_prod(), dmdv_prod(), dmdv_solve(), dv_assign(), dv_eqdoub(), dv_eqprev(), dv_init(), dv_minuseq(), dv_pluseq(), dv_subassign(), dv_xminuseq(), dv_xpluseq(), dvcm_prod(), dvcv_add(), dvcv_dot(), dvcv_elem_div(), dvcv_elem_prod(), dvcv_sub(), dvdm_prod(), dvdv_add(), dvdv_dot(), dvdv_elem_div(), dvdv_elem_prod(), dvdv_sub(), report_dvar_vector_derivatives(), restore_banded_lower_triangular_dvar_matrix_value(), restore_banded_symmetric_dvar_matrix_value(), restore_dvar_matrix_value(), restore_dvar_vector_position(), restore_lower_triangular_dvar_matrix_value(), and X_dv_sum().
dvector DF_FILE::restore_dvar_vector_value | ( | const dvar_vector_position & | tmp | ) |
Definition at line 231 of file cmpdif4.cpp.
Referenced by restore_dvar_matrix_value(), and restore_dvar_vector_value().
dvector_position DF_FILE::restore_dvector_position | ( | ) |
Definition at line 88 of file cmpdif4.cpp.
Referenced by cvdv_dot(), cvdv_elem_div(), cvdv_elem_prod(), DF_ccv_dble_prod(), DF_cdvpow(), df_xdet(), df_xldet(), dfinvpret(), dmdv_solve(), dvcv_dot(), dvcv_elem_div(), dvcv_elem_prod(), dvdv_elem_div(), funnel_derivatives(), restore_dmatrix_value(), and restore_dvector_position().
dvector DF_FILE::restore_dvector_value | ( | const dvector_position & | tmp | ) |
Definition at line 178 of file cmpdif4.cpp.
Referenced by cvdv_dot(), cvdv_elem_div(), cvdv_elem_prod(), DF_cdvpow(), df_xdet(), df_xldet(), dfinvpret(), dmdv_solve(), dvcv_dot(), dvcv_elem_div(), dvcv_elem_prod(), dvdv_elem_div(), funnel_derivatives(), restore_dmatrix_value(), and restore_dvector_value().
imatrix_position DF_FILE::restore_imatrix_position | ( | ) |
Definition at line 63 of file cmpdif9.cpp.
Referenced by dfempirical_covarv_partial(), and restore_imatrix_position().
imatrix DF_FILE::restore_imatrix_value | ( | const imatrix_position & | mpos | ) |
Definition at line 89 of file cmpdif9.cpp.
Referenced by dfempirical_covarv_partial(), and restore_imatrix_value().
int DF_FILE::restore_int_value | ( | ) |
Definition at line 201 of file cmpdif8.cpp.
Referenced by df_check_derivative_values_indexed(), df_check_derivative_values_indexed_break(), dfcholeski_sparse(), dfempirical_covarv_partial(), funnel_derivatives(), and restore_int_value().
ivector_position DF_FILE::restore_ivector_position | ( | ) |
Definition at line 49 of file cmpdif4.cpp.
Referenced by df_xdet(), df_xldet(), dfinvpret(), dmdv_solve(), dv_subassign(), restore_imatrix_value(), and restore_ivector_position().
ivector DF_FILE::restore_ivector_value | ( | const ivector_position & | tmp | ) |
Definition at line 202 of file cmpdif4.cpp.
Referenced by restore_imatrix_value(), and restore_ivector_value().
void * DF_FILE::restore_pointer_value | ( | ) |
Definition at line 216 of file cmpdif8.cpp.
Referenced by restore_pointer_value().
double DF_FILE::restore_prevariable_derivative | ( | void | ) |
Definition at line 147 of file cmpdif8.cpp.
Referenced by cvdv_dot(), df_ln_det_choleski(), df_xdet(), df_xldet(), dmdv_solve(), dvcv_dot(), dvdv_dot(), restore_prevariable_derivative(), and X_dv_sum().
prevariable_position DF_FILE::restore_prevariable_position | ( | void | ) |
Definition at line 43 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(), dfcholeski_decomp_banded_positive(), dfcholeski_decomp_positive(), dv_eqprev(), dv_xminuseq(), dv_xpluseq(), funnel_derivatives(), and restore_prevariable_position().
double DF_FILE::restore_prevariable_value | ( | void | ) |
Definition at line 168 of file cmpdif8.cpp.
Referenced by DF_cdvpow(), DF_dble_dv_div(), DF_dv_cdble_div(), DF_dv_dble_div(), DF_dv_dble_prod(), DF_dvdvpow(), DF_vdble_dv_diveq(), and restore_prevariable_value().
void DF_FILE::save_d3_array_position | ( | const d3_array & | a | ) |
Definition at line 63 of file cmpdif6.cpp.
Referenced by d3_array::save_d3_array_position().
void DF_FILE::save_d3_array_value | ( | const d3_array & | a | ) |
Definition at line 50 of file cmpdif5.cpp.
Referenced by d3_array::save_d3_array_value().
void DF_FILE::save_dmatrix_position | ( | const dmatrix & | m | ) |
Definition at line 31 of file cmpdif6.cpp.
Referenced by det(), inv(), ln_det(), operator*(), save_d3_array_value(), dmatrix::save_dmatrix_position(), and solve().
void DF_FILE::save_dmatrix_value | ( | const dmatrix & | m | ) |
Definition at line 26 of file cmpdif5.cpp.
Referenced by det(), inv(), ln_det(), operator*(), save_d3_array_value(), dmatrix::save_dmatrix_value(), banded_symmetric_dmatrix::save_dmatrix_value(), and solve().
void DF_FILE::save_double_value | ( | double | x | ) |
Definition at line 94 of file cmpdif8.cpp.
Referenced by choleski_decomp_positive(), det(), gradient_structure::funnel_gradcalc(), ln_det(), operator*(), operator/(), dvar_vector::operator/=(), pow(), and save_double_value().
void DF_FILE::save_dvar_matrix_position | ( | const dvar_matrix & | m | ) |
Definition at line 345 of file cmpdif5.cpp.
Referenced by choleski_decomp(), choleski_decomp_positive(), det(), empirical_covariance(), dvar_matrix::initialize(), inv(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), operator*(), outer_prod(), dvar_matrix::save_dvar_matrix_position(), banded_symmetric_dvar_matrix::save_dvar_matrix_position(), banded_lower_triangular_dvar_matrix::save_dvar_matrix_position(), solve(), and trans().
void DF_FILE::save_dvar_matrix_value | ( | const dvar_matrix & | m | ) |
Definition at line 252 of file cmpdif4.cpp.
Referenced by choleski_decomp(), choleski_decomp_positive(), empirical_covariance(), ln_det_choleski(), ln_det_choleski_error(), operator*(), dvar_matrix::save_dvar_matrix_value(), banded_symmetric_dvar_matrix::save_dvar_matrix_value(), banded_lower_triangular_dvar_matrix::save_dvar_matrix_value(), and solve().
void DF_FILE::save_dvar_vector_position | ( | const dvar_vector & | v | ) |
Definition at line 214 of file cmpdif3.cpp.
Referenced by atan(), cos(), cube(), elem_div(), elem_prod(), exp(), first_difference(), fourth(), dvar_vector::initialize(), log(), mfexp(), dvar_vector::operator()(), operator*(), operator+(), dvar_vector::operator+=(), operator-(), dvar_vector::operator-(), dvar_vector::operator-=(), operator/(), dvar_vector::operator/=(), dvar_vector::operator=(), outer_prod(), pow(), report_derivatives(), save_dvar_matrix_value(), dvar_vector::save_dvar_vector_position(), sin(), solve(), sqrt(), square(), sum(), tan(), and varchol().
void DF_FILE::save_dvar_vector_value | ( | const dvar_vector & | v | ) |
Definition at line 106 of file cmpdif4.cpp.
Referenced by atan(), cos(), cube(), elem_div(), elem_prod(), exp(), fourth(), log(), mfexp(), operator*(), operator/(), dvar_vector::operator/=(), outer_prod(), pow(), save_dvar_matrix_value(), dvar_vector::save_dvar_vector_value(), sin(), solve(), sqrt(), square(), and tan().
void DF_FILE::save_dvector_position | ( | const dvector & | v | ) |
Definition at line 32 of file cmpdif4.cpp.
Referenced by det(), elem_div(), elem_prod(), gradient_structure::funnel_gradcalc(), inv(), ln_det(), operator*(), pow(), save_dmatrix_value(), dvector::save_dvector_position(), and solve().
void DF_FILE::save_dvector_value | ( | const dvector & | v | ) |
Definition at line 130 of file cmpdif4.cpp.
Referenced by det(), elem_div(), elem_prod(), gradient_structure::funnel_gradcalc(), inv(), ln_det(), operator*(), pow(), save_dmatrix_value(), dvector::save_dvector_value(), and solve().
void DF_FILE::save_imatrix_position | ( | const imatrix & | m | ) |
Definition at line 39 of file cmpdif9.cpp.
Referenced by empirical_covariance(), and imatrix::save_imatrix_position().
void DF_FILE::save_imatrix_value | ( | const imatrix & | m | ) |
Definition at line 24 of file cmpdif9.cpp.
Referenced by empirical_covariance(), and imatrix::save_imatrix_value().
void DF_FILE::save_int_value | ( | int | x | ) |
Definition at line 108 of file cmpdif8.cpp.
Referenced by check_derivative_values(), check_derivative_values_break(), empirical_covariance(), gradient_structure::funnel_gradcalc(), save_int_value(), and varchol().
void DF_FILE::save_ivector_position | ( | const ivector & | v | ) |
Definition at line 198 of file cmpdif3.cpp.
Referenced by det(), inv(), ln_det(), dvar_vector::operator()(), save_imatrix_value(), ivector::save_ivector_position(), and solve().
void DF_FILE::save_ivector_value | ( | const ivector & | v | ) |
Definition at line 152 of file cmpdif4.cpp.
Referenced by det(), inv(), ln_det(), dvar_vector::operator()(), save_imatrix_value(), ivector::save_ivector_value(), and solve().
void DF_FILE::save_pointer_value | ( | void * | ptr | ) |
Definition at line 122 of file cmpdif8.cpp.
Referenced by save_pointer_value().
void DF_FILE::save_prevariable_position | ( | const prevariable & | v | ) |
Definition at line 60 of file cmpdif8.cpp.
Referenced by choleski_decomp_positive(), det(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), operator*(), operator+(), dvar_vector::operator+=(), operator-(), dvar_vector::operator-=(), operator/(), dvar_vector::operator/=(), dvar_vector::operator=(), pow(), prevariable::save_prevariable_position(), solve(), and sum().
void DF_FILE::save_prevariable_value | ( | const prevariable & | v | ) |
Definition at line 76 of file cmpdif8.cpp.
Referenced by operator*(), operator/(), dvar_vector::operator/=(), pow(), and prevariable::save_prevariable_value().
void DF_FILE::write_cmpdif_stack_buffer | ( | void | ) |
Description not yet available.
Definition at line 350 of file df_file.cpp.
Referenced by fwrite(), and gradient_structure::jacobcalc().
union { ... } |
char* DF_FILE::buff |
Definition at line 298 of file gradient_structure.h.
Referenced by DF_FILE(), fread(), fwrite(), read_cmpdif_stack_buffer(), write_cmpdif_stack_buffer(), and ~DF_FILE().
|
private |
Definition at line 378 of file gradient_structure.h.
Referenced by DF_FILE(), fwrite(), read_cmpdif_stack_buffer(), and write_cmpdif_stack_buffer().
|
private |
Definition at line 382 of file gradient_structure.h.
Referenced by DF_FILE(), fread(), read_cmpdif_stack_buffer(), and write_cmpdif_stack_buffer().
char DF_FILE::cmpdif_file_name[81] |
Definition at line 305 of file gradient_structure.h.
Referenced by DF_FILE(), read_cmpdif_stack_buffer(), write_cmpdif_stack_buffer(), and ~DF_FILE().
int DF_FILE::file_ptr |
Definition at line 306 of file gradient_structure.h.
Referenced by DF_FILE(), fread(), gradient_structure::jacobcalc(), read_cmpdif_stack_buffer(), gradient_structure::save_dependent_variable_position(), write_cmpdif_stack_buffer(), and ~DF_FILE().
char DF_FILE::fourb[sizeof(OFF_T)] |
Definition at line 303 of file gradient_structure.h.
Referenced by read_cmpdif_stack_buffer(), and write_cmpdif_stack_buffer().
OFF_T DF_FILE::offset |
Definition at line 302 of file gradient_structure.h.
Referenced by DF_FILE(), fread(), fwrite(), gradient_structure::jacobcalc(), and gradient_structure::save_dependent_variable_position().
OFF_T DF_FILE::toffset |
Definition at line 299 of file gradient_structure.h.
Referenced by DF_FILE(), fread(), fwrite(), and gradient_structure::jacobcalc().
Generated on Wed Sep 7 2022 00:01:33 for ADMB Documentation by 1.8.5 |