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

Unary expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

List of all members.

Public Types

typedef ExprT::value_type value_type
 Typename of argument value.

Public Member Functions

 UnaryExpr (const ExprT &expr)
 Constructor.
void allocateCache (unsigned int d) const
 Allocate coefficient cache.
unsigned int degree () const
 Return degree of polynomial.
bool hasFastAccess (unsigned int d) const
 Return if operation has fast access.
value_type coeff (unsigned int i) const
 Return degree i term of expression.
value_type fastAccessCoeff (unsigned int i) const
 Return derivative component i of operation.

Protected Attributes

ExprT expr_
 Left argument.
Op< ExprT > op_
 Operator.

Detailed Description

template<typename ExprT, template< typename > class Op>
class Sacado::Tay::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().

Definition at line 133 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Typedef Documentation

template<typename ExprT , template< typename > class Op>
typedef ExprT::value_type Sacado::Tay::UnaryExpr< ExprT, Op >::value_type

Typename of argument value.

Definition at line 138 of file Sacado_Tay_CacheTaylorExpr.hpp.


Constructor & Destructor Documentation

template<typename ExprT , template< typename > class Op>
Sacado::Tay::UnaryExpr< ExprT, Op >::UnaryExpr ( const ExprT &  expr  )  [inline]

Constructor.

Definition at line 141 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Function Documentation

template<typename ExprT , template< typename > class Op>
void Sacado::Tay::UnaryExpr< ExprT, Op >::allocateCache ( unsigned int  d  )  const [inline]

Allocate coefficient cache.

Definition at line 144 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT , template< typename > class Op>
unsigned int Sacado::Tay::UnaryExpr< ExprT, Op >::degree (  )  const [inline]

Return degree of polynomial.

Definition at line 150 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT , template< typename > class Op>
bool Sacado::Tay::UnaryExpr< ExprT, Op >::hasFastAccess ( unsigned int  d  )  const [inline]

Return if operation has fast access.

Definition at line 153 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT , template< typename > class Op>
value_type Sacado::Tay::UnaryExpr< ExprT, Op >::coeff ( unsigned int  i  )  const [inline]

Return degree i term of expression.

Definition at line 157 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT , template< typename > class Op>
value_type Sacado::Tay::UnaryExpr< ExprT, Op >::fastAccessCoeff ( unsigned int  i  )  const [inline]

Return derivative component i of operation.

Definition at line 161 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Data Documentation

template<typename ExprT , template< typename > class Op>
ExprT Sacado::Tay::UnaryExpr< ExprT, Op >::expr_ [protected]

Left argument.

Definition at line 168 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT , template< typename > class Op>
Op<ExprT> Sacado::Tay::UnaryExpr< ExprT, Op >::op_ [protected]

Operator.

Definition at line 171 of file Sacado_Tay_CacheTaylorExpr.hpp.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Generated on Wed Apr 13 10:19:45 2011 for Sacado Package Browser (Single Doxygen Collection) by  doxygen 1.6.3