Stokhos Package Browser (Single Doxygen Collection) Version of the Day
Loading...
Searching...
No Matches
Stokhos::DynArrayTraits< T, device_t, false > Struct Template Reference

Dynamic array allocation class that works for any type. More...

#include <Stokhos_DynArrayTraits.hpp>

Inheritance diagram for Stokhos::DynArrayTraits< T, device_t, false >:

Public Types

typedef T value_type
 
typedef device_t execution_space
 
typedef T value_type
 
typedef device_t execution_space
 

Static Public Member Functions

static KOKKOS_INLINE_FUNCTION void fill (T *dest, std::size_t sz, const T &v)
 Fill array dest of length sz with value v.
 
static KOKKOS_INLINE_FUNCTION void fill (volatile T *dest, std::size_t sz, const T &v)
 Fill array dest of length sz with value v.
 
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.
 
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.
 
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.
 
static KOKKOS_INLINE_FUNCTION void copy (const T *src, T *dest, std::size_t sz)
 Copy array from src to dest of length sz.
 
static KOKKOS_INLINE_FUNCTION void zero (T *dest, std::size_t sz)
 Zero out array dest of length sz.
 
static KOKKOS_INLINE_FUNCTION void zero (volatile T *dest, std::size_t sz)
 Zero out array dest of length sz.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (std::size_t sz, const T &x=T(0.0))
 Get memory for new array of length sz and fill with zeros.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (const T *src, std::size_t sz)
 Get memory for new array of length sz and fill with entries from src.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (const volatile T *src, std::size_t sz)
 Get memory for new array of length sz and fill with entries from src.
 
static KOKKOS_INLINE_FUNCTION void destroy_and_release (T *m, std::size_t sz)
 Destroy array elements and release memory.
 
static KOKKOS_INLINE_FUNCTION void destroy_and_release (volatile T *m, std::size_t sz)
 Destroy array elements and release memory.
 
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.
 
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.
 
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.
 
static KOKKOS_INLINE_FUNCTION void copy (const T *src, T *dest, std::size_t sz)
 Copy array from src to dest of length sz.
 
static KOKKOS_INLINE_FUNCTION void zero (T *dest, std::size_t sz)
 Zero out array dest of length sz.
 
static KOKKOS_INLINE_FUNCTION void zero (volatile T *dest, std::size_t sz)
 Zero out array dest of length sz.
 
static KOKKOS_INLINE_FUNCTION void fill (T *dest, std::size_t sz, const T &v)
 Fill array dest of length sz with value v.
 
static KOKKOS_INLINE_FUNCTION void fill (volatile T *dest, std::size_t sz, const T &v)
 Fill array dest of length sz with value v.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (std::size_t sz, const T &x=T(0.0))
 Get memory for new array of length sz and fill with zeros.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (const T *src, std::size_t sz)
 Get memory for new array of length sz and fill with entries from src.
 
static KOKKOS_INLINE_FUNCTION T * get_and_fill (const volatile T *src, std::size_t sz)
 Get memory for new array of length sz and fill with entries from src.
 
static KOKKOS_INLINE_FUNCTION void destroy_and_release (T *m, std::size_t sz)
 Destroy array elements and release memory.
 
static KOKKOS_INLINE_FUNCTION void destroy_and_release (volatile T *m, std::size_t sz)
 Destroy array elements and release memory.
 

Detailed Description

template<typename T, typename device_t>
struct Stokhos::DynArrayTraits< T, device_t, false >

Dynamic array allocation class that works for any type.

Definition at line 220 of file Stokhos_DynArrayTraits.hpp.

Member Typedef Documentation

◆ value_type [1/2]

template<typename T, typename device_t>
typedef T Stokhos::DynArrayTraits< T, device_t, false >::value_type

Definition at line 222 of file Stokhos_DynArrayTraits.hpp.

◆ execution_space [1/2]

template<typename T, typename device_t>
typedef device_t Stokhos::DynArrayTraits< T, device_t, false >::execution_space

Definition at line 223 of file Stokhos_DynArrayTraits.hpp.

◆ value_type [2/2]

typedef T Stokhos::DynArrayTraits< T, device_t, isScalar >::value_type

Definition at line 82 of file Stokhos_DynArrayTraits.hpp.

◆ execution_space [2/2]

typedef device_t Stokhos::DynArrayTraits< T, device_t, isScalar >::execution_space

Definition at line 83 of file Stokhos_DynArrayTraits.hpp.

Member Function Documentation

◆ fill() [1/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::fill ( T * dest,
std::size_t sz,
const T & v )
inlinestatic

Fill array dest of length sz with value v.

Definition at line 228 of file Stokhos_DynArrayTraits.hpp.

◆ fill() [2/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::fill ( volatile T * dest,
std::size_t sz,
const T & v )
inlinestatic

Fill array dest of length sz with value v.

Definition at line 236 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [1/8]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::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 244 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [2/8]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::copy ( const volatile T * src,
T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 252 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [3/8]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::copy ( const T * src,
volatile T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 260 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [4/8]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::copy ( const T * src,
T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 268 of file Stokhos_DynArrayTraits.hpp.

◆ zero() [1/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::zero ( T * dest,
std::size_t sz )
inlinestatic

Zero out array dest of length sz.

Definition at line 276 of file Stokhos_DynArrayTraits.hpp.

◆ zero() [2/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::zero ( volatile T * dest,
std::size_t sz )
inlinestatic

Zero out array dest of length sz.

Definition at line 284 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [1/6]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, false >::get_and_fill ( std::size_t sz,
const T & x = T(0.0) )
inlinestatic

Get memory for new array of length sz and fill with zeros.

Definition at line 292 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [2/6]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, false >::get_and_fill ( const T * src,
std::size_t sz )
inlinestatic

Get memory for new array of length sz and fill with entries from src.

Definition at line 309 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [3/6]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, false >::get_and_fill ( const volatile T * src,
std::size_t sz )
inlinestatic

Get memory for new array of length sz and fill with entries from src.

Definition at line 326 of file Stokhos_DynArrayTraits.hpp.

◆ destroy_and_release() [1/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::destroy_and_release ( T * m,
std::size_t sz )
inlinestatic

Destroy array elements and release memory.

Definition at line 340 of file Stokhos_DynArrayTraits.hpp.

◆ destroy_and_release() [2/4]

template<typename T, typename device_t>
static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, false >::destroy_and_release ( volatile T * m,
std::size_t sz )
inlinestatic

Destroy array elements and release memory.

Definition at line 350 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [5/8]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::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 88 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [6/8]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::copy ( const volatile T * src,
T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 97 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [7/8]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::copy ( const T * src,
volatile T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 106 of file Stokhos_DynArrayTraits.hpp.

◆ copy() [8/8]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::copy ( const T * src,
T * dest,
std::size_t sz )
inlinestatic

Copy array from src to dest of length sz.

Definition at line 115 of file Stokhos_DynArrayTraits.hpp.

◆ zero() [3/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::zero ( T * dest,
std::size_t sz )
inlinestatic

Zero out array dest of length sz.

Definition at line 124 of file Stokhos_DynArrayTraits.hpp.

◆ zero() [4/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::zero ( volatile T * dest,
std::size_t sz )
inlinestatic

Zero out array dest of length sz.

Definition at line 131 of file Stokhos_DynArrayTraits.hpp.

◆ fill() [3/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::fill ( T * dest,
std::size_t sz,
const T & v )
inlinestatic

Fill array dest of length sz with value v.

Definition at line 140 of file Stokhos_DynArrayTraits.hpp.

◆ fill() [4/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::fill ( volatile T * dest,
std::size_t sz,
const T & v )
inlinestatic

Fill array dest of length sz with value v.

Definition at line 149 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [4/6]

static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, isScalar >::get_and_fill ( std::size_t sz,
const T & x = T(0.0) )
inlinestatic

Get memory for new array of length sz and fill with zeros.

Definition at line 158 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [5/6]

static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, isScalar >::get_and_fill ( const T * src,
std::size_t sz )
inlinestatic

Get memory for new array of length sz and fill with entries from src.

Definition at line 175 of file Stokhos_DynArrayTraits.hpp.

◆ get_and_fill() [6/6]

static KOKKOS_INLINE_FUNCTION T * Stokhos::DynArrayTraits< T, device_t, isScalar >::get_and_fill ( const volatile T * src,
std::size_t sz )
inlinestatic

Get memory for new array of length sz and fill with entries from src.

Definition at line 191 of file Stokhos_DynArrayTraits.hpp.

◆ destroy_and_release() [3/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::destroy_and_release ( T * m,
std::size_t sz )
inlinestatic

Destroy array elements and release memory.

Definition at line 204 of file Stokhos_DynArrayTraits.hpp.

◆ destroy_and_release() [4/4]

static KOKKOS_INLINE_FUNCTION void Stokhos::DynArrayTraits< T, device_t, isScalar >::destroy_and_release ( volatile T * m,
std::size_t sz )
inlinestatic

Destroy array elements and release memory.

Definition at line 211 of file Stokhos_DynArrayTraits.hpp.


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