#include <ad_tape.hpp>
Public Member Functions | |
| ADTape (size_t id) | |
| ~ADTape (void) | |
| template<typename VectorADBase> | |
| void | Independent (VectorADBase &u) |
Private Member Functions | |
| void | RecordNonOp (void) |
| size_t | RecordParOp (const Base &x) |
| void | RecordInvOp (AD< Base > &z) |
| void | RecordCondExp (enum CompareOp cop, AD< Base > &returnValue, const AD< Base > &left, const AD< Base > &right, const AD< Base > &trueCase, const AD< Base > &falseCase) |
| void | RecordCompare (enum CompareOp cop, bool result, const AD< Base > &left, const AD< Base > &right) |
| void | RecordLoadOp (OpCode op, AD< Base > &z, size_t offset, size_t x_taddr) |
| void | RecordStoreOp (OpCode op, size_t offset, size_t x_taddr, size_t y_taddr) |
| void | RecordOp (OpCode op, AD< Base > &z, size_t x_taddr, size_t y_taddr) |
| void | RecordOp (OpCode op, size_t x_taddr, size_t y_taddr) |
| void | RecordOp (OpCode op, AD< Base > &z, size_t x_taddr, const Base &y) |
| void | RecordOp (OpCode op, size_t x_taddr, const Base &y) |
| void | RecordOp (OpCode op, AD< Base > &z, const Base &x, size_t y_taddr) |
| void | RecordOp (OpCode op, const Base &x, size_t y_taddr) |
| void | RecordOp (OpCode op, const Base &x, const Base &y) |
| void | RecordOp (OpCode op, AD< Base > &z, size_t x_taddr) |
| void | RecordDisOp (AD< Base > &z, size_t x_taddr, size_t y_taddr) |
| void | RecordPripOp (const char *text, const Base &x) |
| void | RecordPrivOp (const char *text, size_t x_taddr) |
| size_t | AddVec (size_t length, const Base *data) |
Private Attributes | |
| size_t | id_ |
| size_t | size_independent |
| TapeRec< Base > | Rec |
Friends | |
| class | AD< Base > |
| class | ADFun< Base > |
| class | ADDiscrete< Base > |
| class | VecAD< Base > |
| class | VecAD_reference< Base > |
| void | PrintFor (const char *text, const AD< Base > &x) |
| AD< Base > | CondExpOp (enum CompareOp cop, const AD< Base > &left, const AD< Base > &right, const AD< Base > &trueCase, const AD< Base > &falseCase) |
| AD< Base > | pow (const AD< Base > &x, const AD< Base > &y) |
| bool | Parameter (const AD< Base > &u) |
| bool | Variable (const AD< Base > &u) |
Definition at line 433 of file ad_tape.hpp.
| CppAD::ADTape< Base >::ADTape | ( | size_t | id | ) | [inline] |
Definition at line 472 of file ad_tape.hpp.
| CppAD::ADTape< Base >::~ADTape | ( | void | ) | [inline] |
| void CppAD::ADTape< Base >::Independent | ( | VectorADBase & | u | ) |
Definition at line 129 of file independent.hpp.
References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CppAD::NonOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::ADTape< Base >::RecordInvOp(), and CppAD::ADTape< Base >::size_independent.
| void CppAD::ADTape< Base >::RecordNonOp | ( | void | ) | [private] |
Definition at line 603 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::NonOp, CppAD::NumInd(), and CppAD::ADTape< Base >::Rec.
| size_t CppAD::ADTape< Base >::RecordParOp | ( | const Base & | x | ) | [private] |
Definition at line 615 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::NumInd(), CppAD::ParOp, and CppAD::ADTape< Base >::Rec.
Referenced by CppAD::VecAD_reference< Base >::ADBase(), and CppAD::ADFun< Base >::Dependent().
| void CppAD::ADTape< Base >::RecordInvOp | ( | AD< Base > & | z | ) | [private] |
Definition at line 628 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::InvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Parameter, CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
Referenced by CppAD::ADTape< Base >::Independent().
| void CppAD::ADTape< Base >::RecordCondExp | ( | enum CompareOp | cop, | |
| AD< Base > & | returnValue, | |||
| const AD< Base > & | left, | |||
| const AD< Base > & | right, | |||
| const AD< Base > & | trueCase, | |||
| const AD< Base > & | falseCase | |||
| ) | [private] |
Definition at line 323 of file cond_exp.hpp.
References CppAD::CExpOp, CPPAD_ASSERT_UNKNOWN, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::make_variable(), CppAD::NumInd(), CppAD::ADTape< Base >::Parameter, CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, CppAD::AD< Base >::value_, and CppAD::ADTape< Base >::Variable.
Referenced by CppAD::CondExpOp().
| void CppAD::ADTape< Base >::RecordCompare | ( | enum CompareOp | cop, | |
| bool | result, | |||
| const AD< Base > & | left, | |||
| const AD< Base > & | right | |||
| ) | [private] |
Definition at line 138 of file compare.hpp.
References CppAD::ComOp, CPPAD_ASSERT_UNKNOWN, CppAD::NumInd(), CppAD::ADTape< Base >::Parameter, CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::AD< Base >::value_.
| void CppAD::ADTape< Base >::RecordLoadOp | ( | OpCode | op, | |
| AD< Base > & | z, | |||
| size_t | offset, | |||
| size_t | x_taddr | |||
| ) | [private] |
Definition at line 646 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::LdpOp, CppAD::LdvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
Referenced by CppAD::VecAD_reference< Base >::ADBase().
| void CppAD::ADTape< Base >::RecordStoreOp | ( | OpCode | op, | |
| size_t | offset, | |||
| size_t | x_taddr, | |||
| size_t | y_taddr | |||
| ) | [private] |
Definition at line 669 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::NumInd(), CppAD::NumVar(), CppAD::ADTape< Base >::Rec, CppAD::StppOp, CppAD::StpvOp, CppAD::StvpOp, and CppAD::StvvOp.
Referenced by CppAD::VecAD_reference< Base >::operator=().
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| AD< Base > & | z, | |||
| size_t | x_taddr, | |||
| size_t | y_taddr | |||
| ) | [inline, private] |
Definition at line 696 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::InvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| size_t | x_taddr, | |||
| size_t | y_taddr | |||
| ) | [inline, private] |
Definition at line 719 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::InvOp, CppAD::NumInd(), CppAD::NumVar(), and CppAD::ADTape< Base >::Rec.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| AD< Base > & | z, | |||
| size_t | x_taddr, | |||
| const Base & | y | |||
| ) | [inline, private] |
Definition at line 739 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::InvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| size_t | x_taddr, | |||
| const Base & | y | |||
| ) | [inline, private] |
Definition at line 762 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::InvOp, CppAD::NumInd(), CppAD::NumVar(), and CppAD::ADTape< Base >::Rec.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| AD< Base > & | z, | |||
| const Base & | x, | |||
| size_t | y_taddr | |||
| ) | [inline, private] |
Definition at line 782 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::InvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| const Base & | x, | |||
| size_t | y_taddr | |||
| ) | [inline, private] |
Definition at line 805 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::InvOp, CppAD::NumInd(), CppAD::NumVar(), and CppAD::ADTape< Base >::Rec.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| const Base & | x, | |||
| const Base & | y | |||
| ) | [inline, private] |
Definition at line 825 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::InvOp, CppAD::NumInd(), CppAD::NumVar(), and CppAD::ADTape< Base >::Rec.
| void CppAD::ADTape< Base >::RecordOp | ( | OpCode | op, | |
| AD< Base > & | z, | |||
| size_t | x_taddr | |||
| ) | [inline, private] |
Definition at line 844 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::InvOp, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
| void CppAD::ADTape< Base >::RecordDisOp | ( | AD< Base > & | z, | |
| size_t | x_taddr, | |||
| size_t | y_taddr | |||
| ) | [private] |
Definition at line 866 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::DisOp, CppAD::ADTape< Base >::id_, CppAD::AD< Base >::id_, CppAD::NumInd(), CppAD::ADTape< Base >::Rec, CppAD::AD< Base >::taddr_, and CppAD::ADTape< Base >::Variable.
| void CppAD::ADTape< Base >::RecordPripOp | ( | const char * | text, | |
| const Base & | x | |||
| ) | [private] |
Definition at line 887 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::NumInd(), CppAD::PripOp, and CppAD::ADTape< Base >::Rec.
Referenced by CppAD::PrintFor().
| void CppAD::ADTape< Base >::RecordPrivOp | ( | const char * | text, | |
| size_t | x_taddr | |||
| ) | [private] |
Definition at line 900 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, CppAD::NumInd(), CppAD::PripOp, CppAD::PrivOp, and CppAD::ADTape< Base >::Rec.
Referenced by CppAD::PrintFor().
| size_t CppAD::ADTape< Base >::AddVec | ( | size_t | length, | |
| const Base * | data | |||
| ) | [private] |
Definition at line 914 of file ad_tape.hpp.
References CPPAD_ASSERT_UNKNOWN, and CppAD::ADTape< Base >::Rec.
Referenced by CppAD::VecAD_reference< Base >::operator=().
friend class AD< Base > [friend] |
Definition at line 436 of file ad_tape.hpp.
friend class ADFun< Base > [friend] |
Definition at line 437 of file ad_tape.hpp.
friend class ADDiscrete< Base > [friend] |
Definition at line 438 of file ad_tape.hpp.
friend class VecAD< Base > [friend] |
Definition at line 439 of file ad_tape.hpp.
friend class VecAD_reference< Base > [friend] |
Definition at line 440 of file ad_tape.hpp.
| void PrintFor | ( | const char * | text, | |
| const AD< Base > & | x | |||
| ) | [friend] |
| AD<Base> CondExpOp | ( | enum CompareOp | cop, | |
| const AD< Base > & | left, | |||
| const AD< Base > & | right, | |||
| const AD< Base > & | trueCase, | |||
| const AD< Base > & | falseCase | |||
| ) | [friend] |
Definition at line 247 of file cond_exp.hpp.
| bool Parameter | ( | const AD< Base > & | u | ) | [friend] |
size_t CppAD::ADTape< Base >::id_ [private] |
Definition at line 485 of file ad_tape.hpp.
Referenced by CppAD::ADFun< Base >::Dependent(), CppAD::ADTape< Base >::RecordCondExp(), CppAD::ADTape< Base >::RecordDisOp(), CppAD::ADTape< Base >::RecordInvOp(), CppAD::ADTape< Base >::RecordLoadOp(), and CppAD::ADTape< Base >::RecordOp().
size_t CppAD::ADTape< Base >::size_independent [private] |
Definition at line 486 of file ad_tape.hpp.
Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::Dependent(), and CppAD::ADTape< Base >::Independent().
TapeRec<Base> CppAD::ADTape< Base >::Rec [private] |
Definition at line 487 of file ad_tape.hpp.
Referenced by CppAD::ADTape< Base >::AddVec(), CppAD::ADFun< Base >::Dependent(), CppAD::ADTape< Base >::Independent(), CppAD::VecAD_reference< Base >::operator=(), CppAD::ADTape< Base >::RecordCompare(), CppAD::ADTape< Base >::RecordCondExp(), CppAD::ADTape< Base >::RecordDisOp(), CppAD::ADTape< Base >::RecordInvOp(), CppAD::ADTape< Base >::RecordLoadOp(), CppAD::ADTape< Base >::RecordNonOp(), CppAD::ADTape< Base >::RecordOp(), CppAD::ADTape< Base >::RecordParOp(), CppAD::ADTape< Base >::RecordPripOp(), CppAD::ADTape< Base >::RecordPrivOp(), CppAD::ADTape< Base >::RecordStoreOp(), and CppAD::ADTape< Base >::~ADTape().
1.4.7