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
expr expr expr expr std::log (v)
expr expr expr expr expr expr std::log10 (v)
expr expr expr expr expr expr
expr expr 
std::sqrt (v)
expr expr expr expr expr expr
expr expr expr expr 
std::cos (v)
expr expr expr expr expr expr
expr expr expr expr expr expr 
std::sin (v)
expr expr std::acos (v)
expr expr expr expr std::asin (v)
expr expr expr expr expr expr std::atan (v)
expr expr expr expr expr expr
expr expr 
std::cosh (v)
expr expr expr expr expr expr
expr expr expr expr 
std::sinh (v)
 std::tanh (v)
expr expr std::acosh (v)
expr expr expr expr std::asinh (v)
expr expr expr expr expr expr std::atanh (v)
expr expr expr expr expr expr
expr expr 
std::abs (v)

Variables

 UnaryMinusOp
 v
expr expr ExpOp
expr expr a = std::exp(v)
expr expr a
expr expr expr expr LogOp
expr expr expr expr expr expr Log10Op
expr expr expr expr expr expr a = std::log(value_type(10))*v
expr expr expr expr expr expr
expr expr 
SqrtOp
expr expr expr expr expr expr
expr expr 
a = value_type(2)*std::sqrt(v)
expr expr expr expr expr expr
expr expr expr expr 
CosOp
expr expr expr expr expr expr
expr expr expr expr 
a = std::sin(v)
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 
a = std::cos(v)
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)
 a = value_type(1)+t*t
 t
expr expr ACosOp
expr expr a = - std::sqrt(value_type(1)-v*v)
expr expr expr expr ASinOp
expr expr expr expr a = std::sqrt(value_type(1)-v*v)
expr expr expr expr expr expr ATanOp
expr expr expr expr expr expr a = (value_type(1)+v*v)
expr expr expr expr expr expr
expr expr 
CoshOp
expr expr expr expr expr expr
expr expr 
a = std::sinh(v)
expr expr expr expr expr expr
expr expr expr expr 
SinhOp
expr expr expr expr expr expr
expr expr expr expr 
a = std::cosh(v)
expr expr expr expr expr expr
expr expr expr expr expr expr 
TanhOp
expr expr expr expr expr expr
expr expr expr expr expr expr 
a = std::cosh(v)
 a = a*a
expr expr ACoshOp
expr expr a = std::sqrt((v-value_type(1))*(v+value_type(1)))
expr expr expr expr ASinhOp
expr expr expr expr a = std::sqrt(value_type(1)+v*v)
expr expr expr expr expr expr ATanhOp
expr expr expr expr expr expr a = value_type(1)-v*v
expr expr expr expr expr expr
expr expr 
AbsOp
expr expr expr expr expr expr
expr expr 
v = 0 ? value_type(+expr.dx(i)) : value_type(-expr.dx(i))


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.  dx(i),
expr.  fastAccessDx(i) 
)

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

UnaryMinusOp

Definition at line 123 of file Sacado_CacheFad_Ops.hpp.

v

Definition at line 123 of file Sacado_CacheFad_Ops.hpp.

expr expr ExpOp

Definition at line 129 of file Sacado_CacheFad_Ops.hpp.

expr expr a = std::exp(v)

Definition at line 130 of file Sacado_CacheFad_Ops.hpp.

expr expr a

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 a = std::log(value_type(10))*v

Definition at line 142 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 a = value_type(2)*std::sqrt(v)

Definition at line 148 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 a = std::sin(v)

Definition at line 154 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 a = std::cos(v)

Definition at line 160 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.

expr expr expr expr expr expr expr expr expr expr expr expr expr expr value_type t = std::tan(v)

Definition at line 166 of file Sacado_CacheFad_Ops.hpp.

a = value_type(1)+t*t

Definition at line 166 of file Sacado_CacheFad_Ops.hpp.

t

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 a = - std::sqrt(value_type(1)-v*v)

Definition at line 172 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 a = std::sqrt(value_type(1)-v*v)

Definition at line 178 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 a = (value_type(1)+v*v)

Definition at line 184 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 a = std::sinh(v)

Definition at line 190 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 a = std::cosh(v)

Definition at line 196 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 expr expr expr expr expr expr expr expr expr expr a = std::cosh(v)

Definition at line 202 of file Sacado_CacheFad_Ops.hpp.

a = a*a

Definition at line 202 of file Sacado_CacheFad_Ops.hpp.

expr expr ACoshOp

Definition at line 207 of file Sacado_CacheFad_Ops.hpp.

expr expr a = std::sqrt((v-value_type(1))*(v+value_type(1)))

Definition at line 208 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 a = std::sqrt(value_type(1)+v*v)

Definition at line 214 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 a = value_type(1)-v*v

Definition at line 220 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.

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

Definition at line 228 of file Sacado_CacheFad_Ops.hpp.


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