Sacado Package Browser (Single Doxygen Collection) Version of the Day
Defines | Functions | Variables
Sacado_ELRCacheFad_Ops.hpp File Reference
#include "Sacado_ELRCacheFad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include <ostream>
Include dependency graph for Sacado_ELRCacheFad_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, ADJOINT)
#define FAD_BINARYOP_MACRO(OPNAME, OP, PARTIAL, VALUE, LADJOINT, RADJOINT)
#define FAD_RELOP_MACRO(OP)

Functions

 FAD_UNARYOP_MACRO (operator+, UnaryPlusOp,;, v, bar) FAD_UNARYOP_MACRO(operator-
bar FAD_UNARYOP_MACRO (exp, ExpOp, a=std::exp(v), a, bar *a) FAD_UNARYOP_MACRO(log
bar bar v FAD_UNARYOP_MACRO (log10, Log10Op, a=std::log(value_type(10))*v, std::log10(v), bar/a) FAD_UNARYOP_MACRO(sqrt
bar bar v bar a FAD_UNARYOP_MACRO (cos, CosOp, a=std::sin(v), std::cos(v),-bar *a) FAD_UNARYOP_MACRO(sin
bar bar v bar a bar *a FAD_UNARYOP_MACRO (tan, TanOp, a=std::tan(v), a, bar *(value_type(1)+a *a)) FAD_UNARYOP_MACRO(acos
bar bar v bar a bar *a bar a FAD_UNARYOP_MACRO (asin, ASinOp, a=std::sqrt(value_type(1)-v *v), std::asin(v), bar/a) FAD_UNARYOP_MACRO(atan
bar bar v bar a bar *a bar a bar a FAD_UNARYOP_MACRO (cosh, CoshOp, a=std::sinh(v), std::cosh(v), bar *a) FAD_UNARYOP_MACRO(sinh
bar bar v bar a bar *a bar a
bar a bar *a 
FAD_UNARYOP_MACRO (tanh, TanhOp, a=std::cosh(v), std::tanh(v), bar/(a *a)) FAD_UNARYOP_MACRO(acosh
bar bar v bar a bar *a bar a
bar a bar *a bar a 
FAD_UNARYOP_MACRO (asinh, ASinhOp, a=std::sqrt(value_type(1)+v *v), std::asinh(v), bar/a) FAD_UNARYOP_MACRO(atanh
bar bar v bar a bar *a bar a
bar a bar *a bar a bar a 
FAD_UNARYOP_MACRO (abs, AbsOp,;, std::abs(v),(expr.val() >=value_type(0.))?bar:value_type(-bar)) FAD_UNARYOP_MACRO(fabs

Variables

 UnaryMinusOp
 v
bar LogOp
bar bar v SqrtOp
bar bar v a = value_type(2)*std::sqrt(v)
bar bar v bar a SinOp
bar bar v bar a bar *a ACosOp
bar bar v bar a bar *a bar a ATanOp
bar bar v bar a bar *a bar a bar a SinhOp
bar bar v bar a bar *a bar a
bar a bar *a 
ACoshOp
bar bar v bar a bar *a bar a
bar a bar *a bar a 
ATanhOp
bar bar v bar a bar *a bar a
bar a bar *a bar a bar a 
FAbsOp

Define Documentation

#define FAD_UNARYOP_MACRO (   OPNAME,
  OP,
  PARTIAL,
  VALUE,
  ADJOINT 
)

Definition at line 61 of file Sacado_ELRCacheFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP,
  PARTIAL,
  VALUE,
  LADJOINT,
  RADJOINT 
)
#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado {              \
  namespace ELRCacheFad {           \
    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  ,
bar   
)
bar FAD_UNARYOP_MACRO ( exp  ,
ExpOp  ,
a  = std::exp(v),
a  ,
bar *  a 
)
bar bar v FAD_UNARYOP_MACRO ( log10  ,
Log10Op  ,
a  = std::log(value_type(10))*v,
std::  log10v,
bar/  a 
)
bar bar v bar a FAD_UNARYOP_MACRO ( cos  ,
CosOp  ,
a  = std::sin(v),
std::  cosv,
-bar *  a 
)
bar bar v bar a bar* a FAD_UNARYOP_MACRO ( tan  ,
TanOp  ,
a  = std::tan(v),
a  ,
bar *  value_type(1)+a *a 
)
bar bar v bar a bar* a bar a FAD_UNARYOP_MACRO ( asin  ,
ASinOp  ,
a  = std::sqrt(value_type(1)-v*v),
std::  asinv,
bar/  a 
)
bar bar v bar a bar* a bar a bar a FAD_UNARYOP_MACRO ( cosh  ,
CoshOp  ,
a  = std::sinh(v),
std::  coshv,
bar *  a 
)
bar bar v bar a bar* a bar a bar a bar* a FAD_UNARYOP_MACRO ( tanh  ,
TanhOp  ,
a  = std::cosh(v),
std::  tanhv,
bar/  a *a 
)
bar bar v bar a bar* a bar a bar a bar* a bar a FAD_UNARYOP_MACRO ( asinh  ,
ASinhOp  ,
a  = std::sqrt(value_type(1)+v*v),
std::  asinhv,
bar/  a 
)
bar bar v bar a bar* a bar a bar a bar* a bar a bar a FAD_UNARYOP_MACRO ( abs  ,
AbsOp  ,
,
std::  absv,
(expr.val() >=value_type(0.))?bar:value_type(-bar)   
)

Variable Documentation

Definition at line 134 of file Sacado_ELRCacheFad_Ops.hpp.

v

Definition at line 134 of file Sacado_ELRCacheFad_Ops.hpp.

bar LogOp

Definition at line 144 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v SqrtOp

Definition at line 154 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a bar a bar* a bar a a = value_type(2)*std::sqrt(v)

Definition at line 155 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a SinOp

Definition at line 164 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a ACosOp

Definition at line 174 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a ATanOp

Definition at line 184 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a bar a SinhOp

Definition at line 194 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a bar a bar* a ACoshOp

Definition at line 204 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a bar a bar* a bar a ATanhOp

Definition at line 214 of file Sacado_ELRCacheFad_Ops.hpp.

bar bar v bar a bar* a bar a bar a bar* a bar a bar a FAbsOp

Definition at line 224 of file Sacado_ELRCacheFad_Ops.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines