Sacado  Development
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
Sacado::ELRCacheFad::ConstExpr< ConstT > Class Template Reference

Constant expression template. More...

#include <Sacado_ELRCacheFad_Expression.hpp>

Inheritance diagram for Sacado::ELRCacheFad::ConstExpr< ConstT >:
Inheritance graph
[legend]
Collaboration diagram for Sacado::ELRCacheFad::ConstExpr< ConstT >:
Collaboration graph
[legend]

Public Types

typedef ConstT value_type
 Typename of argument values.
 
typedef ScalarType< value_type >
::type 
scalar_type
 Typename of scalar's (which may be different from ConstT)
 
typedef ConstT base_expr_type
 Typename of base-expressions.
 

Public Member Functions

 ConstExpr (const ConstT &constant)
 Constructor.
 
int size () const
 Return size of the derivative array of the operation.
 
bool updateValue () const
 Return whether value should be updated.
 
void cache () const
 Cache values.
 
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.
 
bool isLinear () const
 Return whether expression is linear.
 

Static Public Attributes

static const int num_args = 0
 Number of arguments.
 

Protected Attributes

const ConstT & constant_
 The constant.
 

Detailed Description

template<typename ConstT>
class Sacado::ELRCacheFad::ConstExpr< ConstT >

Constant expression template.

This template class represents a constant expression.


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