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

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

#include <Stokhos_Tpetra_UQ_PCE.hpp>

Public Types

using value_type = Sacado::UQ::PCE< S >
 
using input_buffer_type = Kokkos::View< const char *, Kokkos::AnonymousSpace >
 
using output_buffer_type = Kokkos::View< char *, Kokkos::AnonymousSpace >
 
using input_array_type = Kokkos::View< const value_type *, Kokkos::AnonymousSpace >
 
using output_array_type = Kokkos::View< value_type *, Kokkos::AnonymousSpace >
 
using scalar_value_type = typename value_type::value_type
 
using SPT = PackTraits< scalar_value_type >
 
using scalar_input_array_type = typename SPT::input_array_type
 
using scalar_output_array_type = typename SPT::output_array_type
 

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION size_t numValuesPerScalar (const value_type &x)
 
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.
 

Detailed Description

template<class S>
struct Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >

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

Template Parameters
SThe underlying scalar type in the PCE UQ type.

Definition at line 147 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Typedef Documentation

◆ value_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::value_type = Sacado::UQ::PCE<S>

Definition at line 148 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ input_buffer_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::input_buffer_type = Kokkos::View<const char*, Kokkos::AnonymousSpace>

Definition at line 154 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ output_buffer_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::output_buffer_type = Kokkos::View<char*, Kokkos::AnonymousSpace>

Definition at line 155 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ input_array_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::input_array_type = Kokkos::View<const value_type*, Kokkos::AnonymousSpace>

Definition at line 156 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ output_array_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::output_array_type = Kokkos::View<value_type*, Kokkos::AnonymousSpace>

Definition at line 157 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_value_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::scalar_value_type = typename value_type::value_type

Definition at line 159 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ SPT

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::SPT = PackTraits<scalar_value_type>

Definition at line 160 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_input_array_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::scalar_input_array_type = typename SPT::input_array_type

Definition at line 161 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ scalar_output_array_type

template<class S >
using Tpetra::Details::PackTraits< Sacado::UQ::PCE< S > >::scalar_output_array_type = typename SPT::output_array_type

Definition at line 162 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Function Documentation

◆ numValuesPerScalar()

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

Definition at line 165 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packArray()

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

Definition at line 171 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ unpackArray()

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

Definition at line 219 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValueCount()

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

Definition at line 262 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValue() [1/2]

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

Definition at line 269 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ packValue() [2/2]

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

Definition at line 279 of file Stokhos_Tpetra_UQ_PCE.hpp.

◆ unpackValue()

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

Definition at line 291 of file Stokhos_Tpetra_UQ_PCE.hpp.

Member Data Documentation

◆ compileTimeSize

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

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

Definition at line 152 of file Stokhos_Tpetra_UQ_PCE.hpp.


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