Sacado Package Browser (Single Doxygen Collection) Version of the Day
Namespaces | Defines | Functions | Variables
Sacado_Fad_Ops.hpp File Reference
#include "Sacado_Fad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include <ostream>
Include dependency graph for Sacado_Fad_Ops.hpp:
This graph shows which files directly or indirectly include this file:

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 
)

Definition at line 61 of file Sacado_Fad_Ops.hpp.

#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 735 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 808 of file Sacado_Fad_Ops.hpp.


Function Documentation

FAD_UNARYOP_MACRO ( operator+  ,
UnaryPlusOp  ,
expr.  val(),
expr.  dxi,
expr.  fastAccessDx
)
expr val ( )
expr expr dx ( )
expr expr expr fastAccessDx ( )

Variable Documentation

Definition at line 118 of file Sacado_Fad_Ops.hpp.

expr expr expr ExpOp

Definition at line 123 of file Sacado_Fad_Ops.hpp.

expr expr expr LogOp

Definition at line 128 of file Sacado_Fad_Ops.hpp.

expr expr expr expr expr Log10Op

Definition at line 133 of file Sacado_Fad_Ops.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines