22 #include <iostream.hpp>
48 cerr <<
"Incompatible bounds in prevariable operator*(const dvar_vector&, const dvar_vector&)\n";
56 for (
int i = min; i <=
max; ++i)
58 tmp += pva1->
x * pva2->
x;
108 double* pdfv1 = dfv1.get_v() +
min;
110 for (
int i = min; i <=
max; ++i)
113 *pdfv1 = dftmp * *pcv2;
114 *pdfv2 = dftmp * *pcv1;
120 dfv1.save_dvector_derivatives(v1pos);
141 for (
int i = min; i <=
max; ++i)
178 for (
int i = min; i <=
max; ++i)
205 for (
int i = min; i <=
max; ++i)
Description not yet available.
double restore_prevariable_derivative()
int allocated(const ivector &v)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
dvar_vector nograd_assign(dvector tmp)
Description not yet available.
double sum(const d3_array &darray)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
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.
void verify_identifier_string(const char *)
Verifies gradient stack string.
dmatrix operator*(const d3_array &t, const dvector &v)
Description not yet available.
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_prevariable_position(const prevariable &v)
void save_dvar_vector_value(const dvar_vector &v)
dvar_vector_position restore_dvar_vector_position()
void RETURN_ARRAYS_INCREMENT()
int indexmax() const
Get maximum valid index.
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
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
Class definition of matrix with derivitive information .
Stores the adjoint gradient data that will be processed by gradcalc.
void RETURN_ARRAYS_DECREMENT()
static _THREAD grad_stack * GRAD_STACK1
class for things related to the gradient structures, including dimension of arrays, size of buffers, etc.
Fundamental data type for reverse mode automatic differentiation.
double x
< value of the variable