Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions | Variables
Sacado_LFad_LogicalSparseOps.hpp File Reference
#include <cmath>
#include <algorithm>
#include <ostream>
Include dependency graph for Sacado_LFad_LogicalSparseOps.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)
 
#define FAD_BINARYOP_MACRO(OPNAME, OP, VALUE, DX, FASTACCESSDX, VAL_CONST_DX_1, VAL_CONST_DX_2, 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()) FAD_UNARYOP_MACRO(operator-
 
expr val ()) FAD_UNARYOP_MACRO(exp
 
expr acosh (expr.val())) FAD_UNARYOP_MACRO(asinh
 
expr asinh (expr.val())) FAD_UNARYOP_MACRO(atanh
 
expr atanh (expr.val())) FAD_UNARYOP_MACRO(abs
 
expr expr1 expr1 dx (i)||expr2.dx(i)
 
expr expr1 expr1 expr1 fastAccessDx (i)||expr2.fastAccessDx(i)
 

Variables

 UnaryMinusOp
 
expr ExpOp
 
expr LogOp
 
expr Log10Op
 
expr SqrtOp
 
expr CosOp
 
expr SinOp
 
expr TanOp
 
expr ACosOp
 
expr ASinOp
 
expr ATanOp
 
expr CoshOp
 
expr SinhOp
 
expr TanhOp
 
expr ACoshOp
 
expr ASinhOp
 
expr ATanhOp
 
expr AbsOp
 
expr FAbsOp
 
expr CbrtOp
 
expr AdditionOp
 
expr expr1 expr1 expr1 c expr2
expr1 expr2 expr1 expr2 expr1 
SubtractionOp
 
expr expr1 expr1 expr1 c expr2
expr1 expr2 expr1 expr2 expr1
expr1 expr1 expr1 c expr2
expr1 expr2 expr1 expr2 expr1 
MultiplicationOp
 
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 
DivisionOp
 
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 
Atan2Op
 
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 
PowerOp
 
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 
MaxOp
 
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 expr1 expr1 
c = expr2.val() ? logical_type(0) : expr2.dx(i)
 

Macro Definition Documentation

#define FAD_UNARYOP_MACRO (   OPNAME,
  OP,
  VALUE 
)

Definition at line 40 of file Sacado_LFad_LogicalSparseOps.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP,
  VALUE,
  DX,
  FASTACCESSDX,
  VAL_CONST_DX_1,
  VAL_CONST_DX_2,
  CONST_DX_1,
  CONST_DX_2,
  CONST_FASTACCESSDX_1,
  CONST_FASTACCESSDX_2 
)
#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado { \
namespace LFad { \
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; \
} \
} \
}
#define FAD_BOOL_MACRO (   OP)
Value:
namespace Sacado { \
namespace LFad { \
template <typename ExprT1, typename ExprT2> \
inline bool \
operator OP (const Expr<ExprT1>& expr1, \
const Expr<ExprT2>& expr2) \
{ \
return toBool(expr1) OP toBool(expr2); \
} \
\
template <typename ExprT2> \
inline bool \
operator OP (const typename Expr<ExprT2>::value_type& a, \
const Expr<ExprT2>& expr2) \
{ \
return a OP toBool(expr2); \
} \
\
template <typename ExprT1> \
inline 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 ( operator+  ,
UnaryPlusOp  ,
expr.  val() 
)
expr val ( )
expr acosh ( expr.  val())
expr asinh ( expr.  val())
expr atanh ( expr.  val())
expr expr1 expr1 dx ( i  )
expr expr1 expr1 expr1 fastAccessDx ( i  )

Variable Documentation

UnaryMinusOp

Definition at line 96 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ExpOp

Definition at line 99 of file Sacado_LFad_LogicalSparseOps.hpp.

expr LogOp

Definition at line 102 of file Sacado_LFad_LogicalSparseOps.hpp.

expr Log10Op

Definition at line 105 of file Sacado_LFad_LogicalSparseOps.hpp.

expr SqrtOp

Definition at line 108 of file Sacado_LFad_LogicalSparseOps.hpp.

expr CosOp

Definition at line 111 of file Sacado_LFad_LogicalSparseOps.hpp.

expr SinOp

Definition at line 114 of file Sacado_LFad_LogicalSparseOps.hpp.

expr TanOp

Definition at line 117 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ACosOp

Definition at line 120 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ASinOp

Definition at line 123 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ATanOp

Definition at line 126 of file Sacado_LFad_LogicalSparseOps.hpp.

expr CoshOp

Definition at line 129 of file Sacado_LFad_LogicalSparseOps.hpp.

expr SinhOp

Definition at line 132 of file Sacado_LFad_LogicalSparseOps.hpp.

expr TanhOp

Definition at line 135 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ACoshOp

Definition at line 138 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ASinhOp

Definition at line 141 of file Sacado_LFad_LogicalSparseOps.hpp.

expr ATanhOp

Definition at line 144 of file Sacado_LFad_LogicalSparseOps.hpp.

expr AbsOp

Definition at line 147 of file Sacado_LFad_LogicalSparseOps.hpp.

expr FAbsOp

Definition at line 150 of file Sacado_LFad_LogicalSparseOps.hpp.

expr CbrtOp

Definition at line 153 of file Sacado_LFad_LogicalSparseOps.hpp.

expr AdditionOp

Definition at line 358 of file Sacado_LFad_LogicalSparseOps.hpp.

expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 SubtractionOp

Definition at line 369 of file Sacado_LFad_LogicalSparseOps.hpp.

expr expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 expr1 expr1 expr1 c expr2 expr1 expr2 expr1 expr2 expr1 MultiplicationOp

Definition at line 380 of file Sacado_LFad_LogicalSparseOps.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 DivisionOp

Definition at line 391 of file Sacado_LFad_LogicalSparseOps.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 Atan2Op

Definition at line 402 of file Sacado_LFad_LogicalSparseOps.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 PowerOp

Definition at line 413 of file Sacado_LFad_LogicalSparseOps.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 MaxOp

Definition at line 424 of file Sacado_LFad_LogicalSparseOps.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 expr1 expr1 expr1 c = expr2.val() ? logical_type(0) : expr2.dx(i)

Definition at line 431 of file Sacado_LFad_LogicalSparseOps.hpp.