Description not yet available. More...
#include <fvar.hpp>
Public Member Functions | |
grad_stack () | |
Default constructor. | |
~grad_stack () | |
Destructor. | |
int | decrement_current_gradfile_ptr (void) |
If there is a previous file set the handle to point to it otherwise return a -1. | |
char * | get_gradfile_name () |
Description not yet available. | |
int & | gradfile_handle () |
void | increment_current_gradfile_ptr (void) |
If there is another file set the handle to point to it otherwise we are out of room. | |
ostream & | operator<< (grad_stack) |
void | print () |
int | read_grad_stack_buffer (off_t &lpos) |
Description not yet available. | |
void | set_gbuffer_pointers (void) |
Description not yet available. | |
void | set_gradient_stack (void(*func)(void), double *dep_addr, double *ind_addr1=NULL, double mult1=0, double *ind_addr2=NULL, double mult2=0) |
Description not yet available. | |
void | set_gradient_stack (void(*func)(void), double *dep_addr, double *ind_addr1, double *ind_addr2) |
Description not yet available. | |
void | set_gradient_stack (void(*func)(void), double *dep_addr, double *ind_addr1, double mult1, double *ind_addr2, double mult2, double *ind_addr3, double mult3, double *ind_addr4, double mult4) |
Description not yet available. | |
void | set_gradient_stack (void(*func)(void), double *dep_addr, double *ind_addr1, double mult1, double *ind_addr2, double mult2, double *ind_addr3, double mult3) |
Description not yet available. | |
void | set_gradient_stack (void(*ptr)(void)) |
Description not yet available. | |
void | set_gradient_stack0 (void(*func)(void), double *dep_addr) |
Description not yet available. | |
void | set_gradient_stack1 (void(*func)(void), double *dep_addr, double *ind_addr1) |
Sets the gradient stack entry for a function or operator with a single independent variable. | |
void | set_gradient_stack2 (void(*func)(void), double *dep_addr, double *ind_addr1, double mult1) |
Description not yet available. | |
void | set_gradient_stack4 (void(*func)(void), double *dep_addr, double *ind_addr1, double *ind_addr2) |
Description not yet available. | |
void | write_grad_stack_buffer (void) |
Description not yet available. | |
Public Attributes | |
grad_stack_entry * | ptr |
Private Member Functions | |
void | create_gradfile () |
Description not yet available. | |
Private Attributes | |
int | _GRADFILE_PTR |
int | _GRADFILE_PTR1 |
int | _GRADFILE_PTR2 |
int | _VARSSAV_PTR |
off_t | end_pos |
off_t | end_pos1 |
off_t | end_pos2 |
char | gradfile_name [61] |
char | gradfile_name1 [61] |
char | gradfile_name2 [61] |
size_t | length |
grad_stack_entry * | ptr_first |
grad_stack_entry * | ptr_last |
size_t | true_length |
grad_stack_entry * | true_ptr_first |
char | var_store_file_name [61] |
Friends | |
void | cleanup_temporary_files () |
Close gradient and variable files. | |
void | default_evaluation (void) |
Description not yet available. | |
void | default_evaluation3ind (void) |
Description not yet available. | |
void | default_evaluation4ind (void) |
Description not yet available. | |
void | funnel_gradcalc (void) |
Description not yet available. | |
void | grad_chk (void) |
Description not yet available. | |
void | gradcalc (int nvar, const dvector &g) |
Compute the gradient from the data stored in the global gradient_structure. | |
class | gradient_structure |
void | gradloop () |
void | reset_gradient_stack (void) |
Rewind buffer. | |
void | slave_gradcalc (void) |
Default constructor.
Definition at line 106 of file gradstak.cpp.
Destructor.
Definition at line 234 of file gradstak.cpp.
void grad_stack::create_gradfile | ( | ) | [private] |
int grad_stack::decrement_current_gradfile_ptr | ( | void | ) |
If there is a previous file set the handle to point to it otherwise return a -1.
Definition at line 459 of file gradstak.cpp.
char * grad_stack::get_gradfile_name | ( | ) |
Description not yet available.
Definition at line 483 of file gradstak.cpp.
Referenced by read_grad_stack_buffer().
int & grad_stack::gradfile_handle | ( | ) |
Definition at line 474 of file gradstak.cpp.
Referenced by funnel_gradcalc(), and gradcalc().
void grad_stack::increment_current_gradfile_ptr | ( | void | ) |
If there is another file set the handle to point to it otherwise we are out of room.
Definition at line 443 of file gradstak.cpp.
ostream& grad_stack::operator<< | ( | grad_stack | ) |
void grad_stack::print | ( | ) |
int grad_stack::read_grad_stack_buffer | ( | off_t & | lpos | ) |
Description not yet available.
Definition at line 78 of file gst_read.cpp.
Referenced by default_evaluation3ind(), default_evaluation4ind(), funnel_gradcalc(), gradcalc(), and gradient_structure::jacobcalc().
void grad_stack::set_gbuffer_pointers | ( | void | ) |
void grad_stack::set_gradient_stack | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1 = NULL , |
||
double | mult1 = 0 , |
||
double * | ind_addr2 = NULL , |
||
double | mult2 = 0 |
||
) | [inline] |
Description not yet available.
Definition at line 987 of file fvar.hpp.
Referenced by acos(), ad_begin_funnel(), asin(), atan(), betacf(), bounded_cumd_norm(), cos(), cosh(), cube(), cumd_norm(), elem_div(), elem_prod(), exp(), fabs(), fourth(), funnel_gradcalc(), gammlnguts(), inv_cumd_beta_stable(), inv_cumd_gamma(), inv_cumd_norm_inner(), inv_cumd_normal_logistic_mixture(), inv_cumd_normal_mixture(), ldexp(), log(), log10(), operator*(), prevariable::operator*=(), operator+(), dvar_vector::operator+=(), operator-(), dvar_vector::operator-(), prevariable::operator-=(), operator/(), prevariable::operator/=(), dvar_vector::operator/=(), dvariable::operator=(), pow(), sfabs(), sigmoid(), sin(), sinh(), sqr(), sqrt(), square(), tan(), and tanh().
void grad_stack::set_gradient_stack | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1, | ||
double * | ind_addr2 | ||
) | [inline] |
void grad_stack::set_gradient_stack | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1, | ||
double | mult1, | ||
double * | ind_addr2, | ||
double | mult2, | ||
double * | ind_addr3, | ||
double | mult3, | ||
double * | ind_addr4, | ||
double | mult4 | ||
) | [inline] |
void grad_stack::set_gradient_stack | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1, | ||
double | mult1, | ||
double * | ind_addr2, | ||
double | mult2, | ||
double * | ind_addr3, | ||
double | mult3 | ||
) | [inline] |
void grad_stack::set_gradient_stack | ( | void(*)(void) | func | ) | [inline] |
void grad_stack::set_gradient_stack0 | ( | void(*)(void) | func, |
double * | dep_addr | ||
) |
Description not yet available.
Definition at line 505 of file gradstak.cpp.
Referenced by dvariable::dvariable().
void grad_stack::set_gradient_stack1 | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1 | ||
) |
Sets the gradient stack entry for a function or operator with a single independent variable.
func | Pointer to function to compute the derivative of the dependent variable with respect to the independent variable. Function prototype: void func(void); |
dep_addr | Address of dependent variable; pointer to double. |
ind_addr1 | Address of independent variable; pointer to double |
Definition at line 410 of file sgradclc.cpp.
Referenced by prevariable::operator+=().
void grad_stack::set_gradient_stack2 | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1, | ||
double | mult1 | ||
) | [inline] |
void grad_stack::set_gradient_stack4 | ( | void(*)(void) | func, |
double * | dep_addr, | ||
double * | ind_addr1, | ||
double * | ind_addr2 | ||
) | [inline] |
Description not yet available.
Definition at line 1171 of file fvar.hpp.
Referenced by operator+().
void grad_stack::write_grad_stack_buffer | ( | void | ) |
Description not yet available.
Definition at line 281 of file gradstak.cpp.
Referenced by set_gradient_stack(), set_gradient_stack2(), and set_gradient_stack4().
void cleanup_temporary_files | ( | ) | [friend] |
Close gradient and variable files.
Free gradient structure memory.
Definition at line 175 of file gradstrc.cpp.
void default_evaluation | ( | void | ) | [friend] |
void default_evaluation3ind | ( | void | ) | [friend] |
void default_evaluation4ind | ( | void | ) | [friend] |
void funnel_gradcalc | ( | void | ) | [friend] |
void grad_chk | ( | void | ) | [friend] |
Compute the gradient from the data stored in the global gradient_structure.
nvar | Number of variables in the gradient. |
_g | Vector from 1 to nvar. On return contains the gradient. |
Definition at line 86 of file sgradclc.cpp.
friend class gradient_structure [friend] |
void gradloop | ( | ) | [friend] |
void reset_gradient_stack | ( | void | ) | [friend] |
Rewind buffer.
Definition at line 392 of file sgradclc.cpp.
void slave_gradcalc | ( | void | ) | [friend] |
int grad_stack::_GRADFILE_PTR [private] |
Definition at line 895 of file fvar.hpp.
Referenced by funnel_gradcalc(), gradcalc(), reset_gradient_stack(), and gradient_structure::save_dependent_variable_position().
int grad_stack::_GRADFILE_PTR1 [private] |
int grad_stack::_GRADFILE_PTR2 [private] |
int grad_stack::_VARSSAV_PTR [private] |
off_t grad_stack::end_pos [private] |
off_t grad_stack::end_pos1 [private] |
off_t grad_stack::end_pos2 [private] |
char grad_stack::gradfile_name[61] [private] |
char grad_stack::gradfile_name1[61] [private] |
Definition at line 900 of file fvar.hpp.
Referenced by cleanup_temporary_files().
char grad_stack::gradfile_name2[61] [private] |
Definition at line 901 of file fvar.hpp.
Referenced by cleanup_temporary_files().
size_t grad_stack::length [private] |
Definition at line 887 of file fvar.hpp.
Referenced by default_evaluation3ind(), default_evaluation4ind(), funnel_gradcalc(), gradcalc(), and gradient_structure::jacobcalc().
Definition at line 891 of file fvar.hpp.
Referenced by default_evaluation(), default_evaluation0(), default_evaluation1(), default_evaluation1m(), default_evaluation2(), default_evaluation3(), default_evaluation3ind(), default_evaluation4(), default_evaluation4ind(), default_evaluation4m(), df_eq_pvdoub(), df_minus_eq_pvpv(), df_plus_eq_pvpv(), funnel_gradcalc(), gradcalc(), gradient_structure::jacobcalc(), reset_gradient_stack(), gradient_structure::save_dependent_variable_position(), set_gradient_stack(), set_gradient_stack2(), and set_gradient_stack4().
grad_stack_entry* grad_stack::ptr_first [private] |
Definition at line 881 of file fvar.hpp.
Referenced by funnel_gradcalc(), gradcalc(), gradient_structure::jacobcalc(), and reset_gradient_stack().
grad_stack_entry* grad_stack::ptr_last [private] |
Definition at line 882 of file fvar.hpp.
Referenced by set_gradient_stack(), set_gradient_stack2(), and set_gradient_stack4().
size_t grad_stack::true_length [private] |
grad_stack_entry* grad_stack::true_ptr_first [private] |
Definition at line 880 of file fvar.hpp.
Referenced by gradient_structure::gradient_structure().
char grad_stack::var_store_file_name[61] [private] |
Definition at line 902 of file fvar.hpp.
Referenced by cleanup_temporary_files().
Generated on Tue Mar 8 2016 19:51:40 for ADMB Documentation by 1.8.0 |