Stokhos Development
Loading...
Searching...
No Matches
Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > > Class Template Reference

Constant expression template. More...

#include <Sacado_Fad_Expr_MP_Vector.hpp>

Collaboration diagram for Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >:

Public Types

typedef Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > ConstT
typedef ConstT::value_type val_type
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

KOKKOS_INLINE_FUNCTION ConstExpr (const ConstT &constant)
 Constructor.
KOKKOS_INLINE_FUNCTION const ConstT & val () const
 Return value of operation.
KOKKOS_INLINE_FUNCTION const val_type & val (int j) const
 Return value of operation.

Protected Attributes

const ConstT & constant_
 The constant.

Detailed Description

template<typename Ord, typename Val, int VecNum, typename Dev>
class Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >

Constant expression template.

This template class represents a constant expression.

Constructor & Destructor Documentation

◆ ConstExpr()

template<typename Ord, typename Val, int VecNum, typename Dev>
KOKKOS_INLINE_FUNCTION Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >::ConstExpr ( const ConstT & constant)
inline

Constructor.

References constant_.

Member Function Documentation

◆ val() [1/2]

template<typename Ord, typename Val, int VecNum, typename Dev>
KOKKOS_INLINE_FUNCTION const ConstT & Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >::val ( ) const
inline

Return value of operation.

References constant_.

◆ val() [2/2]

template<typename Ord, typename Val, int VecNum, typename Dev>
KOKKOS_INLINE_FUNCTION const val_type & Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >::val ( int j) const
inline

Return value of operation.

References constant_.

Member Data Documentation

◆ constant_

template<typename Ord, typename Val, int VecNum, typename Dev>
const ConstT& Sacado::Fad::ConstExpr< Sacado::MP::Vector< Stokhos::StaticFixedStorage< Ord, Val, VecNum, Dev > > >::constant_
protected

The constant.

Referenced by ConstExpr(), val(), and val().


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