CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CppAD::VecAD< Base > Class Template Reference

Vector of AD objects that tracks indexing operations on the tape. More...

Public Types

typedef VecAD_reference< Base > reference
 declare the user's view of this type here More...
 

Public Member Functions

Base & operator[] (size_t i)
 element access (not taped) More...
 
VecAD_reference< Base > operator[] (const AD< Base > &x)
 delayed taped elemement access More...
 
size_t size (void)
 number of elements in the vector More...
 
 VecAD (void)
 default constructor initialize tape_id_ same as for default constructor; see default.hpp More...
 
 VecAD (size_t n)
 sizing constructor initialize tape_id_ same as for parameters; see ad_copy.hpp More...
 
 ~VecAD (void)
 destructor More...
 

Private Attributes

local::pod_vector< Base > data_
 elements of this vector More...
 
const size_t length_
 size of this VecAD vector More...
 
size_t offset_
 offset in cummulate vector corresponding to this object More...
 
tape_id_t tape_id_
 tape id corresponding to the offset More...
 

Friends

class local::ADTape< Base >
 
std::ostream & operator (std::ostream &os, const VecAD< Base > &vec_)
 
bool Parameter (const VecAD< Base > &vec)
 
bool Variable (const VecAD< Base > &vec)
 
class VecAD_reference< Base >
 

Detailed Description

template<class Base>
class CppAD::VecAD< Base >

Vector of AD objects that tracks indexing operations on the tape.

Definition at line 462 of file vec_ad.hpp.


The documentation for this class was generated from the following file: