Sacado Package Browser (Single Doxygen Collection)
Version of the Day
|
Dynamic array allocation class that works for any type. More...
#include <Sacado_DynamicArrayTraits.hpp>
Static Public Member Functions | |
static KOKKOS_INLINE_FUNCTION T * | get (int sz) |
Get memory for new array of length sz . More... | |
static KOKKOS_INLINE_FUNCTION T * | get_and_fill (int sz) |
Get memory for new array of length sz and fill with zeros. More... | |
static KOKKOS_INLINE_FUNCTION T * | get_and_fill (const T *src, int sz) |
Get memory for new array of length sz and fill with entries from src . More... | |
static KOKKOS_INLINE_FUNCTION T * | strided_get_and_fill (const T *src, int stride, int sz) |
Get memory for new array of length sz and fill with entries from src . More... | |
static KOKKOS_INLINE_FUNCTION void | copy (const T *src, T *dest, int sz) |
Copy array from src to dest of length sz . More... | |
static KOKKOS_INLINE_FUNCTION void | strided_copy (const T *src, int src_stride, T *dest, int dest_stride, int sz) |
Copy array from src to dest of length sz . More... | |
static KOKKOS_INLINE_FUNCTION void | zero (T *dest, int sz) |
Zero out array dest of length sz . More... | |
static KOKKOS_INLINE_FUNCTION void | strided_zero (T *dest, int stride, int sz) |
Zero out array dest of length sz . More... | |
static KOKKOS_INLINE_FUNCTION void | destroy_and_release (T *m, int sz) |
Destroy array elements and release memory. More... | |
Dynamic array allocation class that works for any type.
Definition at line 259 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Get memory for new array of length sz
.
Definition at line 263 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Get memory for new array of length sz
and fill with zeros.
Definition at line 276 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Get memory for new array of length sz
and fill with entries from src
.
Definition at line 292 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Get memory for new array of length sz
and fill with entries from src
.
Definition at line 308 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Copy array from src
to dest
of length sz
.
Definition at line 323 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Copy array from src
to dest
of length sz
.
Definition at line 330 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Zero out array dest
of length sz
.
Definition at line 341 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Zero out array dest
of length sz
.
Definition at line 348 of file Sacado_DynamicArrayTraits.hpp.
|
inlinestatic |
Destroy array elements and release memory.
Definition at line 357 of file Sacado_DynamicArrayTraits.hpp.