CppAD: A C++ Algorithmic Differentiation Package  20130918
CppAD::VecAD_reference< Base > Class Template Reference

Class used to hold a reference to an element of a VecAD object. More...

List of all members.

Public Member Functions

AD< Base > ADBase (void) const
 Conversion from VecAD_reference to AD<Base>. puts the correspond vecad load instruction in the tape.
void operator= (const VecAD_reference< Base > &right)
 Taped setting of element to a value.
void operator= (const AD< Base > &right)
 Taped setting of element to a value.
void operator= (const Base &right)
 Taped setting of element to a value.
void operator= (int right)
 Taped setting of element to a value.
 VecAD_reference (VecAD< Base > *vec, const AD< Base > &ind)
 consructor

Private Attributes

AD< Base > ind_
 index in vecad vector that this element corresponds to
VecAD< Base > * vec_
 pointer to vecad vector that this is a element of

Friends

class ADTape< Base >
bool Parameter (const VecAD< Base > &vec)
bool Variable (const VecAD< Base > &vec)
class VecAD< Base >

Detailed Description

template<class Base>
class CppAD::VecAD_reference< Base >

Class used to hold a reference to an element of a VecAD object.

Template Parameters:
BaseElements of this class act like an AD<Base> (in a restricted sense), in addition they track (on the tape) the index they correspond to.

Definition at line 359 of file vec_ad.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines