Stokhos
Development
|
Classes | |
struct | apply |
Turn DynamicStorage into a meta-function class usable with mpl::apply. More... | |
struct | apply_N |
Public Types | |
typedef ordinal_t | ordinal_type |
typedef value_t | value_type |
typedef device_t::execution_space | execution_space |
typedef device_t::memory_space | memory_space |
typedef value_type & | reference |
typedef volatile value_type & | volatile_reference |
typedef const value_type & | const_reference |
typedef const volatile value_type & | const_volatile_reference |
typedef value_type * | pointer |
typedef volatile value_type * | volatile_pointer |
typedef const value_type * | const_pointer |
typedef const volatile value_type * | const_volatile_pointer |
typedef Stokhos::DynArrayTraits < value_type, execution_space > | ds |
Public Member Functions | |
KOKKOS_INLINE_FUNCTION | DynamicStorage (const ordinal_type &sz=1, const value_type &x=value_type(0.0)) |
Constructor. | |
KOKKOS_INLINE_FUNCTION | DynamicStorage (const ordinal_type &sz, const value_type *x) |
Constructor from array. | |
KOKKOS_INLINE_FUNCTION | DynamicStorage (const ordinal_type &sz, pointer v, bool owned) |
Constructor for creating a view. | |
KOKKOS_INLINE_FUNCTION | DynamicStorage (const DynamicStorage &s) |
Constructor. | |
KOKKOS_INLINE_FUNCTION | DynamicStorage (const volatile DynamicStorage &s) |
Constructor. | |
KOKKOS_INLINE_FUNCTION | ~DynamicStorage () |
Destructor. | |
KOKKOS_INLINE_FUNCTION DynamicStorage & | operator= (const DynamicStorage &s) |
Assignment operator. | |
KOKKOS_INLINE_FUNCTION DynamicStorage & | operator= (const volatile DynamicStorage &s) |
Assignment operator. | |
KOKKOS_INLINE_FUNCTION DynamicStorage & | operator= (const DynamicStorage &s) volatile |
Assignment operator. | |
KOKKOS_INLINE_FUNCTION DynamicStorage & | operator= (const volatile DynamicStorage &s) volatile |
Assignment operator. | |
KOKKOS_INLINE_FUNCTION void | init (const_reference v) |
Initialize values to a constant value. | |
KOKKOS_INLINE_FUNCTION void | init (const_reference v) volatile |
Initialize values to a constant value. | |
KOKKOS_INLINE_FUNCTION void | init (const_pointer v, const ordinal_type &sz=0) |
Initialize values to an array of values. | |
KOKKOS_INLINE_FUNCTION void | init (const_pointer v, const ordinal_type &sz=0) volatile |
Initialize values to an array of values. | |
KOKKOS_INLINE_FUNCTION void | load (pointer v) |
Load values to an array of values. | |
KOKKOS_INLINE_FUNCTION void | load (pointer v) volatile |
Load values to an array of values. | |
KOKKOS_INLINE_FUNCTION void | resize (const ordinal_type &sz) |
Resize to new size (values are preserved) | |
KOKKOS_INLINE_FUNCTION void | resize (const ordinal_type &sz) volatile |
Resize to new size (values are preserved) | |
KOKKOS_INLINE_FUNCTION void | shallowReset (pointer v, const ordinal_type &sz, const ordinal_type &stride, bool owned) |
Reset storage to given array, size, and stride. | |
KOKKOS_INLINE_FUNCTION void | shallowReset (pointer v, const ordinal_type &sz, const ordinal_type &stride, bool owned) volatile |
Reset storage to given array, size, and stride. | |
KOKKOS_INLINE_FUNCTION ordinal_type | size () const |
Return size. | |
KOKKOS_INLINE_FUNCTION ordinal_type | size () const volatile |
Return size. | |
KOKKOS_INLINE_FUNCTION bool | is_view () const |
Return whether storage is a view. | |
KOKKOS_INLINE_FUNCTION bool | is_view () const volatile |
Return whether storage is a view. | |
KOKKOS_INLINE_FUNCTION const_reference | operator[] (const ordinal_type &i) const |
Coefficient access (avoid if possible) | |
KOKKOS_INLINE_FUNCTION const_volatile_reference | operator[] (const ordinal_type &i) const volatile |
Coefficient access (avoid if possible) | |
KOKKOS_INLINE_FUNCTION reference | operator[] (const ordinal_type &i) |
Coefficient access (avoid if possible) | |
KOKKOS_INLINE_FUNCTION volatile_reference | operator[] (const ordinal_type &i) volatile |
Coefficient access (avoid if possible) | |
template<int i> | |
KOKKOS_INLINE_FUNCTION reference | getCoeff () |
template<int i> | |
KOKKOS_INLINE_FUNCTION volatile_reference | getCoeff () volatile |
template<int i> | |
KOKKOS_INLINE_FUNCTION const_volatile_reference | getCoeff () const volatile |
template<int i> | |
KOKKOS_INLINE_FUNCTION const_reference | getCoeff () const |
KOKKOS_INLINE_FUNCTION const_volatile_pointer | coeff () const volatile |
Get coefficients. | |
KOKKOS_INLINE_FUNCTION const_pointer | coeff () const |
Get coefficients. | |
KOKKOS_INLINE_FUNCTION volatile_pointer | coeff () volatile |
Get coefficients. | |
KOKKOS_INLINE_FUNCTION pointer | coeff () |
Get coefficients. | |
Static Public Attributes | |
static const bool | is_static = false |
static const int | static_size = 0 |
static const bool | supports_reset = false |