16 double&
x =
value(variable);
17 RETURN_PTR->
v->
x = x *
x;
20 &(RETURN_PTR->
v->
x), &(variable.
v->
x), 2 * x );
38 for (
int i = min; i <=
max; ++i)
40 *presultsi =
square(*pmatrixi);
void default_evaluation2(void)
Description not yet available.
Base class for dvariable.
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.
static dvariable * next_RETURN_PTR()
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
double_and_int * v
pointer to the data
Class definition of matrix with derivitive information .
void allocate(int nrl, int nrh, int ncl, int nch)
Allocates AD variable matrix with dimensions nrl to nrh by ncl to nch.
dvector value(const df1_one_vector &v)
static _THREAD grad_stack * GRAD_STACK1
double square(const double value)
Return square of value; constant object.
Fundamental data type for reverse mode automatic differentiation.
double x
< value of the variable