Sacado Package Browser (Single Doxygen Collection) Version of the Day
Public Types | Public Member Functions | Protected Attributes
Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op > Class Template Reference

Binary expression template with first argument constant. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

List of all members.

Public Types

typedef ConstExpr< typename
ExprT2::value_type > 
ExprT1
 Typename of constant expression.
typedef ExprT2::value_type value_type
 Typename of the second argument value.

Public Member Functions

 BinaryExpr (const ExprT1 &expr1, const ExprT2 &expr2)
 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 degree i term of expression.

Protected Attributes

ExprT1 expr1_
 Left argument.
ExprT2 expr2_
 Right argument.
Op< ExprT1, ExprT2 > op_
 Operator.

Detailed Description

template<typename ExprT2, template< typename, typename > class Op>
class Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >

Binary expression template with first argument constant.

This template class represents a binary operation of the form op(a1,a2) where a1 is the left argument of type ExprT1, r is the right argument of type ExprT2, 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 251 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Typedef Documentation

template<typename ExprT2 , template< typename, typename > class Op>
typedef ConstExpr<typename ExprT2::value_type> Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::ExprT1

Typename of constant expression.

Definition at line 256 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT2 , template< typename, typename > class Op>
typedef ExprT2::value_type Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::value_type

Typename of the second argument value.

Definition at line 259 of file Sacado_Tay_CacheTaylorExpr.hpp.


Constructor & Destructor Documentation

template<typename ExprT2 , template< typename, typename > class Op>
Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::BinaryExpr ( const ExprT1 expr1,
const ExprT2 &  expr2 
) [inline]

Constructor.

Definition at line 262 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Function Documentation

template<typename ExprT2 , template< typename, typename > class Op>
void Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::allocateCache ( unsigned int  d) const [inline]

Allocate coefficient cache.

Definition at line 266 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT2 , template< typename, typename > class Op>
unsigned int Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::degree ( ) const [inline]

Return degree of polynomial.

Definition at line 272 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT2 , template< typename, typename > class Op>
bool Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::hasFastAccess ( unsigned int  d) const [inline]

Return if operation has fast access.

Definition at line 277 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Return degree i term of expression.

Definition at line 281 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Return degree i term of expression.

Definition at line 285 of file Sacado_Tay_CacheTaylorExpr.hpp.


Member Data Documentation

template<typename ExprT2 , template< typename, typename > class Op>
ExprT1 Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::expr1_ [protected]

Left argument.

Definition at line 292 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT2 , template< typename, typename > class Op>
ExprT2 Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::expr2_ [protected]

Right argument.

Definition at line 295 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT2 , template< typename, typename > class Op>
Op<ExprT1,ExprT2> Sacado::Tay::BinaryExpr< ConstExpr< typename ExprT2::value_type >, ExprT2, Op >::op_ [protected]

Operator.

Definition at line 298 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