19 cerr <<
"Error -- vector size too small"
20 " in first_difference(const dvar_vector&)" <<
endl;
31 for (
int i=mmin; i<=mmax; i++)
59 for (
int i=dfx.indexmax()-1; i>=dfx.indexmin(); i--)
62 dfx.elem(i+1)+=dftmp.
elem(i);
63 dfx.elem(i)-=dftmp.
elem(i);
65 dfx.save_dvector_derivatives(x_pos);
double & elem_value(int i)
Vector of double precision numbers.
Description not yet available.
void DF_first_diference(void)
Description not yet available.
void verify_identifier_string(const char *)
Verifies gradient stack string.
unsigned int size() const
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.
prnstream & endl(prnstream &)
dvar_vector_position restore_dvar_vector_position()
void RETURN_ARRAYS_INCREMENT()
dvector first_difference(const dvector &values)
Returns dvector containing the differences of an values(i) and values(i + 1) for i = 1 to values...
Author: David Fournier Copyright (c) 2008-2012 Regents of the University of California.
static _THREAD gradient_structure * _instance
void initialize(void)
Initialze all elements of dvector to zero.
int save_identifier_string(const char *)
Writes a gradient stack verification string.
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.
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.