Sacado Package Browser (Single Doxygen Collection) Version of the Day
Namespaces | Defines | 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.

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::ELRFad
 

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


Defines

#define FAD_UNARYOP_MACRO(OPNAME, OP, VALUE, ADJOINT)
#define FAD_BINARYOP_MACRO(OPNAME, OP, VALUE, LADJOINT, RADJOINT)
#define FAD_RELOP_MACRO(OP)

Functions

 FAD_UNARYOP_MACRO (operator+, UnaryPlusOp, expr.val(), bar) FAD_UNARYOP_MACRO(operator-
expr val () = expr2.val() ? expr1.dx(i) : expr2.dx(i)
expr bar FAD_UNARYOP_MACRO (exp, ExpOp, std::exp(expr.val()), bar *std::exp(expr.val())) FAD_UNARYOP_MACRO(log
expr bar bar expr bar (std::log(value_type(10.))*expr.val())) FAD_UNARYOP_MACRO(sqrt
expr bar bar expr value_type (0.5)*bar/std
template<typename ExprT >
std::ostream & Sacado::ELRFad::operator<< (std::ostream &os, const Expr< ExprT > &x)

Variables

 UnaryMinusOp
expr bar LogOp
expr bar bar expr Log10Op
expr bar bar expr SqrtOp

Define Documentation

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

Definition at line 61 of file Sacado_ELRFad_Ops.hpp.

#define FAD_BINARYOP_MACRO (   OPNAME,
  OP,
  VALUE,
  LADJOINT,
  RADJOINT 
)
#define FAD_RELOP_MACRO (   OP)
Value:
namespace Sacado {              \
  namespace ELRFad {              \
    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;            \
    }                 \
  }                 \
}

Function Documentation

FAD_UNARYOP_MACRO ( operator+  ,
UnaryPlusOp  ,
expr.  val(),
bar   
)
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 val ( ) = expr2.val() ? expr1.dx(i) : expr2.dx(i)
expr bar FAD_UNARYOP_MACRO ( exp  ,
ExpOp  ,
std::  expexpr.val(),
bar *std::  expexpr.val() 
)
expr bar bar expr bar ( std::  logvalue_type(10.))*expr.val()
expr bar bar expr value_type ( 0.  5)

Definition at line 141 of file Sacado_ELRFad_Ops.hpp.


Variable Documentation

Definition at line 123 of file Sacado_ELRFad_Ops.hpp.

expr bar LogOp

Definition at line 131 of file Sacado_ELRFad_Ops.hpp.

expr bar bar expr Log10Op

Definition at line 135 of file Sacado_ELRFad_Ops.hpp.

expr bar bar expr SqrtOp

Definition at line 139 of file Sacado_ELRFad_Ops.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines