Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D > Struct Template Reference

Partial specialization of PackTraits for Sacado's PCE UQ type. More...

#include <Stokhos_Tpetra_UQ_PCE.hpp>

Public Types

typedef Sacado::UQ::PCE< S > value_type
 
typedef D::execution_space execution_space
 
typedef D device_type
 
typedef execution_space::size_type size_type
 
typedef Kokkos::View< const char *, device_type, Kokkos::MemoryUnmanaged > input_buffer_type
 
typedef Kokkos::View< char *, device_type, Kokkos::MemoryUnmanaged > output_buffer_type
 
typedef Kokkos::View< const value_type *, device_type, Kokkos::MemoryUnmanaged > input_array_type
 
typedef Kokkos::View< value_type *, device_type, Kokkos::MemoryUnmanaged > output_array_type
 
typedef value_type::value_type scalar_value_type
 
typedef PackTraits< scalar_value_type, device_typeSPT
 
typedef SPT::input_array_type scalar_input_array_type
 
typedef SPT::output_array_type scalar_output_array_type
 

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION size_t numValuesPerScalar (const value_type &x)
 
static Kokkos::View< value_type *, device_typeallocateArray (const value_type &x, const size_t numEnt, const std::string &label="")
 
static KOKKOS_INLINE_FUNCTION Kokkos::pair< int, size_t > packArray (char outBuf[], const value_type inBuf[], const size_t numEnt)
 
static KOKKOS_INLINE_FUNCTION Kokkos::pair< int, size_t > unpackArray (value_type outBuf[], const char inBuf[], const size_t numEnt)
 
static KOKKOS_INLINE_FUNCTION size_t packValueCount (const value_type &inVal)
 
static KOKKOS_INLINE_FUNCTION size_t packValue (char outBuf[], const value_type &inVal)
 
static KOKKOS_INLINE_FUNCTION size_t packValue (char outBuf[], const size_t outBufIndex, const value_type &inVal)
 
static KOKKOS_INLINE_FUNCTION size_t unpackValue (value_type &outVal, const char inBuf[])
 

Static Public Attributes

static const bool compileTimeSize = false
 Whether the number of bytes required to pack one instance of value_type is fixed at compile time. More...
 

Detailed Description

template<typename S, typename D>
struct Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >

Partial specialization of PackTraits for Sacado's PCE UQ type.

Template Parameters
SThe underlying scalar type in the PCE UQ type.
DThe Kokkos "device" type.

Definition at line 147 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Typedef Documentation

◆ value_type

template<typename S , typename D >
typedef Sacado::UQ::PCE<S> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::value_type

Definition at line 148 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ execution_space

template<typename S , typename D >
typedef D::execution_space Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::execution_space

Definition at line 149 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ device_type

template<typename S , typename D >
typedef D Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::device_type

Definition at line 150 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ size_type

template<typename S , typename D >
typedef execution_space::size_type Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::size_type

Definition at line 151 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ input_buffer_type

template<typename S , typename D >
typedef Kokkos::View<const char*, device_type, Kokkos::MemoryUnmanaged> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::input_buffer_type

Definition at line 157 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ output_buffer_type

template<typename S , typename D >
typedef Kokkos::View<char*, device_type, Kokkos::MemoryUnmanaged> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::output_buffer_type

Definition at line 158 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ input_array_type

template<typename S , typename D >
typedef Kokkos::View<const value_type*, device_type, Kokkos::MemoryUnmanaged> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::input_array_type

Definition at line 159 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ output_array_type

template<typename S , typename D >
typedef Kokkos::View<value_type*, device_type, Kokkos::MemoryUnmanaged> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::output_array_type

Definition at line 160 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_value_type

template<typename S , typename D >
typedef value_type::value_type Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::scalar_value_type

Definition at line 162 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ SPT

template<typename S , typename D >
typedef PackTraits< scalar_value_type, device_type > Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::SPT

Definition at line 163 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_input_array_type

template<typename S , typename D >
typedef SPT::input_array_type Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::scalar_input_array_type

Definition at line 164 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_output_array_type

template<typename S , typename D >
typedef SPT::output_array_type Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::scalar_output_array_type

Definition at line 165 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Function Documentation

◆ numValuesPerScalar()

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION size_t Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::numValuesPerScalar ( const value_type x)
inlinestatic

Definition at line 168 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ allocateArray()

template<typename S , typename D >
static Kokkos::View<value_type*, device_type> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::allocateArray ( const value_type x,
const size_t  numEnt,
const std::string &  label = "" 
)
inlinestatic

Definition at line 173 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packArray()

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION Kokkos::pair<int, size_t> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::packArray ( char  outBuf[],
const value_type  inBuf[],
const size_t  numEnt 
)
inlinestatic

Definition at line 183 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ unpackArray()

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION Kokkos::pair<int, size_t> Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::unpackArray ( value_type  outBuf[],
const char  inBuf[],
const size_t  numEnt 
)
inlinestatic

Definition at line 231 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValueCount()

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION size_t Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::packValueCount ( const value_type inVal)
inlinestatic

Definition at line 274 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValue() [1/2]

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION size_t Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::packValue ( char  outBuf[],
const value_type inVal 
)
inlinestatic

Definition at line 281 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValue() [2/2]

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION size_t Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::packValue ( char  outBuf[],
const size_t  outBufIndex,
const value_type inVal 
)
inlinestatic

Definition at line 291 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ unpackValue()

template<typename S , typename D >
static KOKKOS_INLINE_FUNCTION size_t Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::unpackValue ( value_type outVal,
const char  inBuf[] 
)
inlinestatic

Definition at line 303 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Data Documentation

◆ compileTimeSize

template<typename S , typename D >
const bool Tpetra::Details::PackTraits< Sacado::UQ::PCE< S >, D >::compileTimeSize = false
static

Whether the number of bytes required to pack one instance of value_type is fixed at compile time.

Definition at line 155 of file Stokhos_Tpetra_UQ_PCE.hpp.


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