SundanceADReal.hpp File Reference

Go to the source code of this file.

Classes

class  Sundance::ADReal

Namespaces

namespace  Sundance
namespace  std

Defines

#define SUNDANCE_AD_FUNCTOR(opName, functorName)

Functions

ADReal Sundance::pow (const ADReal &x, const double &y)
 Sundance::SUNDANCE_AD_FUNCTOR (exp, StdExp) SUNDANCE_AD_FUNCTOR(log
StdLog Sundance::SUNDANCE_AD_FUNCTOR (sqrt, StdSqrt) SUNDANCE_AD_FUNCTOR(sin
ostream & std::operator<< (std::ostream &os, const Sundance::ADReal &x)


Define Documentation

#define SUNDANCE_AD_FUNCTOR ( opName,
functorName   ) 

Value:

inline ADReal opName(const ADReal& x)\
  {\
    Teuchos::RCP<UnaryFunctor> func = Teuchos::rcp(new functorName());\
    double f;\
    double df;\
    double xVal = x.value();\
    func->eval1(&xVal, 1, &f, &df);\
    return ADReal(f, df*x.gradient());}

Definition at line 154 of file SundanceADReal.hpp.

Site Contact