35 #if defined(CHECK_COUNT)
36 if (
ncount >= ncount_check)
42 +
sizeof(
double)+nvar*
sizeof(double);
64 memcpy(
list,px->get_u_dot(),nvar*
sizeof(double));
91 cerr <<
"illegal value for df1b2variable::pass = "
124 #if defined(SAFE_ARRAYS)
132 list.
bptr+=
sizeof(
char*);
134 list.
bptr+=
sizeof(double);
135 xdot=(
double*)list.
bptr;
149 size_t total_bytes=2*nvar*
sizeof(double);
151 #if defined(SAFE_ALL)
153 int slen=strlen(ids);
158 void * tmpptr2=list2.
bptr;
160 #if defined(SAFE_ALL)
171 #if defined(PRINT_DERS)
178 double df=(pf->
df)(xu);
179 double d2f=(pf->
d2f)(xu);
182 for (
size_t i=0;i<nvar;i++)
187 for (
size_t i=0;i<nvar;i++)
192 for (
size_t i=0;i<nvar;i++)
199 for (
size_t i=0;i<nvar;i++)
203 for (
size_t i=0;i<nvar;i++)
208 #if defined(PRINT_DERS)
229 +
sizeof(
double)+nvar*
sizeof(double);
231 #if defined(SAFE_ALL)
233 int slen=strlen(ids);
251 int num_bytes2=*nlist2.
bptr;
266 #if defined(SAFE_ARRAYS)
275 list.
bptr+=
sizeof(
char*);
277 list.
bptr+=
sizeof(double);
278 xdot=(
double*)list.
bptr;
284 zbar=(
double*)list2.
bptr;
285 zdotbar=(
double*)(list2.
bptr+nvar*
sizeof(double));
293 #if defined(PRINT_DERS)
302 for (
size_t i=0;i<nvar;i++)
305 z_dot_bar_tilde[i]=0;
308 double df=(pf->
df)(xu);
309 double d2f=(pf->
d2f)(xu);
310 double d3f=(pf->
d3f)(xu);
311 for (
size_t i=0;i<nvar;i++)
314 *x_tilde+=d2f*zbar[i]*x_bar_tilde[i];
316 z_bar_tilde[i]+=df*x_bar_tilde[i];
319 for (
size_t i=0;i<nvar;i++)
322 *x_tilde+=d2f*zdotbar[i]*x_dot_bar_tilde[i];
324 z_dot_bar_tilde[i]+=df*x_dot_bar_tilde[i];
327 for (
size_t i=0;i<nvar;i++)
332 x_dot_tilde[i]+=d2f*zdotbar[i]*x_bar_tilde[i];
333 z_dot_bar_tilde[i]+=d2f*xdot[i]*x_bar_tilde[i];
334 *x_tilde+=d3f*xdot[i]*zdotbar[i]*x_bar_tilde[i];
337 #if defined(PRINT_DERS)
368 #if defined(SAFE_ARRAYS)
376 list.
bptr+=
sizeof(
char*);
378 list.
bptr+=
sizeof(double);
379 xdot=(
double*)list.
bptr;
382 #if defined(PRINT_DERS)
389 double df=(pf->
df)(xu);
390 double d2f=(pf->
d2f)(xu);
393 for (
size_t i=0;i<nvar;i++)
398 for (
size_t i=0;i<nvar;i++)
404 for (
size_t i=0;i<nvar;i++)
408 #if defined(PRINT_DERS)
void check_buffer_size(const size_t)
Description not yet available.
df1b2_gradlist * f1b2gradlist
void memcpy(test_smartlist &dest, void *source, const size_t nsize)
memcpy for test_smartlist
void ad_read_pass1x(void)
Description not yet available.
void read_pass1_1x(void)
Description not yet available.
void read_pass1_2x(void)
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
int adptr_diff(void *x, void *y)
void ncount_checker(int ncount, int ncount_check)
void restoreposition(void)
Description not yet available.
Description not yet available.
This is a function object for a function of one variable which stores the functions which calculate t...
Description not yet available.
prnstream & endl(prnstream &)
void print_derivatives(const adstring &s, double f, double df, double d2f, double d3f, int bflag)
Description not yet available.
void read_pass1_3x(void)
Description not yet available.
Description not yet available.
int write_pass1x(const df1b2variable *_px, df1b2variable *pz, df1b2function1 *pf)
Description not yet available.
Description not yet available.
void checkidentiferstring(const char *ids, test_smartlist &list)
Description not yet available.
void ad_read_pass2x(void)