Base class for dvariable. More...
#include <fvar.hpp>
Public Member Functions | |
double_and_int *& | get_v () |
double_and_int * | get_v () const |
void | initialize (void) |
Description not yet available. | |
int | operator!= (const prevariable &v1) const |
Description not yet available. | |
int | operator!= (double v1) const |
Description not yet available. | |
void | operator*= (const prevariable &v1) |
Description not yet available. | |
void | operator*= (double v1) |
Description not yet available. | |
void | operator+= (const prevariable &t1) |
Description not yet available. | |
void | operator+= (double t1) |
Description not yet available. | |
void | operator-= (const prevariable &t1) |
Description not yet available. | |
void | operator-= (double t1) |
Description not yet available. | |
void | operator/= (const prevariable &v1) |
Description not yet available. | |
void | operator/= (double v1) |
Description not yet available. | |
int | operator< (const prevariable &v1) const |
Description not yet available. | |
int | operator< (double v1) const |
Description not yet available. | |
int | operator<= (const prevariable &v1) const |
Description not yet available. | |
int | operator<= (double v1) const |
Description not yet available. | |
prevariable & | operator= (const prevariable &) |
Assigns a value to a prevariable object. | |
prevariable & | operator= (double) |
Assigns a value to a prevariable object. | |
int | operator== (const prevariable &v1) const |
Description not yet available. | |
int | operator== (double v1) const |
Description not yet available. | |
int | operator> (const prevariable &v1) const |
Description not yet available. | |
int | operator> (double v1) const |
Description not yet available. | |
int | operator>= (const prevariable &v1) const |
Description not yet available. | |
int | operator>= (double v1) const |
Description not yet available. | |
double | restore_prevariable_derivative (void) |
prevariable_position | restore_prevariable_position (void) |
double | restore_prevariable_value (void) |
void | save_prevariable_position (void) const |
Description not yet available. | |
void | save_prevariable_value (void) const |
Description not yet available. | |
double * | xadr () |
double & | xval () |
Public Attributes | |
double_and_int * | v |
pointer to the data | |
Protected Member Functions | |
prevariable () | |
Default constructor. | |
prevariable (double_and_int *u) | |
Friends | |
prevariable & | acos (const prevariable &t1) |
Description not yet available. | |
double * | address (const prevariable &v1) |
prevariable & | asin (const prevariable &t1) |
Description not yet available. | |
prevariable & | atan (const prevariable &t1) |
Description not yet available. | |
prevariable & | atan2 (const prevariable &t1, const prevariable &t2) |
Description not yet available. | |
prevariable & | atan2 (const prevariable &t1, double t2) |
Description not yet available. | |
prevariable & | atan2 (double t1, const prevariable &t2) |
Description not yet available. | |
class | banded_lower_triangular_dvar_matrix |
class | banded_symmetric_dvar_matrix |
prevariable & | cos (const prevariable &t1) |
Description not yet available. | |
prevariable & | cosh (const prevariable &t1) |
Description not yet available. | |
class | dvar3_array |
class | dvar_matrix |
class | dvar_vector |
class | dvar_vector_iterator |
prevariable & | exp (const prevariable &t1) |
Compute exponential variable. | |
prevariable & | fabs (const prevariable &t1) |
Absolute value. | |
char * | fform (const char *, const prevariable &) |
class | gradient_structure |
double_and_int * | gradnew () |
Creates an entry in the gradient structure linked list. | |
class | indvar_offset_list |
prevariable & | ldexp (const prevariable &, const int &) |
Description not yet available. | |
prevariable & | log (const prevariable &t1) |
Description not yet available. | |
prevariable & | log10 (const prevariable &t1) |
Description not yet available. | |
void | make_indvar_list (int, dvariable *) |
prevariable & | operator* (const prevariable &v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator* (double v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator* (const prevariable &v1, double v2) |
Description not yet available. | |
prevariable & | operator+ (const prevariable &v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator+ (double v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator+ (const prevariable &v1, double v2) |
Description not yet available. | |
prevariable & | operator- (const prevariable &v1) |
Description not yet available. | |
prevariable & | operator- (const prevariable &v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator- (double v1, const prevariable &v2) |
Description not yet available. | |
prevariable & | operator- (const prevariable &v1, double v2) |
Description not yet available. | |
prevariable & | operator/ (const prevariable &t1, const prevariable &t2) |
Description not yet available. | |
prevariable & | operator/ (double t1, const prevariable &t2) |
Description not yet available. | |
prevariable & | operator/ (const prevariable &t1, double t2) |
Description not yet available. | |
prevariable & | pow (const prevariable &t1, const prevariable &t2) |
Description not yet available. | |
prevariable & | pow (const prevariable &t1, double t2) |
Description not yet available. | |
prevariable & | pow (double t1, const prevariable &t2) |
Description not yet available. | |
prevariable & | sfabs (const prevariable &t1) |
Smooth absolute value. | |
prevariable & | sigmoid (const prevariable &t1) |
Description not yet available. | |
prevariable & | sin (const prevariable &t1) |
Description not yet available. | |
prevariable & | sinh (const prevariable &t1) |
Description not yet available. | |
prevariable & | sqr (const prevariable &t1) |
Description not yet available. | |
prevariable & | sqrt (const prevariable &t1) |
Description not yet available. | |
prevariable & | tan (const prevariable &t1) |
Description not yet available. | |
prevariable & | tanh (const prevariable &t1) |
Description not yet available. | |
double & | value (const prevariable &v1) |
Base class for dvariable.
Principle role is to avoid calling a destructor when a pevariable or dvariable object is passed on the stack. (There is no destructor, ~prevariable().)
prevariable::prevariable | ( | ) | [inline, protected] |
prevariable::prevariable | ( | double_and_int * | u | ) | [inline, protected] |
double_and_int*& prevariable::get_v | ( | void | ) | [inline] |
Definition at line 1361 of file fvar.hpp.
Referenced by prevariable_position::prevariable_position(), and save_prevariable_position().
double_and_int* prevariable::get_v | ( | void | ) | const [inline] |
void prevariable::initialize | ( | void | ) |
int prevariable::operator!= | ( | const prevariable & | v1 | ) | const |
int prevariable::operator!= | ( | double | v1 | ) | const |
void prevariable::operator*= | ( | const prevariable & | v1 | ) |
void prevariable::operator*= | ( | double | v1 | ) |
void prevariable::operator+= | ( | const prevariable & | v1 | ) |
void prevariable::operator+= | ( | double | t1 | ) |
void prevariable::operator-= | ( | const prevariable & | v1 | ) |
void prevariable::operator-= | ( | double | t1 | ) |
void prevariable::operator/= | ( | const prevariable & | v1 | ) |
void prevariable::operator/= | ( | double | v1 | ) |
int prevariable::operator< | ( | const prevariable & | v1 | ) | const |
int prevariable::operator< | ( | double | v1 | ) | const |
int prevariable::operator<= | ( | const prevariable & | v1 | ) | const |
int prevariable::operator<= | ( | double | v1 | ) | const |
prevariable & prevariable::operator= | ( | const prevariable & | t | ) |
Assigns a value to a prevariable object.
t | constant reference to an object of type prevariable. |
Reimplemented in objective_function_value, param_likeprof_number, param_stddev_number, funnel_dvariable, dvariable, param_init_bounded_number, dll_param_init_number, param_init_number, dll_param_number, and named_dvariable.
Definition at line 65 of file fvar_o10.cpp.
Referenced by objective_function_value::operator=().
prevariable & prevariable::operator= | ( | double | t | ) |
Assigns a value to a prevariable object.
t | constant object of type double. |
Reimplemented in objective_function_value, param_likeprof_number, param_stddev_number, dvariable, param_init_bounded_number, dll_param_init_number, param_init_number, dll_param_number, and named_dvariable.
Definition at line 104 of file fvar_o10.cpp.
int prevariable::operator== | ( | const prevariable & | v1 | ) | const |
int prevariable::operator== | ( | double | v1 | ) | const |
int prevariable::operator> | ( | const prevariable & | v1 | ) | const |
int prevariable::operator> | ( | double | v1 | ) | const |
int prevariable::operator>= | ( | const prevariable & | v1 | ) | const |
int prevariable::operator>= | ( | double | v1 | ) | const |
double prevariable::restore_prevariable_derivative | ( | void | ) |
double prevariable::restore_prevariable_value | ( | void | ) |
void prevariable::save_prevariable_position | ( | void | ) | const |
Description not yet available.
Definition at line 50 of file cmpdif8.cpp.
Referenced by choleski_decomp_positive(), det(), ln_det(), ln_det_choleski(), ln_det_choleski_error(), operator*(), operator+(), dvar_vector::operator+=(), operator-(), dvar_vector::operator-=(), operator/(), dvar_vector::operator/=(), dvar_vector::operator=(), pow(), solve(), and sum().
void prevariable::save_prevariable_value | ( | void | ) | const |
Description not yet available.
Definition at line 61 of file cmpdif8.cpp.
Referenced by operator*(), operator/(), dvar_vector::operator/=(), and pow().
double* prevariable::xadr | ( | ) | [inline] |
double& prevariable::xval | ( | ) | [inline] |
prevariable& acos | ( | const prevariable & | t1 | ) | [friend] |
double* address | ( | const prevariable & | v1 | ) | [friend] |
prevariable& asin | ( | const prevariable & | t1 | ) | [friend] |
prevariable& atan | ( | const prevariable & | t1 | ) | [friend] |
prevariable& atan2 | ( | const prevariable & | t1, |
const prevariable & | t2 | ||
) | [friend] |
prevariable& atan2 | ( | const prevariable & | t1, |
double | t2 | ||
) | [friend] |
prevariable& atan2 | ( | double | t1, |
const prevariable & | t2 | ||
) | [friend] |
friend class banded_lower_triangular_dvar_matrix [friend] |
friend class banded_symmetric_dvar_matrix [friend] |
prevariable& cos | ( | const prevariable & | t1 | ) | [friend] |
prevariable& cosh | ( | const prevariable & | t1 | ) | [friend] |
friend class dvar3_array [friend] |
friend class dvar_matrix [friend] |
friend class dvar_vector [friend] |
friend class dvar_vector_iterator [friend] |
prevariable& exp | ( | const prevariable & | t1 | ) | [friend] |
Compute exponential variable.
v1 | is the input value. |
Definition at line 29 of file fvar_fn1.cpp.
prevariable& fabs | ( | const prevariable & | t1 | ) | [friend] |
Absolute value.
Simple overload of standard C library function. Not differentiable and should not be used in cases where an independent variable is expected to change sign. Use sfabs in such cases.
v1 | Indpendent variable |
Definition at line 105 of file fvar_fn.cpp.
char* fform | ( | const char * | , |
const prevariable & | |||
) | [friend] |
friend class gradient_structure [friend] |
double_and_int* gradnew | ( | ) | [friend] |
Creates an entry in the gradient structure linked list.
Definition at line 33 of file fvar2.cpp.
Referenced by dvariable::dvariable().
friend class indvar_offset_list [friend] |
prevariable& ldexp | ( | const prevariable & | v1, |
const int & | exponent | ||
) | [friend] |
prevariable& log | ( | const prevariable & | t1 | ) | [friend] |
prevariable& log10 | ( | const prevariable & | t1 | ) | [friend] |
void make_indvar_list | ( | int | , |
dvariable * | |||
) | [friend] |
prevariable& operator* | ( | const prevariable & | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator* | ( | double | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator* | ( | const prevariable & | v1, |
double | v2 | ||
) | [friend] |
prevariable& operator+ | ( | const prevariable & | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator+ | ( | double | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator+ | ( | const prevariable & | v1, |
double | v2 | ||
) | [friend] |
prevariable& operator- | ( | const prevariable & | v1 | ) | [friend] |
prevariable& operator- | ( | const prevariable & | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator- | ( | double | v1, |
const prevariable & | v2 | ||
) | [friend] |
prevariable& operator- | ( | const prevariable & | v1, |
double | v2 | ||
) | [friend] |
prevariable& operator/ | ( | const prevariable & | t1, |
const prevariable & | t2 | ||
) | [friend] |
prevariable& operator/ | ( | double | t1, |
const prevariable & | t2 | ||
) | [friend] |
prevariable& operator/ | ( | const prevariable & | t1, |
double | t2 | ||
) | [friend] |
prevariable& pow | ( | const prevariable & | t1, |
const prevariable & | t2 | ||
) | [friend] |
prevariable& pow | ( | const prevariable & | t1, |
double | t2 | ||
) | [friend] |
prevariable& pow | ( | double | t1, |
const prevariable & | t2 | ||
) | [friend] |
prevariable& sfabs | ( | const prevariable & | t1 | ) | [friend] |
Smooth absolute value.
Uses thrid order polynomial to interpolate between += 0.001. Derivatives correct for all values of indpendent variable != 0.
v1 | Indpendent variable |
Definition at line 135 of file fvar_fn.cpp.
prevariable& sigmoid | ( | const prevariable & | t1 | ) | [friend] |
prevariable& sin | ( | const prevariable & | t1 | ) | [friend] |
prevariable& sinh | ( | const prevariable & | t1 | ) | [friend] |
prevariable& sqr | ( | const prevariable & | t1 | ) | [friend] |
prevariable& sqrt | ( | const prevariable & | t1 | ) | [friend] |
prevariable& tan | ( | const prevariable & | t1 | ) | [friend] |
prevariable& tanh | ( | const prevariable & | t1 | ) | [friend] |
double& value | ( | const prevariable & | v1 | ) | [friend] |
Definition at line 1449 of file fvar.hpp.
Referenced by param_init_bounded_number::add_value(), param_init_number::allocate(), param_init_bounded_number::allocate(), param_likeprof_number::get_value(), operator!=(), operator<(), operator<=(), dvariable::operator=(), operator==(), operator>(), operator>=(), save_prevariable_value(), param_init_bounded_number::set_simulation_bounds(), dll_param_init_bounded_number::~dll_param_init_bounded_number(), dll_param_init_number::~dll_param_init_number(), and dll_param_number::~dll_param_number().
pointer to the data
Definition at line 1275 of file fvar.hpp.
Referenced by acos(), address(), param_init_bounded_number::allocate(), asin(), atan(), bounded_cumd_norm(), cos(), cosh(), cube(), cumd_norm(), dvariable::dvariable(), exp(), fabs(), fourth(), gammlnguts(), get_v(), inv_cumd_gamma(), inv_cumd_norm_inner(), ldexp(), log(), log10(), operator!=(), operator*(), operator*=(), operator+(), operator+=(), operator-(), operator-=(), operator/(), operator/=(), operator<(), operator<=(), operator=(), dvariable::operator=(), operator==(), operator>(), operator>=(), pow(), prevariable(), sfabs(), sigmoid(), sin(), sinh(), sqr(), sqrt(), square(), tan(), tanh(), value(), xadr(), xval(), and dvariable::~dvariable().
Generated on Tue Mar 8 2016 19:51:40 for ADMB Documentation by 1.8.0 |