|
| | ~pdouble ()=default |
| | Default destructor.
|
| |
| | pdouble ()=delete |
| | Deleted default constructor.
|
| |
| | pdouble (const pdouble &)=delete |
| | Deleted copy constructor and assignment.
|
| |
| pdouble & | operator= (const pdouble &)=delete |
| |
| | pdouble (pdouble &&other) noexcept |
| | Move constructor.
|
| |
| pdouble & | operator= (pdouble &&other) noexcept |
| | Move assignment.
|
| |
| | pdouble (const double pval) |
| | Allocate a parameter location on the current tape and set its value.
|
| |
| | operator adouble () const |
| | Copy the parameter into a new active-value location.
|
| |
| size_t | loc () const |
| | Retrieves the location on the tape of the pdouble.
|
| |
| double | value () const |
| | Retrieves the current value stored at the tape location.
|
| |
| void | value (const double pval) |
| | Updates the value stored at the tape location.
|
| |
Mutable passive parameter stored on a recorded tape.
A pdouble participates in taped expressions but is not an independent variable, so derivatives are never taken with respect to it. Unlike a literal double, its recorded value can be replaced with ValueTape::setParamVec() and the same operation tape can then be evaluated again without retaping.
Updating parameters invalidates saved Taylor coefficients. Therefore, any subsequent reverse sweep must be preceded by a forward sweep with keep >= 1.