#include "Sacado_Fad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include <ostream>
Go to the source code of this file.
Namespaces |
| namespace | Sacado |
| | Abstract class that provides access to a parameter value in a code for the parameter library. An object of this type is required to construct a ParameterRegistration object.
|
| namespace | Sacado::Fad |
| | Namespace for forward-mode AD classes.
|
Defines |
| #define | FAD_UNARYOP_MACRO(OPNAME, OP, VALUE, DX, FASTACCESSDX) |
| #define | FAD_BINARYOP_MACRO(OPNAME, OP, VALUE, DX, FASTACCESSDX, VAL_CONST_DX_1, VAL_CONST_DX_2, CONST_DX_1, CONST_DX_2, CONST_FASTACCESSDX_1, CONST_FASTACCESSDX_2) |
| #define | FAD_RELOP_MACRO(OP) |
| #define | FAD_BOOL_MACRO(OP) |
Functions |
| | FAD_UNARYOP_MACRO (operator+, UnaryPlusOp, expr.val(), expr.dx(i), expr.fastAccessDx(i)) FAD_UNARYOP_MACRO(operator- |
| expr | val () |
| expr expr | dx (i) |
| expr expr expr | fastAccessDx (i)) FAD_UNARYOP_MACRO(exp |
| template<typename ExprT > |
| bool | Sacado::Fad::operator! (const Expr< ExprT > &expr) |
| template<typename ExprT > |
| bool | Sacado::Fad::toBool (const Expr< ExprT > &x) |
| template<typename ExprT > |
| std::ostream & | Sacado::Fad::operator<< (std::ostream &os, const Expr< ExprT > &x) |
Variables |
| | UnaryMinusOp |
| expr expr expr | ExpOp |
| expr expr expr | LogOp |
| expr expr expr expr expr | Log10Op |
Define Documentation
| #define FAD_UNARYOP_MACRO |
( |
|
OPNAME, |
|
|
|
OP, |
|
|
|
VALUE, |
|
|
|
DX, |
|
|
|
FASTACCESSDX |
|
) |
| |
| #define FAD_BINARYOP_MACRO |
( |
|
OPNAME, |
|
|
|
OP, |
|
|
|
VALUE, |
|
|
|
DX, |
|
|
|
FASTACCESSDX, |
|
|
|
VAL_CONST_DX_1, |
|
|
|
VAL_CONST_DX_2, |
|
|
|
CONST_DX_1, |
|
|
|
CONST_DX_2, |
|
|
|
CONST_FASTACCESSDX_1, |
|
|
|
CONST_FASTACCESSDX_2 |
|
) |
| |
| #define FAD_RELOP_MACRO |
( |
|
OP | ) |
|
Value:namespace Sacado { \
namespace Fad { \
template <typename ExprT1, typename ExprT2> \
inline bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return expr1.val() OP expr2.val(); \
} \
\
template <typename ExprT2> \
inline bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP expr2.val(); \
} \
\
template <typename ExprT1> \
inline bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return expr1.val() OP b; \
} \
} \
}
Definition at line 711 of file Sacado_Fad_Ops.hpp.
| #define FAD_BOOL_MACRO |
( |
|
OP | ) |
|
Value:namespace Sacado { \
namespace Fad { \
template <typename ExprT1, typename ExprT2> \
inline bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return toBool(expr1) OP toBool(expr2); \
} \
\
template <typename ExprT2> \
inline bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP toBool(expr2); \
} \
\
template <typename ExprT1> \
inline bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return toBool(expr1) OP b; \
} \
} \
}
Definition at line 784 of file Sacado_Fad_Ops.hpp.
Function Documentation
| FAD_UNARYOP_MACRO |
( |
operator+ |
, |
|
|
UnaryPlusOp |
, |
|
|
expr. |
val(), |
|
|
expr. |
dxi, |
|
|
expr. |
fastAccessDxi |
|
) |
| |
| expr expr expr fastAccessDx |
( |
i |
| ) |
|
Variable Documentation