#include <Sacado_CacheFad_Expression.hpp>
Collaboration diagram for Sacado::CacheFad::UnaryExpr< ExprT, Op >:

Public Types | |
| typedef ExprT::value_type | value_type |
| Typename of argument value. | |
Public Member Functions | |
| UnaryExpr (const ExprT &expr) | |
| Constructor. | |
| int | size () const |
| Return size of the derivative array of the operation. | |
| bool | hasFastAccess () const |
| Return if operation has fast access. | |
| 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. | |
| Op< ExprT > | op_ |
| Operator. | |
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 non-static methods Op::computeValue() and Op::computeDx().
It is assumed Op::computeValue() will cache its result for later Op::computeDx() calls.
1.4.7