Stokhos Development
Public Types | Static Public Member Functions
Stokhos::DynArrayTraits< T, node_t, false > Struct Template Reference

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

#include <Stokhos_DynArrayTraits.hpp>

List of all members.

Public Types

typedef T value_type
typedef node_t node_type

Static Public Member Functions

static
KOKKOSARRAY_INLINE_FUNCTION
void 
fill (T *dest, std::size_t sz, const T &v)
 Fill array dest of length sz with value v.
static
KOKKOSARRAY_INLINE_FUNCTION
void 
copy (const T *src, T *dest, std::size_t sz)
 Copy array from src to dest of length sz.
static
KOKKOSARRAY_INLINE_FUNCTION
void 
zero (T *dest, std::size_t sz)
 Zero out array dest of length sz.
static
KOKKOSARRAY_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
KOKKOSARRAY_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
KOKKOSARRAY_INLINE_FUNCTION
void 
destroy_and_release (T *m, std::size_t sz)
 Destroy array elements and release memory.

Detailed Description

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

Dynamic array allocation class that works for any type.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator