21 #include <iostream.hpp>
33 double * ind_addr1,
double mult1,
double * ind_addr2,
double mult2)
43 cerr <<
"Illegal ptr value" <<
endl;
76 RETURN_PTR->
v->
x = x * v2.
v->
x;
78 &(RETURN_PTR->
v->
x),&(v2.
v->
x),x);
90 RETURN_PTR->
v->
x = v1.
v->
x *
x;
92 &(RETURN_PTR->
v->
x),&(v1.
v->
x),x);
102 double tmp=1./(v1.
v->
x);
124 double* tmp=&((v1.
v)->
x);
void default_evaluation2(void)
Description not yet available.
Base class for dvariable.
double * ind_addr1
Pointer to first independent variable.
double mult2
Second mutiplicand in chain rule multipication.
void operator/=(const prevariable &v1)
Description not yet available.
static int no_derivatives
void write_grad_stack_buffer()
double * ind_addr2
Pointer to second independent variable.
dmatrix operator*(const d3_array &t, const dvector &v)
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.
prnstream & endl(prnstream &)
static dvariable * next_RETURN_PTR()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void default_evaluation(void)
Description not yet available.
grad_stack_entry * ptr_first
double_and_int * v
pointer to the data
double mult1
First mutiplicand in chain rule multipication.
void operator*=(const prevariable &v1)
Description not yet available.
static _THREAD grad_stack * GRAD_STACK1
grad_stack_entry * ptr_last
void(* func)(void)
< Pointer to function (if any) to be used for derivative calculation
double * dep_addr
Pointer to dependent variable.
Fundamental data type for reverse mode automatic differentiation.
double x
< value of the variable