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::CacheFad::ConstExpr< ConstT > Class Template Reference

Constant expression template. More...

#include <Sacado_CacheFad_Expression.hpp>

Public Types

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

Public Member Functions

KOKKOS_INLINE_FUNCTION ConstExpr (const ConstT &constant)
 Constructor. More...
 
KOKKOS_INLINE_FUNCTION int size () const
 Return size of the derivative array of the operation. More...
 
KOKKOS_INLINE_FUNCTION bool hasFastAccess () const
 Return if operation has fast access. More...
 
KOKKOS_INLINE_FUNCTION void cache () const
 Cache values. More...
 
KOKKOS_INLINE_FUNCTION value_type val () const
 Return value of operation. More...
 
KOKKOS_INLINE_FUNCTION value_type dx (int i) const
 Return derivative component i of operation. More...
 
KOKKOS_INLINE_FUNCTION value_type fastAccessDx (int i) const
 Return derivative component i of operation. More...
 

Protected Attributes

const ConstT & constant_
 The constant. More...
 

Detailed Description

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

Constant expression template.

This template class represents a constant expression.

Definition at line 112 of file Sacado_CacheFad_Expression.hpp.

Member Typedef Documentation

template<typename ConstT >
typedef ConstT Sacado::CacheFad::ConstExpr< ConstT >::value_type

Typename of argument values.

Definition at line 117 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
typedef ScalarType<value_type>::type Sacado::CacheFad::ConstExpr< ConstT >::scalar_type

Typename of scalar's (which may be different from ConstT)

Definition at line 120 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
typedef ConstT Sacado::CacheFad::ConstExpr< ConstT >::base_expr_type

Typename of base-expressions.

Definition at line 123 of file Sacado_CacheFad_Expression.hpp.

Constructor & Destructor Documentation

template<typename ConstT >
KOKKOS_INLINE_FUNCTION Sacado::CacheFad::ConstExpr< ConstT >::ConstExpr ( const ConstT &  constant)
inline

Constructor.

Definition at line 127 of file Sacado_CacheFad_Expression.hpp.

Member Function Documentation

template<typename ConstT >
KOKKOS_INLINE_FUNCTION int Sacado::CacheFad::ConstExpr< ConstT >::size ( ) const
inline

Return size of the derivative array of the operation.

Definition at line 131 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
KOKKOS_INLINE_FUNCTION bool Sacado::CacheFad::ConstExpr< ConstT >::hasFastAccess ( ) const
inline

Return if operation has fast access.

Definition at line 135 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
KOKKOS_INLINE_FUNCTION void Sacado::CacheFad::ConstExpr< ConstT >::cache ( ) const
inline

Cache values.

Definition at line 139 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
KOKKOS_INLINE_FUNCTION value_type Sacado::CacheFad::ConstExpr< ConstT >::val ( ) const
inline

Return value of operation.

Definition at line 143 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
KOKKOS_INLINE_FUNCTION value_type Sacado::CacheFad::ConstExpr< ConstT >::dx ( int  i) const
inline

Return derivative component i of operation.

Definition at line 147 of file Sacado_CacheFad_Expression.hpp.

template<typename ConstT >
KOKKOS_INLINE_FUNCTION value_type Sacado::CacheFad::ConstExpr< ConstT >::fastAccessDx ( int  i) const
inline

Return derivative component i of operation.

Definition at line 151 of file Sacado_CacheFad_Expression.hpp.

Member Data Documentation

template<typename ConstT >
const ConstT& Sacado::CacheFad::ConstExpr< ConstT >::constant_
protected

The constant.

Definition at line 156 of file Sacado_CacheFad_Expression.hpp.


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