ADMB Documentation
-a65f1c97
|
Base class for dvariable. More...
#include <fvar.hpp>
Public Member Functions | |
prevariable (const prevariable &other) | |
Copy Constructor. More... | |
double_and_int *& | get_v () |
double_and_int * | get_v () const |
void | initialize (void) |
Description not yet available. More... | |
int | operator!= (const prevariable &v1) const |
Description not yet available. More... | |
int | operator!= (double v1) const |
Description not yet available. More... | |
void | operator*= (const prevariable &v1) |
Description not yet available. More... | |
void | operator*= (double v1) |
Description not yet available. More... | |
prevariable & | operator+= (const prevariable &) |
Prevariable addition assignment operator. More... | |
void | operator+= (double t1) |
Description not yet available. More... | |
void | operator-= (const prevariable &t1) |
Description not yet available. More... | |
void | operator-= (double t1) |
Description not yet available. More... | |
void | operator/= (const prevariable &v1) |
Description not yet available. More... | |
void | operator/= (double v1) |
Description not yet available. More... | |
int | operator< (const prevariable &v1) const |
Description not yet available. More... | |
int | operator< (double v1) const |
Description not yet available. More... | |
int | operator<= (const prevariable &v1) const |
Description not yet available. More... | |
int | operator<= (double v1) const |
Description not yet available. More... | |
prevariable & | operator= (const prevariable &) |
Assigns a value to a prevariable object. More... | |
prevariable & | operator= (double) |
Assigns a value to a prevariable object. More... | |
int | operator== (const prevariable &v1) const |
Description not yet available. More... | |
int | operator== (double v1) const |
Description not yet available. More... | |
int | operator> (const prevariable &v1) const |
Description not yet available. More... | |
int | operator> (double v1) const |
Description not yet available. More... | |
int | operator>= (const prevariable &v1) const |
Description not yet available. More... | |
int | operator>= (double v1) const |
Description not yet available. More... | |
double | restore_prevariable_derivative (void) |
prevariable_position | restore_prevariable_position (void) |
double | restore_prevariable_value (void) |
void | save_prevariable_position () const |
Description not yet available. More... | |
void | save_prevariable_value () const |
Description not yet available. More... | |
double * | xadr () |
double & | xval () |
Public Attributes | |
double_and_int * | v |
pointer to the data More... | |
Protected Member Functions | |
prevariable ()=delete | |
Default constructor. More... | |
prevariable (double_and_int *u) | |
Friends | |
prevariable & | acos (const prevariable &t1) |
Description not yet available. More... | |
double * | address (const prevariable &v1) |
prevariable & | asin (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | atan (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | atan2 (const prevariable &t1, const prevariable &t2) |
Description not yet available. More... | |
prevariable & | atan2 (const prevariable &t1, double t2) |
Description not yet available. More... | |
prevariable & | atan2 (double t1, const prevariable &t2) |
Description not yet available. More... | |
class | banded_lower_triangular_dvar_matrix |
class | banded_symmetric_dvar_matrix |
prevariable & | cos (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | cosh (const prevariable &t1) |
Description not yet available. More... | |
class | dvar3_array |
class | dvar_matrix |
class | dvar_vector |
class | dvar_vector_iterator |
prevariable & | exp (const prevariable &t1) |
Compute exponential variable. More... | |
prevariable & | fabs (const prevariable &t1) |
Absolute value. More... | |
char * | fform (const char *, const prevariable &) |
class | gradient_structure |
double_and_int * | gradnew () |
Creates an entry in the gradient structure linked list. More... | |
class | indvar_offset_list |
prevariable & | ldexp (const prevariable &, const int &) |
Description not yet available. More... | |
prevariable & | log (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | log10 (const prevariable &t1) |
Description not yet available. More... | |
void | make_indvar_list (int, dvariable *) |
prevariable & | operator* (const prevariable &v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator* (double v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator* (const prevariable &v1, double v2) |
Description not yet available. More... | |
prevariable & | operator+ (const prevariable &v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator+ (double v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator+ (const prevariable &v1, double v2) |
Description not yet available. More... | |
prevariable & | operator- (const prevariable &v1) |
Description not yet available. More... | |
prevariable & | operator- (const prevariable &v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator- (double v1, const prevariable &v2) |
Description not yet available. More... | |
prevariable & | operator- (const prevariable &v1, double v2) |
Description not yet available. More... | |
prevariable & | operator/ (const prevariable &t1, const prevariable &t2) |
Description not yet available. More... | |
prevariable & | operator/ (double t1, const prevariable &t2) |
Description not yet available. More... | |
prevariable & | operator/ (const prevariable &t1, double t2) |
Description not yet available. More... | |
prevariable & | pow (const prevariable &t1, const prevariable &t2) |
Description not yet available. More... | |
prevariable & | pow (const prevariable &t1, double t2) |
Description not yet available. More... | |
prevariable & | pow (double t1, const prevariable &t2) |
Description not yet available. More... | |
prevariable & | sfabs (const prevariable &t1) |
Smooth absolute value. More... | |
prevariable & | sigmoid (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | sin (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | sinh (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | sqr (const prevariable &t1) |
Returns the square of v1. More... | |
prevariable & | sqrt (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | tan (const prevariable &t1) |
Description not yet available. More... | |
prevariable & | tanh (const prevariable &t1) |
Description not yet available. More... | |
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().)
|
protecteddelete |
Default constructor.
|
inlineprotected |
|
inline |
|
inline |
Definition at line 1419 of file fvar.hpp.
Referenced by prevariable_position::prevariable_position(), and DF_FILE::save_prevariable_position().
|
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 | ) |
prevariable & prevariable::operator+= | ( | const prevariable & | other | ) |
Prevariable addition assignment operator.
other | add to prevariable |
Definition at line 36 of file fvar_op9.cpp.
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. |
Definition at line 61 of file fvar_o10.cpp.
Referenced by param_init_number::allocate(), param_init_bounded_number::allocate(), dll_param_init_bounded_number::allocate(), named_dvariable::operator=(), dvariable::operator=(), param_stddev_number::operator=(), and objective_function_value::operator=().
prevariable & prevariable::operator= | ( | double | t | ) |
Assigns a value to a prevariable object.
t | constant object of type double. |
Definition at line 75 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 | ) |
prevariable_position prevariable::restore_prevariable_position | ( | void | ) |
double prevariable::restore_prevariable_value | ( | void | ) |
void prevariable::save_prevariable_position | ( | ) | const |
void prevariable::save_prevariable_value | ( | ) | const |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Compute exponential variable.
v1 | is the input value. |
Definition at line 22 of file fvar_fn1.cpp.
|
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.
|
friend |
|
friend |
|
friend |
Creates an entry in the gradient structure linked list.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
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 125 of file fvar_fn.cpp.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
Definition at line 1495 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>=(), 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().
double_and_int* prevariable::v |
pointer to the data
Definition at line 1333 of file fvar.hpp.
Referenced by acos(), address(), 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=(), operator==(), operator>(), operator>=(), pow(), sfabs(), sigmoid(), sin(), sinh(), sqrt(), square(), tan(), tanh(), value(), xadr(), xval(), and dvariable::~dvariable().
Generated on Wed Sep 7 2022 00:01:34 for ADMB Documentation by 1.8.5 |