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 Member Functions | Protected Attributes | List of all members
Sacado::Tay::Expr< ExprT > Class Template Reference

Wrapper for a generic expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

Public Types

typedef ExprT::value_type value_type
 Typename of values. 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

 Expr (const ExprT &expr)
 Constructor with given expression expr. 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 expression 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 degree i term of expression. More...
 

Protected Member Functions

 Expr ()
 Disallow default constructor. More...
 

Protected Attributes

ExprT expr_
 Expression. More...
 

Detailed Description

template<typename ExprT>
class Sacado::Tay::Expr< ExprT >

Wrapper for a generic expression template.

This template class serves as a wrapper for all CacheTaylor expression template classes.

Definition at line 45 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Typedef Documentation

template<typename ExprT>
typedef ExprT::value_type Sacado::Tay::Expr< ExprT >::value_type

Typename of values.

Definition at line 50 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
typedef ExprT::scalar_type Sacado::Tay::Expr< ExprT >::scalar_type

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

Definition at line 53 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
typedef ExprT::base_expr_type Sacado::Tay::Expr< ExprT >::base_expr_type

Typename of base-expressions.

Definition at line 56 of file Sacado_Tay_CacheTaylorExpr.hpp.

Constructor & Destructor Documentation

template<typename ExprT>
Sacado::Tay::Expr< ExprT >::Expr ( const ExprT &  expr)
inlineexplicit

Constructor with given expression expr.

Definition at line 59 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
Sacado::Tay::Expr< ExprT >::Expr ( )
inlineprotected

Disallow default constructor.

Definition at line 81 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Function Documentation

template<typename ExprT>
void Sacado::Tay::Expr< ExprT >::allocateCache ( unsigned int  d) const
inline

Allocate coefficient cache.

Definition at line 62 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
unsigned int Sacado::Tay::Expr< ExprT >::degree ( ) const
inline

Return degree of polynomial.

Definition at line 65 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
bool Sacado::Tay::Expr< ExprT >::hasFastAccess ( unsigned int  d) const
inline

Return if expression has fast access.

Definition at line 68 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
value_type Sacado::Tay::Expr< ExprT >::coeff ( unsigned int  i) const
inline

Return degree i term of expression.

Definition at line 72 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT>
value_type Sacado::Tay::Expr< ExprT >::fastAccessCoeff ( unsigned int  i) const
inline

Return degree i term of expression.

Definition at line 75 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Data Documentation

template<typename ExprT>
ExprT Sacado::Tay::Expr< ExprT >::expr_
protected

Expression.

Definition at line 84 of file Sacado_Tay_CacheTaylorExpr.hpp.


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