HalleyChebyAD
|
Responsibilites: Interfaces with ADOL-C. and Taping the function. More...
#include <ObjectiveFunction.h>
Public Member Functions | |
ObjectiveFunction (const int dimension_in) | |
ObjectiveFunction (const int dimension_in, double *x_initial_in, double(*eval_in)(const double *, const int), adouble(*eval_a_in)(const adouble *, const int), const string name_in) | |
ObjectiveFunction (const ObjectiveFunction &rhs) | |
void | swap (ObjectiveFunction &, ObjectiveFunction &) |
ObjectiveFunction & | operator= (ObjectiveFunction rhs) |
void | set_x_initial (void(*initial_pointpty)(double *, const int dimension)) |
double | tape_it (const double *x, const short int tape_number) |
void | print () const |
Public Attributes | |
double(* | eval )(const double *x, const int dim) |
adouble(* | eval_a )(const adouble *x, const int dim) |
double * | x_initial |
Responsibilites: Interfaces with ADOL-C. and Taping the function.
ObjectiveFunction::ObjectiveFunction | ( | const ObjectiveFunction & | rhs | ) |
Copy constructor
ObjectiveFunction & ObjectiveFunction::operator= | ( | ObjectiveFunction | rhs | ) |
Copy Assignment using swap-copy
void ObjectiveFunction::swap | ( | ObjectiveFunction & | first, |
ObjectiveFunction & | second | ||
) |
Swaps all fields of the ObjectiveFunctions
double ObjectiveFunction::tape_it | ( | const double * | x, |
const short int | tape_number | ||
) |
tapes the trace of the function eval_a with input double * x.