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::BinaryExpr< ExprT1, ExprT2, Op > Class Template Reference

Binary expression template. More...

#include <Sacado_Tay_CacheTaylorExpr.hpp>

Public Types

typedef ExprT1::value_type value_type_1
 Typename of the expression values. More...
 
typedef ExprT2::value_type value_type_2
 
typedef Sacado::Promote
< value_type_1, value_type_2 >
::type 
value_type
 
typedef ExprT1::scalar_type scalar_type_1
 Typename of the expression scalars. More...
 
typedef ExprT2::scalar_type scalar_type_2
 
typedef Sacado::Promote
< scalar_type_1, scalar_type_2 >
::type 
scalar_type
 
typedef ExprT1::base_expr_type base_expr_type_1
 Typename of the base expression. More...
 
typedef ExprT2::base_expr_type base_expr_type_2
 
typedef Sacado::Promote
< base_expr_type_1,
base_expr_type_2 >::type 
base_expr_type
 

Public Member Functions

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

Protected Attributes

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

Detailed Description

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

Binary expression template.

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

Member Typedef Documentation

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

Typename of the expression values.

Definition at line 186 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Definition at line 187 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef Sacado::Promote<value_type_1, value_type_2>::type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::value_type

Definition at line 189 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef ExprT1::scalar_type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::scalar_type_1

Typename of the expression scalars.

Definition at line 192 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef ExprT2::scalar_type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::scalar_type_2

Definition at line 193 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef Sacado::Promote<scalar_type_1, scalar_type_2>::type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::scalar_type

Definition at line 195 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef ExprT1::base_expr_type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::base_expr_type_1

Typename of the base expression.

Definition at line 198 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef ExprT2::base_expr_type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::base_expr_type_2

Definition at line 199 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
typedef Sacado::Promote<base_expr_type_1, base_expr_type_2>::type Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::base_expr_type

Definition at line 201 of file Sacado_Tay_CacheTaylorExpr.hpp.

Constructor & Destructor Documentation

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

Constructor.

Definition at line 204 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Function Documentation

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

Allocate coefficient cache.

Definition at line 208 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
unsigned int Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::degree ( ) const
inline

Return degree of polynomial.

Definition at line 215 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Return if operation has fast access.

Definition at line 221 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Return degree i term of expression.

Definition at line 225 of file Sacado_Tay_CacheTaylorExpr.hpp.

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

Return degree i term of expression.

Definition at line 229 of file Sacado_Tay_CacheTaylorExpr.hpp.

Member Data Documentation

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
ExprT1 Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::expr1_
protected

Left argument.

Definition at line 236 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
ExprT2 Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::expr2_
protected

Right argument.

Definition at line 239 of file Sacado_Tay_CacheTaylorExpr.hpp.

template<typename ExprT1 , typename ExprT2 , template< typename, typename > class Op>
Op<ExprT1,ExprT2> Sacado::Tay::BinaryExpr< ExprT1, ExprT2, Op >::op_
protected

Operator.

Definition at line 242 of file Sacado_Tay_CacheTaylorExpr.hpp.


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