22 #include <iostream.hpp>
37 cerr <<
"Incompatible bounds in "
38 "prevariable operator * (const dvar_vector& v1, const dvar_vector& v2)"
47 const double * pt1=&cv1.
elem(mmin);
48 const double * pt1m=&cv1.
elem(mmax);
52 tmp+= *pt1++ * *pt2++;
57 for (
int i=mmin;i<=mmax;i++)
104 *pdf++=dftmp* *pc1++;
112 dfv2.elem(i)=dftmp*cv1.
elem(i);
116 dfv2.save_dvector_derivatives(v2pos);
void cvdv_dot(void)
Description not yet available.
double restore_prevariable_derivative()
double & elem_value(int i)
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
dvar_vector nograd_assign(dvector tmp)
Description not yet available.
Description not yet available.
Description not yet available.
void verify_identifier_string(const char *)
Verifies gradient stack string.
dvector restore_dvector_value(const dvector_position &tmp)
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.
void save_dvector_position(const dvector &v)
prnstream & endl(prnstream &)
void save_prevariable_position(const prevariable &v)
void save_dvector_value(const dvector &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.
static _THREAD gradient_structure * _instance
int save_identifier_string(const char *)
Writes a gradient stack verification string.
dvector_position restore_dvector_position()
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.
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.