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

Go to the source code of this file.

Defines

#define FAD_UNARYOP_MACRO(OPNAME, OP, PARTIAL, VALUE, DX, FASTACCESSDX)
#define FAD_BINARYOP_MACRO(OPNAME, OP, PARTIAL, VALUE, DX, FASTACCESSDX, CONST_DX_1, CONST_DX_2, CONST_FASTACCESSDX_1, CONST_FASTACCESSDX_2)
#define FAD_SFINAE_BINARYOP_MACRO(OPNAME, OP, PARTIAL, VALUE, DX, FASTACCESSDX, CONST_DX_1, CONST_DX_2, CONST_FASTACCESSDX_1, CONST_FASTACCESSDX_2)
#define FAD_RELOP_MACRO(OP)

Functions

 FAD_UNARYOP_MACRO (operator+, UnaryPlusOp,;, v, expr.dx(i), expr.fastAccessDx(i)) FAD_UNARYOP_MACRO(operator-
expr dx (i)
expr expr fastAccessDx (i)) FAD_UNARYOP_MACRO(exp

Variables

 UnaryMinusOp
 v = 0 ? value_type(+expr.dx(i)) : value_type(-expr.dx(i))
expr expr ExpOp
expr expr a = std::exp(v)
expr expr expr expr LogOp
expr expr expr expr expr expr Log10Op
expr expr expr expr expr expr
expr expr 
SqrtOp
expr expr expr expr expr expr
expr expr expr expr 
CosOp
expr expr expr expr expr expr
expr expr expr expr expr expr 
SinOp
expr expr expr expr expr expr
expr expr expr expr expr expr
expr expr 
TanOp
expr expr expr expr expr expr
expr expr expr expr expr expr
expr expr value_type 
t = std::tan(v)
expr expr ACosOp
expr expr expr expr ASinOp
expr expr expr expr expr expr ATanOp
expr expr expr expr expr expr
expr expr 
CoshOp
expr expr expr expr expr expr
expr expr expr expr 
SinhOp
expr expr expr expr expr expr
expr expr expr expr expr expr 
TanhOp
expr expr ACoshOp
expr expr expr expr ASinhOp
expr expr expr expr expr expr ATanhOp
expr expr expr expr expr expr
expr expr 
AbsOp

Define Documentation

#define FAD_UNARYOP_MACRO (   OPNAME,
  OP,
  PARTIAL,
  VALUE,
  DX,
  FASTACCESSDX 
)

Definition at line 62 of file Sacado_CacheFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP,
  PARTIAL,
  VALUE,
  DX,
  FASTACCESSDX,
  CONST_DX_1,
  CONST_DX_2,
  CONST_FASTACCESSDX_1,
  CONST_FASTACCESSDX_2 
)
#define FAD_SFINAE_BINARYOP_MACRO (   OPNAME,
  OP,
  PARTIAL,
  VALUE,
  DX,
  FASTACCESSDX,
  CONST_DX_1,
  CONST_DX_2,
  CONST_FASTACCESSDX_1,
  CONST_FASTACCESSDX_2 
)
#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado {              \
  namespace CacheFad {              \
    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  ,
,
v  ,
expr.  dxi,
expr.  fastAccessDx
)
expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c *expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 dx ( )

Definition at line 133 of file Sacado_Fad_Ops.hpp.

expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c *expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr2 expr1 expr2 expr1 fastAccessDx ( )

Variable Documentation

Definition at line 123 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr v = 0 ? value_type(+expr.dx(i)) : value_type(-expr.dx(i))

Definition at line 123 of file Sacado_CacheFad_Ops.hpp.

expr expr ExpOp

Definition at line 129 of file Sacado_CacheFad_Ops.hpp.

bar bar v bar a bar *a bar a bar a bar *a bar a a = std::exp(v)

Definition at line 130 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr LogOp

Definition at line 135 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr Log10Op

Definition at line 141 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr SqrtOp

Definition at line 147 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr expr expr CosOp

Definition at line 153 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr expr expr expr expr SinOp

Definition at line 159 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr expr expr expr expr expr expr TanOp

Definition at line 165 of file Sacado_CacheFad_Ops.hpp.

t = std::tan(v)

Definition at line 166 of file Sacado_CacheFad_Ops.hpp.

expr expr ACosOp

Definition at line 171 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr ASinOp

Definition at line 177 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr ATanOp

Definition at line 183 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr CoshOp

Definition at line 189 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr expr expr SinhOp

Definition at line 195 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr expr expr expr expr TanhOp

Definition at line 201 of file Sacado_CacheFad_Ops.hpp.

expr expr ACoshOp

Definition at line 207 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr ASinhOp

Definition at line 213 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr ATanhOp

Definition at line 219 of file Sacado_CacheFad_Ops.hpp.

expr expr expr expr expr expr expr expr AbsOp

Definition at line 225 of file Sacado_CacheFad_Ops.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines