Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Functions | Variables
Sacado_CacheFad_Ops.hpp File Reference
#include "Sacado_CacheFad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include "Sacado_dummy_arg.hpp"
#include <ostream>
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.

Classes

class  Sacado::CacheFad::UnaryPlusOp< ExprT >
 
class  Sacado::CacheFad::Expr< UnaryPlusOp< ExprT > >
 
class  Sacado::CacheFad::UnaryMinusOp< ExprT >
 
class  Sacado::CacheFad::Expr< UnaryMinusOp< ExprT > >
 
class  Sacado::CacheFad::AbsOp< ExprT >
 
class  Sacado::CacheFad::Expr< AbsOp< ExprT > >
 
class  Sacado::CacheFad::FAbsOp< ExprT >
 
class  Sacado::CacheFad::Expr< FAbsOp< ExprT > >
 

Namespaces

 Sacado
 
 Sacado::CacheFad
 Namespace for forward-mode AD classes w/caching.
 

Macros

#define FAD_UNARYOP_MACRO(OPNAME, OP, PARTIAL, VALUE)
 
#define FAD_BINARYOP_MACRO(OPNAME, OP)
 
#define FAD_RELOP_MACRO(OP)
 
#define FAD_BOOL_MACRO(OP)
 

Functions

template<typename T >
KOKKOS_INLINE_FUNCTION Expr
< UnaryPlusOp< Expr< T > > > 
Sacado::CacheFad::operator+ (const Expr< T > &expr)
 
template<typename T >
KOKKOS_INLINE_FUNCTION Expr
< UnaryMinusOp< Expr< T > > > 
Sacado::CacheFad::operator- (const Expr< T > &expr)
 
template<typename T >
KOKKOS_INLINE_FUNCTION Expr
< AbsOp< Expr< T > > > 
Sacado::CacheFad::abs (const Expr< T > &expr)
 
template<typename T >
KOKKOS_INLINE_FUNCTION Expr
< FAbsOp< Expr< T > > > 
Sacado::CacheFad::fabs (const Expr< T > &expr)
 
 FAD_UNARYOP_MACRO (exp, ExpOp, a=std::exp(v), a) FAD_UNARYOP_MACRO(log
 
template<typename ExprT >
KOKKOS_INLINE_FUNCTION bool Sacado::CacheFad::operator! (const Expr< ExprT > &expr)
 
template<typename ExprT >
KOKKOS_INLINE_FUNCTION bool Sacado::CacheFad::toBool (const Expr< ExprT > &x)
 
template<typename ExprT >
std::ostream & Sacado::CacheFad::operator<< (std::ostream &os, const Expr< ExprT > &x)
 

Variables

 LogOp
 
 a =value_type(1)/v
 
 Log10Op
 
 SqrtOp
 
 SafeSqrtOp
 
 CosOp
 
 SinOp
 
 TanOp
 
 ACosOp
 
 ASinOp
 
 ATanOp
 
 CoshOp
 
 SinhOp
 
 TanhOp
 
 ACoshOp
 
 ASinhOp
 
 ATanhOp
 

Macro Definition Documentation

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

Definition at line 349 of file Sacado_CacheFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP 
)

Definition at line 2434 of file Sacado_CacheFad_Ops.hpp.

#define FAD_RELOP_MACRO (   OP)

Definition at line 2524 of file Sacado_CacheFad_Ops.hpp.

#define FAD_BOOL_MACRO (   OP)
Value:
namespace Sacado { \
namespace CacheFad { \
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 2608 of file Sacado_CacheFad_Ops.hpp.

Function Documentation

FAD_UNARYOP_MACRO ( exp  ,
ExpOp  ,
a  = std::exp(v),
a   
)

Variable Documentation

LogOp

Definition at line 425 of file Sacado_CacheFad_Ops.hpp.

a =value_type(1)/v

Definition at line 426 of file Sacado_CacheFad_Ops.hpp.

Log10Op

Definition at line 429 of file Sacado_CacheFad_Ops.hpp.

SqrtOp

Definition at line 433 of file Sacado_CacheFad_Ops.hpp.

SafeSqrtOp

Definition at line 437 of file Sacado_CacheFad_Ops.hpp.

CosOp

Definition at line 441 of file Sacado_CacheFad_Ops.hpp.

SinOp

Definition at line 445 of file Sacado_CacheFad_Ops.hpp.

TanOp

Definition at line 449 of file Sacado_CacheFad_Ops.hpp.

ACosOp

Definition at line 453 of file Sacado_CacheFad_Ops.hpp.

ASinOp

Definition at line 457 of file Sacado_CacheFad_Ops.hpp.

ATanOp

Definition at line 461 of file Sacado_CacheFad_Ops.hpp.

CoshOp

Definition at line 465 of file Sacado_CacheFad_Ops.hpp.

SinhOp

Definition at line 469 of file Sacado_CacheFad_Ops.hpp.

TanhOp

Definition at line 473 of file Sacado_CacheFad_Ops.hpp.

ACoshOp

Definition at line 477 of file Sacado_CacheFad_Ops.hpp.

ASinhOp

Definition at line 481 of file Sacado_CacheFad_Ops.hpp.

ATanhOp

Definition at line 485 of file Sacado_CacheFad_Ops.hpp.