29 for (
int i = min; i <=
max; ++i)
73 double* pdfvtmp = dfvtmp.
get_v() +
min;
74 for (
int i = min; i <=
max; ++i)
80 *pdfv1 = *pdfvtmp * 2.0 *
x;
104 vtmp.elem_value(i)=x*x*
x;
138 dfv1(i)=dfvtmp(i)*3*x*
x;
140 dfv1.save_dvector_derivatives(v1pos);
159 vtmp.elem_value(i)=x2*x2;
193 dfv1(i)=dfvtmp(i)*4*x*x*
x;
195 dfv1.save_dvector_derivatives(v1pos);
Description not yet available.
double & elem_value(int i)
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void DF_dvsquare(void)
Description not yet available.
void DF_dvfourth(void)
Description not yet available.
void save_dvector_derivatives(const dvar_vector_position &pos) const
Puts the derivative values in a dvector into a dvar_vector's guts.
Description not yet available.
d3_array cube(const d3_array &m)
Description not yet available.
void verify_identifier_string(const char *)
Verifies gradient stack string.
Holds the data for the prevariable class.
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 save_dvar_vector_value(const dvar_vector &v)
dvar_vector_position restore_dvar_vector_position()
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void DF_dvcube(void)
Description not yet available.
static _THREAD gradient_structure * _instance
int save_identifier_string(const char *)
Writes a gradient stack verification string.
dvector restore_dvar_vector_value(const dvar_vector_position &tmp)
Restores the size, address, and value information for a dvar_vector.
void save_dvar_vector_position(const dvar_vector &v)
static _THREAD DF_FILE * fp
Stores the adjoint gradient data that will be processed by gradcalc.
dvector restore_dvar_vector_derivatives(const dvar_vector_position &tmp)
Description not yet available.
static _THREAD grad_stack * GRAD_STACK1
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
double square(const double value)
Return square of value; constant object.
double fourth(const double m)
Fourth power of a number; constant objects.
double x
< value of the variable