Stokhos Package Browser (Single Doxygen Collection)  Version of the Day
Public Types | Static Public Member Functions | List of all members
Stokhos::StaticArrayTraits< T, D, true > Struct Template Reference

Static array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...). More...

#include <Stokhos_StaticArrayTraits.hpp>

Public Types

typedef T value_type
 
typedef D execution_space
 

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION void copy (const volatile T *src, volatile T *dest, std::size_t sz)
 Copy array from src to dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void copy (const volatile T *src, T *dest, std::size_t sz)
 Copy array from src to dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void copy (const T *src, volatile T *dest, std::size_t sz)
 Copy array from src to dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void copy (const T *src, T *dest, std::size_t sz)
 Copy array from src to dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void zero (T *dest, std::size_t sz)
 Zero out array dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void zero (volatile T *dest, std::size_t sz)
 Zero out array dest of length sz. More...
 
static KOKKOS_INLINE_FUNCTION void fill (T *dest, std::size_t sz, T v)
 Fill array dest of length sz with value v. More...
 
static KOKKOS_INLINE_FUNCTION void fill (volatile T *dest, std::size_t sz, T v)
 Fill array dest of length sz with value v. More...
 

Detailed Description

template<typename T, typename D>
struct Stokhos::StaticArrayTraits< T, D, true >

Static array allocation class that is specialized for scalar i.e., fundamental or built-in types (float, double, etc...).

Definition at line 140 of file Stokhos_StaticArrayTraits.hpp.

Member Typedef Documentation

◆ value_type

template<typename T , typename D >
typedef T Stokhos::StaticArrayTraits< T, D, true >::value_type

Definition at line 142 of file Stokhos_StaticArrayTraits.hpp.

◆ execution_space

template<typename T , typename D >
typedef D Stokhos::StaticArrayTraits< T, D, true >::execution_space

Definition at line 143 of file Stokhos_StaticArrayTraits.hpp.

Member Function Documentation

◆ copy() [1/4]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::copy ( const volatile T *  src,
volatile T *  dest,
std::size_t  sz 
)
inlinestatic

Copy array from src to dest of length sz.

Definition at line 148 of file Stokhos_StaticArrayTraits.hpp.

◆ copy() [2/4]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::copy ( const volatile T *  src,
T *  dest,
std::size_t  sz 
)
inlinestatic

Copy array from src to dest of length sz.

Definition at line 158 of file Stokhos_StaticArrayTraits.hpp.

◆ copy() [3/4]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::copy ( const T *  src,
volatile T *  dest,
std::size_t  sz 
)
inlinestatic

Copy array from src to dest of length sz.

Definition at line 168 of file Stokhos_StaticArrayTraits.hpp.

◆ copy() [4/4]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::copy ( const T *  src,
T *  dest,
std::size_t  sz 
)
inlinestatic

Copy array from src to dest of length sz.

Definition at line 178 of file Stokhos_StaticArrayTraits.hpp.

◆ zero() [1/2]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::zero ( T *  dest,
std::size_t  sz 
)
inlinestatic

Zero out array dest of length sz.

Definition at line 185 of file Stokhos_StaticArrayTraits.hpp.

◆ zero() [2/2]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::zero ( volatile T *  dest,
std::size_t  sz 
)
inlinestatic

Zero out array dest of length sz.

Definition at line 192 of file Stokhos_StaticArrayTraits.hpp.

◆ fill() [1/2]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::fill ( T *  dest,
std::size_t  sz,
v 
)
inlinestatic

Fill array dest of length sz with value v.

Definition at line 201 of file Stokhos_StaticArrayTraits.hpp.

◆ fill() [2/2]

template<typename T , typename D >
static KOKKOS_INLINE_FUNCTION void Stokhos::StaticArrayTraits< T, D, true >::fill ( volatile T *  dest,
std::size_t  sz,
v 
)
inlinestatic

Fill array dest of length sz with value v.

Definition at line 210 of file Stokhos_StaticArrayTraits.hpp.


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