28 cerr <<
" Incompatible array bounds in "
29 "dvar_vector operator*(const dvar_matrix& m, const dvar_vector& x)\n";
44 tmp.elem_value(j)=
sum;
95 dfx.elem(i)+=dfsum*m.
elem(i,j);
116 cerr <<
" Incompatible array bounds in "
117 "dvar_vector operator*(const dvar_matrix& m, const dvar_vector& x)\n";
132 tmp.elem_value(j)=
sum;
170 int imax=dfx.indexmax();
171 int imin=dfx.indexmin();
176 for (
int i=imax; i>=imin; i--)
180 dfx.elem(i)+=dfsum*m.
elem(i,j);
dvar_vector & elem(int i)
double & elem_value(int i)
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
void save_dmatrix_position(const dmatrix &m)
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 save_dmatrix_value(const dmatrix &m)
Null class to allow specialized function overloads.
void verify_identifier_string(const char *)
Verifies gradient stack string.
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.
dmatrix restore_dvar_matrix_value(const dvar_matrix_position &mpos)
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.
void save_dmatrix_derivatives(const dvar_matrix_position &pos) const
Description not yet available.
static _THREAD gradient_structure * _instance
Description not yet available.
void initialize(void)
Initialze all elements of dvector to zero.
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)
dvar_matrix_position restore_dvar_matrix_position()
static _THREAD DF_FILE * fp
void save_dvar_matrix_position(const dvar_matrix &m)
void dvcm_prod(void)
Description not yet available.
Class definition of matrix with derivitive information .
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.
void save_dvar_matrix_value(const dvar_matrix &m)
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.
void initialize(void)
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
void dvdm_prod(void)
Description not yet available.
Description not yet available.