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
namespace  Sacado::Fad

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)

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
expr expr expr std::exp (expr.val())
expr expr expr std::exp (expr.val())*expr.dx(i)
expr expr expr std::exp (expr.val())*expr.fastAccessDx(i)) FAD_UNARYOP_MACRO(log
expr expr expr std::log (expr.val())
expr expr expr expr expr std::log10 (expr.val())
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;            \
    }                 \
  }                 \
}


Function Documentation

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

expr val (  ) 

expr expr dx (  ) 

expr expr expr fastAccessDx (  ) 


Variable Documentation

UnaryMinusOp

Definition at line 116 of file Sacado_Fad_Ops.hpp.

expr expr expr ExpOp

Definition at line 121 of file Sacado_Fad_Ops.hpp.

expr expr expr LogOp

Definition at line 126 of file Sacado_Fad_Ops.hpp.

expr expr expr expr expr Log10Op

Definition at line 131 of file Sacado_Fad_Ops.hpp.


Generated on Wed May 12 21:39:43 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7