16 #if defined(ADDEBUG_PRINT)
17 extern int addebug_count;
22 #if defined(PRINT_DERS)
28 double d2f,
double d3f,
int bflag)
34 *derout <<
" ---------------------------------------- " <<
endl;
36 *derout <<
"Function: " << s <<
" " <<
"f = " << f
37 <<
" df = " << df <<
" d2f = " << d2f <<
" d3f = " << d3f <<
endl;
45 double df2,
double df11,
double df12,
double df22,
46 double df111,
double df112,
double df122,
double df222,
int bflag)
52 *derout <<
endl <<
" --------------------------------- " <<
endl;
54 *derout <<
"Function: " << s <<
" " <<
"f = " << f
60 <<
" df111 = " << df111
61 <<
" df112 = " << df112
62 <<
" df122 = " << df122
63 <<
" df222 = " << df222 <<
endl;
78 *derout <<
endl <<
" --------------------------------- " <<
endl;
81 *derout <<
" variable " << s <<
" address "
82 << int(px->
u) <<
endl;
83 *derout <<
"u\t\t = " << *px->
u <<
" ";
86 *derout <<
"udot\t\t = ";
88 *derout << px->
u_dot[i] <<
" ";
91 *derout <<
"u_bar\t\t = ";
93 *derout << px->
u_bar[i] <<
" ";
96 *derout <<
"u_dot_bar\t = ";
101 if (df1b2variable::passnumber>1)
103 *derout <<
"u_tilde\t\t = " << *px->
u_tilde <<
" ";
106 *derout <<
"u_dot_tilde\t = ";
111 *derout <<
"u_bar_tilde\t = ";
116 *derout <<
"u_dot_bar_tilde\t = ";
132 double * xd=
x.get_u_dot();
158 #if defined(CHECK_COUNT)
159 if (
ncount >= ncount_check)
168 #if defined(SAFE_ALL)
170 int slen=strlen(ids);
174 void * tmpptr=list.
bptr;
175 #if defined(SAFE_ALL)
207 cerr <<
"illegal value for df1b2variable::pass = "
232 #if defined(SAFE_ALL)
254 #if defined(SAFE_ALL)
261 #if defined(SAFE_ALL)
271 #if defined(PRINT_DERS)
276 double* pz_u_bar = pz->
u_bar;
277 double* px_u_bar = px->
u_bar;
278 for (
unsigned int i = 0; i < nvar; ++i)
280 *px_u_bar += *pz_u_bar;
286 for (
unsigned int i = 0; i < nvar; ++i)
288 *px_u_dot_bar += *pz_u_dot_bar;
292 #if defined(PRINT_DERS)
313 #if defined(SAFE_ALL)
315 int slen=strlen(ids);
339 #if defined(SAFE_ALL)
359 for (
unsigned int i = 0; i < nvar; ++i)
361 *z_bar_tilde += *x_bar_tilde;
365 for (
unsigned int i = 0; i < nvar; ++i)
367 *z_dot_bar_tilde += *x_dot_bar_tilde;
372 #if defined(PRINT_DERS)
398 #if defined(SAFE_ALL)
412 for (
unsigned int i = 0; i < nvar; ++i)
414 *px_u_dot_tilde += *pz_u_dot_tilde;
418 #if defined(PRINT_DERS)
461 for (
int i=mmin+1; i<=mmax; i++)
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 read_pass1_plus_eq_3(void)
Description not yet available.
void read_pass1_plus_eq_2(void)
Description not yet available.
#define ADUNCONST(type, obj)
Creates a shallow copy of obj that is not CONST.
Description not yet available.
int adptr_diff(void *x, void *y)
df1_two_variable fabs(const df1_two_variable &x)
void ncount_checker(int ncount, int ncount_check)
df1b2variable & operator+=(const df1b2variable &v)
Description not yet available.
void restoreposition(void)
Description not yet available.
int write_pass1_pluseq(const df1b2variable *px, df1b2variable *pz)
Description not yet available.
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 ad_read_pass1_plus_eq(void)
Description not yet available.
static int no_derivatives
Description not yet available.
Description not yet available.
void checkidentiferstring(const char *ids, test_smartlist &list)
Description not yet available.
void read_pass1_plus_eq_1(void)
Description not yet available.
dvector value(const df1_one_vector &v)