Sacado Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
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.

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())
 

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

◆ FAD_UNARYOP_MACRO

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

Definition at line 59 of file Sacado_ELRFad_Ops.hpp.

◆ FAD_BINARYOP_MACRO

#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 
)

◆ FAD_RELOP_MACRO

#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado { \
namespace ELRFad { \
template <typename ExprT1, typename ExprT2> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return expr1.val() OP expr2.val(); \
} \
\
template <typename ExprT2> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP expr2.val(); \
} \
\
template <typename ExprT1> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return expr1.val() OP b; \
} \
} \
}

◆ FAD_BOOL_MACRO

#define FAD_BOOL_MACRO (   OP)
Value:
namespace Sacado { \
namespace ELRFad { \
template <typename ExprT1, typename ExprT2> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return toBool(expr1) OP toBool(expr2); \
} \
\
template <typename ExprT2> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP toBool(expr2); \
} \
\
template <typename ExprT1> \
SACADO_INLINE_FUNCTION \
bool \
operator OP (const Expr<ExprT1>& expr1, \
const typename Expr<ExprT1>::value_type& b) \
{ \
return toBool(expr1) OP b; \
} \
} \
}
SACADO_INLINE_FUNCTION bool toBool(const Expr< T > &xx)

Function Documentation

◆ FAD_UNARYOP_MACRO()

FAD_UNARYOP_MACRO ( operator+  ,
UnaryPlusOp  ,
expr.  val(),
bar  ,
true  ,
expr.  dxi,
expr.  fastAccessDx
)

◆ val()

expr val ( )

◆ dx()

expr expr dx ( i  )

◆ fastAccessDx()

expr expr expr fastAccessDx ( i  )

◆ bar()

expr expr expr bar bar expr expr expr bar ( std::log(value_type(10.)) *expr.val()  )

Variable Documentation

◆ UnaryMinusOp

UnaryMinusOp

Definition at line 180 of file Sacado_ELRFad_Ops.hpp.

◆ bar

expr bar

Definition at line 182 of file Sacado_ELRFad_Ops.hpp.

◆ true

expr true

Definition at line 183 of file Sacado_ELRFad_Ops.hpp.

◆ ExpOp

expr expr expr ExpOp

Definition at line 187 of file Sacado_ELRFad_Ops.hpp.

◆ false

expr expr expr bar bar expr expr expr false

Definition at line 190 of file Sacado_ELRFad_Ops.hpp.

◆ LogOp

expr expr expr bar LogOp

Definition at line 194 of file Sacado_ELRFad_Ops.hpp.

◆ Log10Op

expr expr expr bar bar expr expr expr Log10Op

Definition at line 201 of file Sacado_ELRFad_Ops.hpp.