ADMB Documentation  11.1.2496
 All Classes Files Functions Variables Typedefs Friends Defines
Public Attributes | Friends
grad_stack_entry Class Reference

Holds derivative information for arithmetic operators and math library functions. More...

#include <fvar.hpp>

Public Attributes

double * dep_addr
 Pointer to dependent variable.
void(* func )(void)
 < Pointer to function (if any) to be used for derivative calculation
double * ind_addr1
 Pointer to first independent variable.
double * ind_addr2
 Pointer to second independent variable.
double mult1
 First mutiplicand in chain rule multipication.
double mult2
 Second mutiplicand in chain rule multipication.

Friends

void default_evaluation (void)
 Description not yet available.
class grad_stack
void gradcalc (int nvar, const dvector &g)
 Compute the gradient from the data stored in the global gradient_structure.
void gradient_structure::jacobcalc (int nvar, const dmatrix &jac)
void gradloop ()
void slave_gradcalc (void)

Detailed Description

Holds derivative information for arithmetic operators and math library functions.

Used to record gradient information on the gradient stack for processing by gradcalc().

Definition at line 853 of file fvar.hpp.


Friends And Related Function Documentation

void default_evaluation ( void  ) [friend]

Description not yet available.

Parameters:

Definition at line 61 of file def_eval.cpp.

friend class grad_stack [friend]

Definition at line 868 of file fvar.hpp.

void gradcalc ( int  nvar,
const dvector g 
) [friend]

Compute the gradient from the data stored in the global gradient_structure.

Parameters:
nvarNumber of variables in the gradient.
_gVector from 1 to nvar. On return contains the gradient.

Definition at line 82 of file sgradclc.cpp.

void gradient_structure::jacobcalc ( int  nvar,
const dmatrix jac 
) [friend]
void gradloop ( ) [friend]
void slave_gradcalc ( void  ) [friend]

Member Data Documentation

void(* grad_stack_entry::func)(void)

< Pointer to function (if any) to be used for derivative calculation

Definition at line 857 of file fvar.hpp.

Referenced by gradcalc(), gradient_structure::jacobcalc(), grad_stack::set_gradient_stack(), grad_stack::set_gradient_stack2(), and grad_stack::set_gradient_stack4().

Second mutiplicand in chain rule multipication.

Definition at line 862 of file fvar.hpp.

Referenced by default_evaluation(), default_evaluation3(), default_evaluation3ind(), default_evaluation4ind(), and grad_stack::set_gradient_stack().

List of all members.


The documentation for this class was generated from the following file: