Sacado::Fad::UnaryExpr< ExprT, Op > Class Template Reference

Unary expression template. More...

#include <Sacado_Fad_Expression.hpp>

Collaboration diagram for Sacado::Fad::UnaryExpr< ExprT, Op >:

Collaboration graph
List of all members.

Public Types

typedef ExprT::value_type value_type
 Typename of argument value.
typedef Op< ExprT > OpT

Public Member Functions

 UnaryExpr (const ExprT &expr)
int size () const
 Return size of the derivative array of the operation.
bool hasFastAccess () const
 Return if operation has fast access.
bool isPassive () const
 Return if expression is constant.
value_type val () const
 Return value of operation.
value_type dx (int i) const
 Return derivative component i of operation.
value_type fastAccessDx (int i) const
 Return derivative component i of operation.

Protected Attributes

const ExprT & expr_
 Left argument.

Detailed Description

template<typename ExprT, template< typename > class Op>
class Sacado::Fad::UnaryExpr< ExprT, Op >

Unary expression template.

This template class represents a unary operation of the form op(a) where a is the argument of type ExprT and op is the operation represented by type Op. The operation is evaluated by the static methods Op::computeValue() and Op::computeDx().

The documentation for this class was generated from the following file:
Generated on Tue Oct 20 12:54:55 2009 for Sacado by doxygen 1.4.7