Sacado::ELRFad::Expr< ExprT > Class Template Reference

Wrapper for a generic expression template. More...

#include <Sacado_ELRFad_Expression.hpp>

Inheritance diagram for Sacado::ELRFad::Expr< ExprT >:

Inheritance graph
[legend]
List of all members.

Public Types

typedef ExprT::value_type value_type
 Typename of values.
typedef ExprT::base_expr_type base_expr_type
 Typename of base-expressions.

Public Member Functions

 Expr (const ExprT &expr)
 Constructor with given expression expr.
int size () const
 Return size of derivative array of expression.
value_type val () const
 Return value of expression.
void computePartials (const value_type &bar, value_type partials[]) const
 Return partials w.r.t. arguments.
void getTangents (int i, value_type dots[]) const
 Return tangent component i of arguments.
template<int Arg>
value_type getTangent (int i) const
 Return tangent component i of argument Arg.
template<int Arg>
bool isActive () const
 Return whether argument is active.

Static Public Attributes

static const int num_args = ExprT::num_args
 Number of arguments.

Protected Member Functions

 Expr ()
 Disallow default constructor.

Protected Attributes

ExprT expr_
 Expression.

Detailed Description

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

Wrapper for a generic expression template.

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

Definition at line 81 of file Sacado_ELRFad_Expression.hpp.


Member Typedef Documentation

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

Typename of values.

Definition at line 86 of file Sacado_ELRFad_Expression.hpp.

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

Typename of base-expressions.

Definition at line 89 of file Sacado_ELRFad_Expression.hpp.


Constructor & Destructor Documentation

template<typename ExprT>
Sacado::ELRFad::Expr< ExprT >::Expr ( const ExprT &  expr  )  [inline, explicit]

Constructor with given expression expr.

Definition at line 95 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
Sacado::ELRFad::Expr< ExprT >::Expr (  )  [inline, protected]

Disallow default constructor.

Definition at line 125 of file Sacado_ELRFad_Expression.hpp.


Member Function Documentation

template<typename ExprT>
int Sacado::ELRFad::Expr< ExprT >::size (  )  const [inline]

Return size of derivative array of expression.

Definition at line 98 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
value_type Sacado::ELRFad::Expr< ExprT >::val (  )  const [inline]

Return value of expression.

Definition at line 101 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
void Sacado::ELRFad::Expr< ExprT >::computePartials ( const value_type bar,
value_type  partials[] 
) const [inline]

Return partials w.r.t. arguments.

Definition at line 104 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
void Sacado::ELRFad::Expr< ExprT >::getTangents ( int  i,
value_type  dots[] 
) const [inline]

Return tangent component i of arguments.

Definition at line 109 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
template<int Arg>
value_type Sacado::ELRFad::Expr< ExprT >::getTangent ( int  i  )  const [inline]

Return tangent component i of argument Arg.

Definition at line 114 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
template<int Arg>
bool Sacado::ELRFad::Expr< ExprT >::isActive (  )  const [inline]

Return whether argument is active.

Definition at line 120 of file Sacado_ELRFad_Expression.hpp.


Member Data Documentation

template<typename ExprT>
const int Sacado::ELRFad::Expr< ExprT >::num_args = ExprT::num_args [static]

Number of arguments.

Definition at line 92 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT>
ExprT Sacado::ELRFad::Expr< ExprT >::expr_ [protected]

Expression.

Definition at line 128 of file Sacado_ELRFad_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