Sacado::ELRFad::UnaryExpr< ExprT, Op > Class Template Reference

Unary expression template. More...

#include <Sacado_ELRFad_Expression.hpp>

List of all members.

Public Types

typedef ExprT::value_type value_type
 Typename of argument value.
typedef ExprT::base_expr_type base_expr_type
 Typename of base-expressions.
typedef Op< ExprT > OpT
 Typename of op.

Public Member Functions

 UnaryExpr (const ExprT &expr)
 Constructor.
int size () const
 Return size of the derivative array of the operation.
value_type val () const
 Return value of operation.
void computePartials (const value_type &bar, value_type partials[]) const
 Return partials w.r.t. arguments.
void getTangents (int i, value_type dots[]) const
 Rturn 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 Attributes

const ExprT & expr_
 Left argument.


Detailed Description

template<typename ExprT, template< typename > class Op>
class Sacado::ELRFad::UnaryExpr< ExprT, Op >

Unary expression template.

This template class represents a unary operation of the form op(a) where a is the argument of type ExprT 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 189 of file Sacado_ELRFad_Expression.hpp.


Member Typedef Documentation

template<typename ExprT, template< typename > class Op>
typedef ExprT::value_type Sacado::ELRFad::UnaryExpr< ExprT, Op >::value_type

Typename of argument value.

Definition at line 194 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
typedef ExprT::base_expr_type Sacado::ELRFad::UnaryExpr< ExprT, Op >::base_expr_type

Typename of base-expressions.

Definition at line 197 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
typedef Op<ExprT> Sacado::ELRFad::UnaryExpr< ExprT, Op >::OpT

Typename of op.

Definition at line 200 of file Sacado_ELRFad_Expression.hpp.


Constructor & Destructor Documentation

template<typename ExprT, template< typename > class Op>
Sacado::ELRFad::UnaryExpr< ExprT, Op >::UnaryExpr ( const ExprT &  expr  )  [inline]

Constructor.

Definition at line 206 of file Sacado_ELRFad_Expression.hpp.


Member Function Documentation

template<typename ExprT, template< typename > class Op>
int Sacado::ELRFad::UnaryExpr< ExprT, Op >::size (  )  const [inline]

Return size of the derivative array of the operation.

Definition at line 209 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
value_type Sacado::ELRFad::UnaryExpr< ExprT, Op >::val (  )  const [inline]

Return value of operation.

Definition at line 212 of file Sacado_ELRFad_Expression.hpp.

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

Return partials w.r.t. arguments.

Definition at line 215 of file Sacado_ELRFad_Expression.hpp.

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

Rturn tangent component i of arguments.

Definition at line 220 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
template<int Arg>
value_type Sacado::ELRFad::UnaryExpr< ExprT, Op >::getTangent ( int  i  )  const [inline]

Return tangent component i of argument Arg.

Definition at line 225 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
template<int Arg>
bool Sacado::ELRFad::UnaryExpr< ExprT, Op >::isActive (  )  const [inline]

Return whether argument is active.

Definition at line 231 of file Sacado_ELRFad_Expression.hpp.


Member Data Documentation

template<typename ExprT, template< typename > class Op>
const int Sacado::ELRFad::UnaryExpr< ExprT, Op >::num_args = ExprT::num_args [static]

Number of arguments.

Definition at line 203 of file Sacado_ELRFad_Expression.hpp.

template<typename ExprT, template< typename > class Op>
const ExprT& Sacado::ELRFad::UnaryExpr< ExprT, Op >::expr_ [protected]

Left argument.

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