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

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 std::log (expr.val())
expr bar bar expr std::log10 (expr.val())
expr bar bar expr bar (std::log(value_type(10.))*expr.val())) FAD_UNARYOP_MACRO(sqrt
expr bar bar expr std::sqrt (expr.val())
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::  exp(expr.val()),
bar *std::  exp(expr.val()) 
)

expr bar bar expr bar ( std::  log(value_type(10.))*expr.val()  ) 

expr bar bar expr value_type ( 0.  5  ) 

Definition at line 141 of file Sacado_ELRFad_Ops.hpp.


Variable Documentation

UnaryMinusOp

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.


Generated on Wed May 12 21:39:43 2010 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.4.7