CppADCodeGen  HEAD
A C++ Algorithmic Differentiation Package with Source Code Generation
CppAD Namespace Reference

Classes

class  AD
 
class  ADFun
 
class  vector
 

Functions

template<>
cg::CG< double > epsilon< cg::CG< double > > ()
 
cg::CG< double > azmul (const cg::CG< double > &x, const cg::CG< double > &y)
 
template<>
cg::CG< float > epsilon< cg::CG< float > > ()
 
cg::CG< float > azmul (const cg::CG< float > &left, const cg::CG< float > &right)
 
template<class Base >
int Integer (const CppAD::cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > CondExp (cg::CGOpCode op, const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase, bool(*compare)(const Base &, const Base &))
 
template<class Base >
cg::CG< Base > CondExpLt (const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
cg::CG< Base > CondExpLe (const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
cg::CG< Base > CondExpEq (const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
cg::CG< Base > CondExpGe (const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
cg::CG< Base > CondExpGt (const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
cg::CG< Base > CondExpOp (enum CompareOp cop, const cg::CG< Base > &left, const cg::CG< Base > &right, const cg::CG< Base > &trueCase, const cg::CG< Base > &falseCase)
 
template<class Base >
bool GreaterThanZero (const cg::CG< Base > &x)
 
template<class Base >
bool GreaterThanOrZero (const cg::CG< Base > &x)
 
template<class Base >
bool LessThanZero (const cg::CG< Base > &x)
 
template<class Base >
bool LessThanOrZero (const cg::CG< Base > &x)
 
template<class Base >
bool abs_geq (const cg::CG< Base > &x, const cg::CG< Base > &y)
 
template<class Base >
bool IdenticalPar (const cg::CG< Base > &x)
 
template<class Base >
bool IdenticalZero (const cg::CG< Base > &x)
 
template<class Base >
bool IdenticalOne (const cg::CG< Base > &x)
 
template<class Base >
bool IdenticalEqualPar (const cg::CG< Base > &x, const cg::CG< Base > &y)
 
template<class Base >
bool EqualOpSeq (const cg::CG< Base > &u, const cg::CG< Base > &v)
 
template<class Base >
bool NearEqual (const cg::CG< Base > &x, const cg::CG< Base > &y, const Base &r, const Base &a)
 
template<class Base >
bool NearEqual (const Base &x, const cg::CG< Base > &y, const Base &r, const Base &a)
 
template<class Base >
bool NearEqual (const cg::CG< Base > &x, const Base &y, const Base &r, const Base &a)
 
template<class Base >
bool isnan (const cg::CG< Base > &s)
 
template<class Base >
cg::CG< Base > sign (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > pow (const cg::CG< Base > &x, const cg::CG< Base > &y)
 
template<class Base >
cg::CG< Base > pow (const Base &x, const cg::CG< Base > &y)
 
template<class Base >
cg::CG< Base > pow (const cg::CG< Base > &x, const Base &y)
 
template<class Base >
cg::CG< Base > abs (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > fabs (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > acos (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > asin (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > atan (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > cos (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > cosh (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > exp (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > log (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > sin (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > sinh (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > sqrt (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > tan (const cg::CG< Base > &x)
 
template<class Base >
cg::CG< Base > tanh (const cg::CG< Base > &x)
 
template<class Base >
bool IdenticalCon (const CppAD::cg::CG< Base > &x)
 
template<class Base >
bool IdenticalEqualCon (const CppAD::cg::CG< Base > &x, const CppAD::cg::CG< Base > &y)
 
template<class Base >
cg::CG< Base > log10 (const cg::CG< Base > &x)
 
template<class Base >
CppAD::cg::CG< Base > pow (const CppAD::cg::CG< Base > &x, const CppAD::cg::CG< Base > &y)
 
template<class Base >
CppAD::cg::CG< Base > pow (const Base &x, const CppAD::cg::CG< Base > &y)
 
template<class Base >
CppAD::cg::CG< Base > pow (const CppAD::cg::CG< Base > &x, const Base &y)
 
template<class Base >
CppAD::cg::CG< Base > pow (const int &x, const CppAD::cg::CG< Base > &y)
 
template<class Base >
CppAD::cg::CG< Base > sign (const CppAD::cg::CG< Base > &x)
 

Detailed Description

Adapted from CppAD

Function Documentation

◆ azmul() [1/2]

cg::CG<double> CppAD::azmul ( const cg::CG< double > &  x,
const cg::CG< double > &  y 
)
inline

Absolute Zero multiplication

Definition at line 36 of file base_double.hpp.

◆ azmul() [2/2]

cg::CG<float> CppAD::azmul ( const cg::CG< float > &  left,
const cg::CG< float > &  right 
)
inline

Absolute Zero multiplication

Definition at line 36 of file base_float.hpp.

◆ CondExp()

template<class Base >
cg::CG< Base > CppAD::CondExp ( cg::CGOpCode  op,
const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase,
bool(*)(const Base &, const Base &)  compare 
)
inline

Creates a conditional expression. INTERNAL ONLY

Definition at line 80 of file cond_exp_op.hpp.

Referenced by CondExpEq(), CondExpGe(), CondExpGt(), CondExpLe(), and CondExpLt().

◆ CondExpEq()

template<class Base >
cg::CG<Base> CppAD::CondExpEq ( const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase 
)
inline

Creates a conditional expression for "equals"

Definition at line 160 of file cond_exp_op.hpp.

◆ CondExpGe()

template<class Base >
cg::CG<Base> CppAD::CondExpGe ( const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase 
)
inline

Creates a conditional expression for "greater or equal"

Definition at line 178 of file cond_exp_op.hpp.

◆ CondExpGt()

template<class Base >
cg::CG<Base> CppAD::CondExpGt ( const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase 
)
inline

Creates a conditional expression for "greater than"

Definition at line 196 of file cond_exp_op.hpp.

◆ CondExpLe()

template<class Base >
cg::CG<Base> CppAD::CondExpLe ( const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase 
)
inline

Creates a conditional expression for "less or equal"

Definition at line 142 of file cond_exp_op.hpp.

◆ CondExpLt()

template<class Base >
cg::CG<Base> CppAD::CondExpLt ( const cg::CG< Base > &  left,
const cg::CG< Base > &  right,
const cg::CG< Base > &  trueCase,
const cg::CG< Base > &  falseCase 
)
inline

Creates a conditional expression for "less than"

Definition at line 123 of file cond_exp_op.hpp.

◆ epsilon< cg::CG< double > >()

template<>
cg::CG<double> CppAD::epsilon< cg::CG< double > > ( )
inline

Specialization of the numeric_limits for doubles Specialization of the machine epsilon for CG<double>

Definition at line 29 of file base_double.hpp.

◆ epsilon< cg::CG< float > >()

template<>
cg::CG<float> CppAD::epsilon< cg::CG< float > > ( )
inline

Specialization of the numeric_limits for floats Specialization of the machine epsilon for CG<float>

Definition at line 29 of file base_float.hpp.

◆ GreaterThanZero()

template<class Base >
bool CppAD::GreaterThanZero ( const cg::CG< Base > &  x)

order determining functions

Definition at line 21 of file ordered.hpp.

◆ IdenticalOne()

template<class Base >
bool CppAD::IdenticalOne ( const cg::CG< Base > &  x)
inline
Exceptions
CppAD::cg::CGException

Definition at line 45 of file identical.hpp.

Referenced by CppAD::cg::CG< ScalarOut >::setValue().

◆ IdenticalPar()

template<class Base >
bool CppAD::IdenticalPar ( const cg::CG< Base > &  x)
inline
Exceptions
CppAD::cg::CGException

Definition at line 21 of file identical.hpp.

◆ IdenticalZero()

template<class Base >
bool CppAD::IdenticalZero ( const cg::CG< Base > &  x)
inline
Exceptions
CppAD::cg::CGException

Definition at line 37 of file identical.hpp.

Referenced by CppAD::cg::CG< ScalarOut >::setValue().

◆ pow() [1/2]

template<class Base >
CppAD::cg::CG<Base> CppAD::pow ( const CppAD::cg::CG< Base > &  x,
const CppAD::cg::CG< Base > &  y 
)
inline

math functions

Definition at line 21 of file math_other.hpp.

Referenced by CppAD::cg::LanguageC< Base >::generateTemporaryVariableDeclaration(), and pow().

◆ pow() [2/2]

template<class Base >
cg::CG<Base> CppAD::pow ( const CppAD::cg::CG< Base > &  x,
const CppAD::cg::CG< Base > &  y 
)
inline

math functions

Definition at line 21 of file math_other.hpp.

Referenced by CppAD::cg::LanguageC< Base >::generateTemporaryVariableDeclaration(), and pow().

◆ sign() [1/2]

template<class Base >
CppAD::cg::CG<Base> CppAD::sign ( const CppAD::cg::CG< Base > &  x)
inline

Math functions

Definition at line 74 of file math_other.hpp.

◆ sign() [2/2]

template<class Base >
cg::CG<Base> CppAD::sign ( const CppAD::cg::CG< Base > &  x)
inline

Math functions

Definition at line 74 of file math_other.hpp.