Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
Sacado::Tay::UnaryExpr< ExprT, Op > Class Template Reference

Unary expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

Public Types

typedef ExprT::value_type value_type
 Typename of argument value. More...
 
typedef ExprT::scalar_type scalar_type
 Typename of scalar's (which may be different from value_type) More...
 
typedef ExprT::base_expr_type base_expr_type
 Typename of base-expressions. More...
 

Public Member Functions

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

Protected Attributes

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

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 143 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 148 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Typename of scalar's (which may be different from value_type)

Definition at line 151 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Typename of base-expressions.

Definition at line 154 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 157 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 160 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 166 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 169 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 173 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 177 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 184 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 187 of file Sacado_Tay_CacheTaylorExpr.hpp.


The documentation for this class was generated from the following file: