Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions | Variables
Sacado_ELRFad_Ops.hpp File Reference
#include "Sacado_ELRFad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include <ostream>
Include dependency graph for Sacado_ELRFad_Ops.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Sacado
 
 Sacado::ELRFad
 Namespace for expression-level reverse forward-mode AD classes.
 

Macros

#define FAD_UNARYOP_MACRO(OPNAME, OP, VALUE, ADJOINT,LINEAR, DX, FASTACCESSDX)
 
#define FAD_BINARYOP_MACRO(OPNAME, OP, VALUE, LADJOINT, RADJOINT,LINEAR, CONST_LINEAR_1, CONST_LINEAR_2,LINEAR_2, CONST_LINEAR_1_2, CONST_LINEAR_2_2,DX, FASTACCESSDX, 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(), bar, true, 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 bar bar expr
expr expr 
bar (std::log(value_type(10.))*expr.val())
 
template<typename ExprT >
KOKKOS_INLINE_FUNCTION bool Sacado::ELRFad::toBool (const Expr< ExprT > &x)
 
template<typename ExprT >
std::ostream & Sacado::ELRFad::operator<< (std::ostream &os, const Expr< ExprT > &x)
 

Variables

 UnaryMinusOp
 
expr bar
 
expr true
 
expr expr expr ExpOp
 
expr expr expr bar false
 
expr expr expr bar LogOp
 
expr expr expr bar bar expr
expr expr 
Log10Op
 

Macro Definition Documentation

#define FAD_UNARYOP_MACRO (   OPNAME,
  OP,
  VALUE,
  ADJOINT,
  LINEAR,
  DX,
  FASTACCESSDX 
)

Definition at line 59 of file Sacado_ELRFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP,
  VALUE,
  LADJOINT,
  RADJOINT,
  LINEAR,
  CONST_LINEAR_1,
  CONST_LINEAR_2,
  LINEAR_2,
  CONST_LINEAR_1_2,
  CONST_LINEAR_2_2,
  DX,
  FASTACCESSDX,
  CONST_DX_1,
  CONST_DX_2,
  CONST_FASTACCESSDX_1,
  CONST_FASTACCESSDX_2 
)
#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado { \
namespace ELRFad { \
template <typename ExprT1, typename ExprT2> \
KOKKOS_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return expr1.val() OP expr2.val(); \
} \
\
template <typename ExprT2> \
KOKKOS_INLINE_FUNCTION \
bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP expr2.val(); \
} \
\
template <typename ExprT1> \
KOKKOS_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return expr1.val() OP b; \
} \
} \
}
#define FAD_BOOL_MACRO (   OP)
Value:
namespace Sacado { \
namespace ELRFad { \
template <typename ExprT1, typename ExprT2> \
KOKKOS_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return toBool(expr1) OP toBool(expr2); \
} \
\
template <typename ExprT2> \
bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP toBool(expr2); \
} \
\
template <typename ExprT1> \
KOKKOS_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return toBool(expr1) OP b; \
} \
} \
}
KOKKOS_INLINE_FUNCTION bool toBool(const Expr< T > &xx)
#define KOKKOS_INLINE_FUNCTION

Definition at line 1030 of file Sacado_ELRFad_Ops.hpp.

Function Documentation

FAD_UNARYOP_MACRO ( operator+  ,
UnaryPlusOp  ,
expr.  val(),
bar  ,
true  ,
expr.  dxi,
expr.  fastAccessDx
)
expr val ( )
expr expr dx ( )
expr expr expr fastAccessDx ( )
expr expr expr bar bar expr expr expr bar ( std::  logvalue_type(10.))*expr.val()

Variable Documentation

UnaryMinusOp

Definition at line 180 of file Sacado_ELRFad_Ops.hpp.

expr bar

Definition at line 182 of file Sacado_ELRFad_Ops.hpp.

expr true

Definition at line 182 of file Sacado_ELRFad_Ops.hpp.

expr expr expr ExpOp

Definition at line 187 of file Sacado_ELRFad_Ops.hpp.

expr expr expr bar bar expr expr expr false

Definition at line 190 of file Sacado_ELRFad_Ops.hpp.

expr expr expr bar LogOp

Definition at line 194 of file Sacado_ELRFad_Ops.hpp.

expr expr expr bar bar expr expr expr Log10Op

Definition at line 201 of file Sacado_ELRFad_Ops.hpp.