CppAD::ADFun< Base > Class Template Reference

#include <ad_fun.hpp>

Collaboration diagram for CppAD::ADFun< Base >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ADFun (void)
template<typename ADvector>
 ADFun (const ADvector &x, const ADvector &y)
 ~ADFun (void)
template<typename ADvector>
void Dependent (const ADvector &y)
template<typename ADvector>
void Dependent (const ADvector &x, const ADvector &y)
template<typename VectorBase>
VectorBase Forward (size_t p, const VectorBase &u)
template<typename VectorBase>
VectorBase Reverse (size_t p, const VectorBase &v) const
template<typename VectorBase>
VectorBase ForSparseJac (size_t q, const VectorBase &Px)
template<typename VectorBase>
VectorBase RevSparseJac (size_t q, const VectorBase &Py) const
template<typename VectorBase>
VectorBase RevSparseHes (size_t q, const VectorBase &Py) const
bool use_VecAD (void) const
size_t size_var (void) const
size_t size_taylor (void) const
void capacity_taylor (size_t per_var)
size_t Domain (void) const
size_t Range (void) const
bool Parameter (size_t i)
size_t CompareChange (void) const
template<typename VectorBase>
VectorBase Jacobian (const VectorBase &x)
template<typename VectorBase>
VectorBase Hessian (const VectorBase &x, size_t i)
template<typename VectorBase>
VectorBase ForOne (const VectorBase &x, size_t j)
template<typename VectorBase>
VectorBase RevOne (const VectorBase &x, size_t i)
template<typename VectorBase, typename VectorSize_t>
VectorBase ForTwo (const VectorBase &x, const VectorSize_t &J, const VectorSize_t &K)
template<typename VectorBase, typename VectorSize_t>
VectorBase RevTwo (const VectorBase &x, const VectorSize_t &I, const VectorSize_t &J)
size_t Size (void) const
size_t Order (void) const
size_t Memory (void) const
size_t taylor_size (void) const

Private Types

typedef size_t Pack

Private Member Functions

template<typename ADvector>
void Dependent (ADTape< Base > *tape, const ADvector &y)

Private Attributes

size_t compareChange
size_t taylor_per_var
size_t ForJacBitDim
size_t TaylorColDim
size_t ForJacColDim
size_t totalNumVar
CppAD::vector< size_t > ind_taddr
CppAD::vector< size_t > dep_taddr
CppAD::vector< bool > dep_parameter
TapeRec< Base > Rec
Base * Taylor
PackForJac

Detailed Description

template<class Base>
class CppAD::ADFun< Base >

Definition at line 63 of file ad_fun.hpp.


Member Typedef Documentation

template<class Base>
typedef size_t CppAD::ADFun< Base >::Pack [private]

Definition at line 65 of file ad_fun.hpp.


Constructor & Destructor Documentation

template<class Base>
CppAD::ADFun< Base >::ADFun ( void   )  [inline]

Definition at line 69 of file ad_fun.hpp.

template<typename Base>
template<typename VectorAD>
CppAD::ADFun< Base >::ADFun ( const ADvector &  x,
const ADvector &  y 
)

Definition at line 162 of file fun_construct.hpp.

References CppAD::ADFun< Base >::compareChange, CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::Dependent(), CppAD::ForwardSweep(), CppAD::ADFun< Base >::ind_taddr, CppAD::Parameter(), CppAD::ADFun< Base >::Rec, CppAD::vector< Type >::size(), CppAD::ADTape< Base >::size_independent, CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::taylor_per_var, CppAD::ADFun< Base >::TaylorColDim, CppAD::ADFun< Base >::totalNumVar, and CppAD::Variable().

template<class Base>
CppAD::ADFun< Base >::~ADFun ( void   )  [inline]

Definition at line 78 of file ad_fun.hpp.


Member Function Documentation

template<typename Base>
template<typename ADvector>
void CppAD::ADFun< Base >::Dependent ( const ADvector &  y  ) 

Definition at line 128 of file dependent.hpp.

References CPPAD_ASSERT_KNOWN, and CPPAD_NULL.

Referenced by CppAD::ADFun< Base >::ADFun(), and CppAD::ADFun< Base >::Dependent().

template<typename Base>
template<typename ADvector>
void CppAD::ADFun< Base >::Dependent ( const ADvector &  x,
const ADvector &  y 
)

Definition at line 142 of file dependent.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Dependent(), CppAD::Parameter(), CppAD::ADTape< Base >::size_independent, and CppAD::Variable().

template<typename Base>
template<typename Vector>
Vector CppAD::ADFun< Base >::Forward ( size_t  p,
const VectorBase &  u 
)

Definition at line 38 of file forward.hpp.

References CppAD::ADFun< Base >::capacity_taylor(), CppAD::ADFun< Base >::compareChange, CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CppAD::ADFun< Base >::dep_taddr, CppAD::ForwardSweep(), CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::ADFun< Base >::Rec, CppAD::vector< Type >::size(), CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::taylor_per_var, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

Referenced by CppAD::ADFun< Base >::ForOne(), CppAD::ADFun< Base >::ForTwo(), CppAD::FunCheck(), CppAD::ADFun< Base >::Hessian(), CppAD::ADFun< Base >::Jacobian(), CppAD::JacobianFor(), CppAD::ADFun< Base >::RevOne(), and CppAD::ADFun< Base >::RevTwo().

template<typename Base>
template<typename VectorBase>
VectorBase CppAD::ADFun< Base >::Reverse ( size_t  p,
const VectorBase &  v 
) const

Definition at line 46 of file reverse.hpp.

References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_NULL, CPPAD_TRACK_DEL_VEC, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::ADFun< Base >::Rec, CppAD::ReverseSweep(), CppAD::vector< Type >::size(), CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::taylor_per_var, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

Referenced by CppAD::ADFun< Base >::Hessian(), CppAD::JacobianRev(), CppAD::ADFun< Base >::RevOne(), and CppAD::ADFun< Base >::RevTwo().

template<class Base>
template<class Vector>
Vector CppAD::ADFun< Base >::ForSparseJac ( size_t  q,
const VectorBase &  Px 
)

Definition at line 176 of file for_sparse_jac.hpp.

References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_TRACK_DEL_VEC, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::ForJac, CppAD::ADFun< Base >::ForJacBitDim, CppAD::ADFun< Base >::ForJacColDim, CppAD::ForJacSweep(), CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::ADFun< Base >::Rec, CppAD::vector< Type >::size(), CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

template<class Base>
template<class Vector>
Vector CppAD::ADFun< Base >::RevSparseJac ( size_t  q,
const VectorBase &  Py 
) const

Definition at line 173 of file rev_sparse_jac.hpp.

References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_NULL, CPPAD_TRACK_DEL_VEC, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::ADFun< Base >::Rec, CppAD::RevJacSweep(), CppAD::vector< Type >::size(), CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

template<class Base>
template<class Vector>
Vector CppAD::ADFun< Base >::RevSparseHes ( size_t  q,
const VectorBase &  Py 
) const

Definition at line 199 of file rev_sparse_hes.hpp.

References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_NULL, CPPAD_TRACK_DEL_VEC, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::ForJac, CppAD::ADFun< Base >::ForJacBitDim, CppAD::ADFun< Base >::ForJacColDim, CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::ADFun< Base >::Rec, CppAD::RevHesSweep(), CppAD::RevJacSweep(), CppAD::vector< Type >::size(), CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

template<class Base>
bool CppAD::ADFun< Base >::use_VecAD ( void   )  const [inline]

Definition at line 113 of file ad_fun.hpp.

template<class Base>
size_t CppAD::ADFun< Base >::size_var ( void   )  const [inline]

Definition at line 117 of file ad_fun.hpp.

template<class Base>
size_t CppAD::ADFun< Base >::size_taylor ( void   )  const [inline]

Definition at line 121 of file ad_fun.hpp.

template<typename Base>
void CppAD::ADFun< Base >::capacity_taylor ( size_t  per_var  ) 

Definition at line 110 of file cap_taylor.hpp.

References CPPAD_ASSERT_UNKNOWN, CPPAD_NULL, CPPAD_TRACK_DEL_VEC, CPPAD_TRACK_NEW_VEC, CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::taylor_per_var, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.

Referenced by CppAD::ADFun< Base >::Forward().

template<class Base>
size_t CppAD::ADFun< Base >::Domain ( void   )  const [inline]

Definition at line 128 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ForOne(), CppAD::ADFun< Base >::ForTwo(), CppAD::ADFun< Base >::Hessian(), CppAD::ADFun< Base >::Jacobian(), CppAD::JacobianFor(), CppAD::JacobianRev(), CppAD::ADFun< Base >::RevOne(), and CppAD::ADFun< Base >::RevTwo().

template<class Base>
size_t CppAD::ADFun< Base >::Range ( void   )  const [inline]

Definition at line 132 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ForOne(), CppAD::ADFun< Base >::ForTwo(), CppAD::FunCheck(), CppAD::ADFun< Base >::Hessian(), CppAD::ADFun< Base >::Jacobian(), CppAD::JacobianFor(), CppAD::JacobianRev(), CppAD::ADFun< Base >::RevOne(), and CppAD::ADFun< Base >::RevTwo().

template<class Base>
bool CppAD::ADFun< Base >::Parameter ( size_t  i  )  [inline]

Definition at line 136 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::Jacobian(), and CppAD::JacobianRev().

template<class Base>
size_t CppAD::ADFun< Base >::CompareChange ( void   )  const [inline]

Definition at line 146 of file ad_fun.hpp.

template<typename Base>
template<typename Vector>
Vector CppAD::ADFun< Base >::Jacobian ( const VectorBase &  x  ) 

Definition at line 196 of file jacobian.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), CppAD::JacobianFor(), CppAD::JacobianRev(), CppAD::ADFun< Base >::Parameter(), and CppAD::ADFun< Base >::Range().

template<typename Base>
template<typename Vector>
Vector CppAD::ADFun< Base >::Hessian ( const VectorBase &  x,
size_t  i 
)

Definition at line 122 of file hessian.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< Base >::Range(), and CppAD::ADFun< Base >::Reverse().

template<typename Base>
template<typename Vector>
Vector CppAD::ADFun< Base >::ForOne ( const VectorBase &  x,
size_t  j 
)

Definition at line 129 of file for_one.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), and CppAD::ADFun< Base >::Range().

template<typename Base>
template<typename Vector>
Vector CppAD::ADFun< Base >::RevOne ( const VectorBase &  x,
size_t  i 
)

Definition at line 127 of file rev_one.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< Base >::Range(), and CppAD::ADFun< Base >::Reverse().

template<typename Base>
template<typename VectorBase, typename VectorSize_t>
VectorBase CppAD::ADFun< Base >::ForTwo ( const VectorBase &  x,
const VectorSize_t &  J,
const VectorSize_t &  K 
)

Definition at line 149 of file for_two.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), and CppAD::ADFun< Base >::Range().

template<typename Base>
template<typename VectorBase, typename VectorSize_t>
VectorBase CppAD::ADFun< Base >::RevTwo ( const VectorBase &  x,
const VectorSize_t &  I,
const VectorSize_t &  J 
)

Definition at line 149 of file rev_two.hpp.

References CPPAD_ASSERT_KNOWN, CppAD::ADFun< Base >::Domain(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< Base >::Range(), and CppAD::ADFun< Base >::Reverse().

template<class Base>
size_t CppAD::ADFun< Base >::Size ( void   )  const [inline]

Definition at line 187 of file ad_fun.hpp.

template<class Base>
size_t CppAD::ADFun< Base >::Order ( void   )  const [inline]

Definition at line 191 of file ad_fun.hpp.

template<class Base>
size_t CppAD::ADFun< Base >::Memory ( void   )  const [inline]

Definition at line 195 of file ad_fun.hpp.

template<class Base>
size_t CppAD::ADFun< Base >::taylor_size ( void   )  const [inline]

Definition at line 203 of file ad_fun.hpp.

template<typename Base>
template<typename ADvector>
void CppAD::ADFun< Base >::Dependent ( ADTape< Base > *  tape,
const ADvector &  y 
) [private]

Definition at line 185 of file dependent.hpp.

References CPPAD_ASSERT_KNOWN, CPPAD_ASSERT_UNKNOWN, CPPAD_NULL, CPPAD_TRACK_DEL_VEC, CppAD::ADFun< Base >::dep_parameter, CppAD::ADFun< Base >::dep_taddr, CppAD::ADFun< Base >::ForJac, CppAD::ADFun< Base >::ForJacBitDim, CppAD::ADFun< Base >::ForJacColDim, CppAD::ADTape< Base >::id_, CppAD::ADFun< Base >::ind_taddr, CppAD::InvOp, CppAD::NumVar(), CppAD::Parameter(), CppAD::ParOp, CppAD::ADFun< Base >::Rec, CppAD::ADTape< Base >::Rec, CppAD::ADTape< Base >::RecordParOp(), CppAD::vector< Type >::resize(), CppAD::ADTape< Base >::size_independent, CppAD::ADFun< Base >::Taylor, CppAD::ADFun< Base >::taylor_per_var, CppAD::ADFun< Base >::TaylorColDim, and CppAD::ADFun< Base >::totalNumVar.


Member Data Documentation

template<class Base>
size_t CppAD::ADFun< Base >::compareChange [private]

Definition at line 211 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< double >::CompareChange(), and CppAD::ADFun< Base >::Forward().

template<class Base>
size_t CppAD::ADFun< Base >::taylor_per_var [private]

Definition at line 214 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::capacity_taylor(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< double >::Order(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< double >::size_taylor(), and CppAD::ADFun< double >::taylor_size().

template<class Base>
size_t CppAD::ADFun< Base >::ForJacBitDim [private]

Definition at line 217 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), and CppAD::ADFun< Base >::RevSparseHes().

template<class Base>
size_t CppAD::ADFun< Base >::TaylorColDim [private]

Definition at line 220 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::capacity_taylor(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< double >::Memory(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), and CppAD::ADFun< Base >::RevSparseJac().

template<class Base>
size_t CppAD::ADFun< Base >::ForJacColDim [private]

Definition at line 223 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< double >::Memory(), and CppAD::ADFun< Base >::RevSparseHes().

template<class Base>
size_t CppAD::ADFun< Base >::totalNumVar [private]

Definition at line 226 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::capacity_taylor(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< double >::Memory(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), CppAD::ADFun< Base >::RevSparseJac(), CppAD::ADFun< double >::Size(), and CppAD::ADFun< double >::size_var().

template<class Base>
CppAD::vector<size_t> CppAD::ADFun< Base >::ind_taddr [private]

Definition at line 229 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< double >::Domain(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), and CppAD::ADFun< Base >::RevSparseJac().

template<class Base>
CppAD::vector<size_t> CppAD::ADFun< Base >::dep_taddr [private]

Definition at line 232 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< double >::Parameter(), CppAD::ADFun< double >::Range(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), and CppAD::ADFun< Base >::RevSparseJac().

template<class Base>
CppAD::vector<bool> CppAD::ADFun< Base >::dep_parameter [private]

Definition at line 233 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::Dependent(), and CppAD::ADFun< double >::Parameter().

template<class Base>
TapeRec<Base> CppAD::ADFun< Base >::Rec [private]

Definition at line 236 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< double >::Memory(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), CppAD::ADFun< Base >::RevSparseJac(), and CppAD::ADFun< double >::use_VecAD().

template<class Base>
Base* CppAD::ADFun< Base >::Taylor [private]

Definition at line 239 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::ADFun(), CppAD::ADFun< Base >::capacity_taylor(), CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::Forward(), CppAD::ADFun< Base >::Reverse(), CppAD::ADFun< Base >::RevSparseHes(), CppAD::ADFun< Base >::RevSparseJac(), and CppAD::ADFun< double >::~ADFun().

template<class Base>
Pack* CppAD::ADFun< Base >::ForJac [private]

Definition at line 242 of file ad_fun.hpp.

Referenced by CppAD::ADFun< Base >::Dependent(), CppAD::ADFun< Base >::ForSparseJac(), CppAD::ADFun< Base >::RevSparseHes(), and CppAD::ADFun< double >::~ADFun().


The documentation for this class was generated from the following files:
Generated on Sun Nov 14 14:15:35 2010 for Coin-All by  doxygen 1.4.7