Sacado Package Browser (Single Doxygen Collection) Version of the Day
Classes | Namespaces | Defines | Functions | Variables
Sacado_ELRCacheFad_Ops.hpp File Reference
#include "Sacado_ELRCacheFad_Expression.hpp"
#include "Sacado_cmath.hpp"
#include "Sacado_mpl_disable_if.hpp"
#include "Sacado_mpl_is_same.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
 

Abstract class that provides access to a parameter value in a code for the parameter library. An object of this type is required to construct a ParameterRegistration object.


namespace  Sacado::ELRCacheFad
 

Namespace for expression-level reverse forward-mode AD classes.


Defines

#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 >
Expr< UnaryPlusOp< Expr< T > > > Sacado::ELRCacheFad::operator+ (const Expr< T > &expr)
template<typename T >
Expr< UnaryMinusOp< Expr< T > > > Sacado::ELRCacheFad::operator- (const Expr< T > &expr)
template<typename T >
Expr< AbsOp< Expr< T > > > Sacado::ELRCacheFad::abs (const Expr< T > &expr)
template<typename T >
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 >
bool Sacado::ELRCacheFad::operator! (const Expr< ExprT > &expr)
template<typename ExprT >
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
 CosOp
 SinOp
 TanOp
 ACosOp
 ASinOp
 ATanOp
 CoshOp
 SinhOp
 TanhOp
 ACoshOp
 ASinhOp
 ATanhOp

Define Documentation

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

Definition at line 422 of file Sacado_ELRCacheFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP 
)

Definition at line 3024 of file Sacado_ELRCacheFad_Ops.hpp.

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

Definition at line 3118 of file Sacado_ELRCacheFad_Ops.hpp.

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

Definition at line 3191 of file Sacado_ELRCacheFad_Ops.hpp.


Function Documentation

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

Variable Documentation

Definition at line 517 of file Sacado_ELRCacheFad_Ops.hpp.

a = scalar_type(1.0)/v

Definition at line 518 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 521 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 525 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 529 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 533 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 537 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 541 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 545 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 549 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 553 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 557 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 561 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 565 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 569 of file Sacado_ELRCacheFad_Ops.hpp.

Definition at line 573 of file Sacado_ELRCacheFad_Ops.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines