Stokhos Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <Stokhos_DynamicStridedStorage.hpp>
Classes | |
struct | apply |
Turn DynamicStridedStorage into a meta-function class usable with mpl::apply. More... | |
Public Types | |
typedef ordinal_t | ordinal_type |
typedef value_t | value_type |
typedef device_t | execution_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 | DynamicStridedStorage (const ordinal_type &sz=1, const value_type &x=value_type(0.0)) |
Constructor. More... | |
KOKKOS_INLINE_FUNCTION | DynamicStridedStorage (const ordinal_type &sz, const value_type *x) |
Constructor from array. More... | |
KOKKOS_INLINE_FUNCTION | DynamicStridedStorage (const ordinal_type &sz, pointer v, bool owned) |
Constructor for creating a view. More... | |
KOKKOS_INLINE_FUNCTION | DynamicStridedStorage (const DynamicStridedStorage &s) |
Constructor. More... | |
KOKKOS_INLINE_FUNCTION | DynamicStridedStorage (const volatile DynamicStridedStorage &s) |
Constructor. More... | |
KOKKOS_INLINE_FUNCTION | ~DynamicStridedStorage () |
Destructor. More... | |
KOKKOS_INLINE_FUNCTION DynamicStridedStorage & | operator= (const DynamicStridedStorage &s) |
Assignment operator. More... | |
KOKKOS_INLINE_FUNCTION DynamicStridedStorage & | operator= (const volatile DynamicStridedStorage &s) |
Assignment operator. More... | |
KOKKOS_INLINE_FUNCTION volatile DynamicStridedStorage & | operator= (const DynamicStridedStorage &s) volatile |
Assignment operator. More... | |
KOKKOS_INLINE_FUNCTION volatile DynamicStridedStorage & | operator= (const volatile DynamicStridedStorage &s) volatile |
Assignment operator. More... | |
KOKKOS_INLINE_FUNCTION void | init (const_reference v) |
Initialize values to a constant value. More... | |
KOKKOS_INLINE_FUNCTION void | init (const_reference v) volatile |
Initialize values to a constant value. More... | |
KOKKOS_INLINE_FUNCTION void | init (const_pointer v, const ordinal_type &sz=0) |
Initialize values to an array of values. More... | |
KOKKOS_INLINE_FUNCTION void | init (const_pointer v, const ordinal_type &sz=0) volatile |
Initialize values to an array of values. More... | |
KOKKOS_INLINE_FUNCTION void | load (pointer v) |
Load values to an array of values. More... | |
KOKKOS_INLINE_FUNCTION void | load (pointer v) volatile |
Load values to an array of values. More... | |
KOKKOS_INLINE_FUNCTION void | resize (const ordinal_type &sz) |
Resize to new size (values are preserved) More... | |
KOKKOS_INLINE_FUNCTION void | resize (const ordinal_type &sz) volatile |
Resize to new size (values are preserved) More... | |
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. More... | |
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. More... | |
KOKKOS_INLINE_FUNCTION ordinal_type | size () const |
Return size. More... | |
KOKKOS_INLINE_FUNCTION ordinal_type | size () const volatile |
Return size. More... | |
KOKKOS_INLINE_FUNCTION const_reference | operator[] (const ordinal_type &i) const |
Coefficient access (avoid if possible) More... | |
KOKKOS_INLINE_FUNCTION const_volatile_reference | operator[] (const ordinal_type &i) const volatile |
Coefficient access (avoid if possible) More... | |
KOKKOS_INLINE_FUNCTION reference | operator[] (const ordinal_type &i) |
Coefficient access (avoid if possible) More... | |
KOKKOS_INLINE_FUNCTION volatile_reference | operator[] (const ordinal_type &i) volatile |
Coefficient access (avoid if possible) More... | |
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_reference | getCoeff () const |
template<int i> | |
KOKKOS_INLINE_FUNCTION const_volatile_reference | getCoeff () const volatile |
KOKKOS_INLINE_FUNCTION const_volatile_pointer | coeff () const volatile |
Get coefficients. More... | |
KOKKOS_INLINE_FUNCTION const_pointer | coeff () const |
Get coefficients. More... | |
KOKKOS_INLINE_FUNCTION volatile_pointer | coeff () volatile |
Get coefficients. More... | |
KOKKOS_INLINE_FUNCTION pointer | coeff () |
Get coefficients. More... | |
Static Public Attributes | |
static const bool | is_static = false |
static const int | static_size = 0 |
static const bool | supports_reset = true |
Private Attributes | |
pointer | coeff_ |
Coefficient values. More... | |
ordinal_type | sz_ |
Size of array used. More... | |
ordinal_type | stride_ |
Stride of array. More... | |
bool | is_owned_ |
Do we own the array. More... | |
Definition at line 56 of file Stokhos_DynamicStridedStorage.hpp.
typedef ordinal_t Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::ordinal_type |
Definition at line 63 of file Stokhos_DynamicStridedStorage.hpp.
typedef value_t Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::value_type |
Definition at line 64 of file Stokhos_DynamicStridedStorage.hpp.
typedef device_t Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::execution_space |
Definition at line 65 of file Stokhos_DynamicStridedStorage.hpp.
typedef value_type& Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::reference |
Definition at line 66 of file Stokhos_DynamicStridedStorage.hpp.
typedef volatile value_type& Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::volatile_reference |
Definition at line 67 of file Stokhos_DynamicStridedStorage.hpp.
typedef const value_type& Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::const_reference |
Definition at line 68 of file Stokhos_DynamicStridedStorage.hpp.
typedef const volatile value_type& Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::const_volatile_reference |
Definition at line 69 of file Stokhos_DynamicStridedStorage.hpp.
typedef value_type* Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::pointer |
Definition at line 70 of file Stokhos_DynamicStridedStorage.hpp.
typedef volatile value_type* Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::volatile_pointer |
Definition at line 71 of file Stokhos_DynamicStridedStorage.hpp.
typedef const value_type* Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::const_pointer |
Definition at line 72 of file Stokhos_DynamicStridedStorage.hpp.
typedef const volatile value_type* Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::const_volatile_pointer |
Definition at line 73 of file Stokhos_DynamicStridedStorage.hpp.
typedef Stokhos::DynArrayTraits<value_type,execution_space> Stokhos::DynamicStridedStorage< ordinal_t, value_t, device_t >::ds |
Definition at line 74 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Constructor.
Definition at line 84 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Constructor from array.
Definition at line 92 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Constructor for creating a view.
Definition at line 99 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Constructor.
Definition at line 104 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Constructor.
Definition at line 117 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Destructor.
Definition at line 130 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Assignment operator.
Definition at line 136 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Assignment operator.
Definition at line 165 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Assignment operator.
Definition at line 195 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Assignment operator.
Definition at line 225 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Initialize values to a constant value.
Definition at line 254 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Initialize values to a constant value.
Definition at line 264 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Initialize values to an array of values.
Definition at line 274 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Initialize values to an array of values.
Definition at line 287 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Load values to an array of values.
Definition at line 300 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Load values to an array of values.
Definition at line 309 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Resize to new size (values are preserved)
Definition at line 318 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Resize to new size (values are preserved)
Definition at line 340 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Reset storage to given array, size, and stride.
Definition at line 362 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Reset storage to given array, size, and stride.
Definition at line 374 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Return size.
Definition at line 386 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Return size.
Definition at line 390 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Coefficient access (avoid if possible)
Definition at line 394 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Coefficient access (avoid if possible)
Definition at line 400 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Coefficient access (avoid if possible)
Definition at line 406 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Coefficient access (avoid if possible)
Definition at line 412 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Definition at line 418 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Definition at line 422 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Definition at line 426 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Definition at line 430 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Get coefficients.
Definition at line 434 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Get coefficients.
Definition at line 438 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Get coefficients.
Definition at line 442 of file Stokhos_DynamicStridedStorage.hpp.
|
inline |
Get coefficients.
Definition at line 446 of file Stokhos_DynamicStridedStorage.hpp.
|
static |
Definition at line 59 of file Stokhos_DynamicStridedStorage.hpp.
|
static |
Definition at line 60 of file Stokhos_DynamicStridedStorage.hpp.
|
static |
Definition at line 61 of file Stokhos_DynamicStridedStorage.hpp.
|
private |
Coefficient values.
Definition at line 451 of file Stokhos_DynamicStridedStorage.hpp.
|
private |
Size of array used.
Definition at line 454 of file Stokhos_DynamicStridedStorage.hpp.
|
private |
Stride of array.
Definition at line 457 of file Stokhos_DynamicStridedStorage.hpp.
|
private |
Do we own the array.
Definition at line 460 of file Stokhos_DynamicStridedStorage.hpp.