9 #if defined(__TURBOC__)
37 #if defined (AD_FAST_ASSIGN)
51 cerr <<
" Incompatible bounds in dvar_vector& dvar_vector::operator ="
52 " (const dvar_vector& t)\n";
58 constexpr
size_t sizeofdouble =
sizeof(double);
59 size_t size = (size_t)(mmax - mmin + 1);
60 memcpy(
va + mmin, t.
va + mmin, size * sizeofdouble);
86 double valuet =
value(t);
88 for (
int i=mmin; i<=mmax; i++)
117 for (
int i=mmin; i<=mmax; i++)
159 double* pdftmpi = dftmp.
get_v() +
min;
160 for (
int i = min; i <=
max; ++i)
187 assert(mmax >= mmin);
192 constexpr
size_t sizeofdouble =
sizeof(double);
193 size_t size = (size_t)(mmax - mmin + 1);
Description not yet available.
Base class for dvariable.
void memcpy(test_smartlist &dest, void *source, const size_t nsize)
memcpy for test_smartlist
Description not yet available.
void allocatec(const dvar_vector &)
Description not yet available.
Vector of double precision numbers.
int indexmin() const
Get minimum valid index.
friend dvector value(const dvar_vector &v1)
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.
void verify_identifier_string(const char *)
Verifies gradient stack string.
unsigned int size() const
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.
prevariable_position restore_prevariable_position()
void save_prevariable_position(const prevariable &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 dv_assign(void)
Adjoint to compute gradients for dvar_vector::operator=(const dvar_vector&)
unsigned int ncopies
Copy counter to enable shallow copies.
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
void dv_eqdoub(void)
Adjoint to compute gradient for dvar_vector::operator=(const double).
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 deallocate()
Deallocate dvar_vector memory.
dvar_vector & operator=(const dvar_vector &t)
Assign values from other t to dvar_vector.
void save_double_derivative(const double x, const prevariable_position &_pos)
Description not yet available.
static _THREAD grad_stack * GRAD_STACK1
void dv_eqprev(void)
Adjoint to compute gradient for dvar_vector::operator=(const prevariable&).
double x
< value of the variable