SundanceStdMathOps.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  Sundance

Defines

#define SUNDANCE_UNARY_OP(opName, functorName, description)

Functions

Expr Sundance::pow (const Expr &expr, const double &p)


Define Documentation

#define SUNDANCE_UNARY_OP ( opName,
functorName,
description   ) 

Value:

/** \relates Expr description */\
inline Expr opName(const Expr& expr) \
{\
RCP<ScalarExpr> arg = rcp_dynamic_cast<ScalarExpr>(expr[0].ptr());\
    TEUCHOS_TEST_FOR_EXCEPTION(arg.get()==0, std::runtime_error,\
                       "non-scalar argument in " #opName " function");\
    return new NonlinearUnaryOp(arg, rcp(new functorName()));\
}

Definition at line 51 of file SundanceStdMathOps.hpp.

Site Contact