Sacado Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Sacado_ELRCacheFad_Ops.hpp File Reference
#include "Sacado_ELRCacheFad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include "Sacado_mpl_disable_if.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.

Classes

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

Namespaces

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

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

Variables

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

Macro Definition Documentation

◆ FAD_UNARYOP_MACRO

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

Definition at line 478 of file Sacado_ELRCacheFad_Ops.hpp.

◆ FAD_BINARYOP_MACRO

#define FAD_BINARYOP_MACRO ( OPNAME,
OP )

Definition at line 3494 of file Sacado_ELRCacheFad_Ops.hpp.

◆ FAD_RELOP_MACRO

#define FAD_RELOP_MACRO ( OP)

Definition at line 3584 of file Sacado_ELRCacheFad_Ops.hpp.

◆ FAD_BOOL_MACRO

#define FAD_BOOL_MACRO ( OP)
Value:
namespace Sacado { \
namespace ELRCacheFad { \
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)

Definition at line 3668 of file Sacado_ELRCacheFad_Ops.hpp.

Function Documentation

◆ FAD_UNARYOP_MACRO()

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

Variable Documentation

◆ LogOp

LogOp

Definition at line 588 of file Sacado_ELRCacheFad_Ops.hpp.

◆ a

a =scalar_type(1.0)/v

Definition at line 589 of file Sacado_ELRCacheFad_Ops.hpp.

◆ Log10Op

Log10Op

Definition at line 592 of file Sacado_ELRCacheFad_Ops.hpp.

◆ SqrtOp

SqrtOp

Definition at line 596 of file Sacado_ELRCacheFad_Ops.hpp.

◆ SafeSqrtOp

SafeSqrtOp

Definition at line 600 of file Sacado_ELRCacheFad_Ops.hpp.

◆ CosOp

CosOp

Definition at line 604 of file Sacado_ELRCacheFad_Ops.hpp.

◆ SinOp

SinOp

Definition at line 608 of file Sacado_ELRCacheFad_Ops.hpp.

◆ TanOp

TanOp

Definition at line 612 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ACosOp

ACosOp

Definition at line 616 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ASinOp

ASinOp

Definition at line 620 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ATanOp

ATanOp

Definition at line 624 of file Sacado_ELRCacheFad_Ops.hpp.

◆ CoshOp

CoshOp

Definition at line 628 of file Sacado_ELRCacheFad_Ops.hpp.

◆ SinhOp

SinhOp

Definition at line 632 of file Sacado_ELRCacheFad_Ops.hpp.

◆ TanhOp

TanhOp

Definition at line 636 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ACoshOp

ACoshOp

Definition at line 640 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ASinhOp

ASinhOp

Definition at line 644 of file Sacado_ELRCacheFad_Ops.hpp.

◆ ATanhOp

ATanhOp

Definition at line 648 of file Sacado_ELRCacheFad_Ops.hpp.

◆ CbrtOp

CbrtOp

Definition at line 652 of file Sacado_ELRCacheFad_Ops.hpp.