Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op > Class Template Reference

Binary expression template. More...

#include <Sacado_Fad_Expression.hpp>

List of all members.

Public Types

typedef ExprT1::value_type value_type_1
 Typename of the first argument value.
typedef ExprT2::value_type value_type_2
 Typename of the second argument value.
typedef Sacado::Promote< value_type_1,
value_type_2 >::type 
value_type
 Typename of the expression values.
typedef Op< ExprT1, ExprT2 > OpT

Public Member Functions

 BinaryExpr (const ExprT1 &expr1, const ExprT2 &expr2)
 Constructor.
int size () const
 Return size of the derivative array of the operation.
bool hasFastAccess () const
 Return if operation has fast access.
bool isPassive () const
 Return if expression is constant.
value_type val () const
 Return value of operation.
value_type dx (int i) const
 Return derivative component i of operation.
value_type fastAccessDx (int i) const
 Return derivative component i of operation.

Protected Attributes

ExprConstRef< ExprT1 >::type expr1_
 Left argument.
ExprConstRef< ExprT2 >::type expr2_
 Right argument.


Detailed Description

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
class Sacado::Fad::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 218 of file Sacado_Fad_Expression.hpp.


Member Typedef Documentation

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

Typename of the first argument value.

Definition at line 223 of file Sacado_Fad_Expression.hpp.

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

Typename of the second argument value.

Definition at line 226 of file Sacado_Fad_Expression.hpp.

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

Typename of the expression values.

Definition at line 230 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
typedef Op<ExprT1,ExprT2> Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::OpT

Definition at line 232 of file Sacado_Fad_Expression.hpp.


Constructor & Destructor Documentation

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

Constructor.

Definition at line 235 of file Sacado_Fad_Expression.hpp.


Member Function Documentation

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
int Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::size (  )  const [inline]

Return size of the derivative array of the operation.

Definition at line 239 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
bool Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::hasFastAccess (  )  const [inline]

Return if operation has fast access.

Definition at line 245 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
bool Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::isPassive (  )  const [inline]

Return if expression is constant.

Definition at line 249 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
value_type Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::val (  )  const [inline]

Return value of operation.

Definition at line 253 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
value_type Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::dx ( int  i  )  const [inline]

Return derivative component i of operation.

Definition at line 257 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
value_type Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::fastAccessDx ( int  i  )  const [inline]

Return derivative component i of operation.

Definition at line 261 of file Sacado_Fad_Expression.hpp.


Member Data Documentation

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
ExprConstRef<ExprT1>::type Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::expr1_ [protected]

Left argument.

Definition at line 268 of file Sacado_Fad_Expression.hpp.

template<typename ExprT1, typename ExprT2, template< typename, typename > class Op>
ExprConstRef<ExprT2>::type Sacado::Fad::BinaryExpr< ExprT1, ExprT2, Op >::expr2_ [protected]

Right argument.

Definition at line 271 of file Sacado_Fad_Expression.hpp.


The documentation for this class was generated from the following file:
Generated on Tue Oct 20 12:55:13 2009 for Sacado Package Browser (Single Doxygen Collection) by doxygen 1.4.7