|
Stokhos
Development
|
Dynamic storage with view semantics and contiguous access. More...
#include <Stokhos_ViewStorage.hpp>
Classes | |
| struct | apply |
| Turn ViewStorage into a meta-function class usable with mpl::apply. More... | |
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (const error_storage_type_is_not_allocateable &z=error_storage_type_is_not_allocateable(), const value_type &x=value_type(0)) |
| Constructor to satisfy Sacado::MP::Vector, disabled via error type. | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (pointer v, const ordinal_type &arg_size=0, const ordinal_type &arg_stride=0) |
| Constructor. | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (const ordinal_type &sz, const value_type *x) |
| Constructor from array. | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (const ordinal_type &sz, pointer v, bool owned) |
| Constructor for creating a view. | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (const ViewStorage &s) |
| Constructor. | |
| KOKKOS_INLINE_FUNCTION | ViewStorage (const ViewStorage &s, const ordinal_type &arg_begin, const ordinal_type &arg_end) |
| KOKKOS_INLINE_FUNCTION | ~ViewStorage () |
| Destructor. | |
| KOKKOS_INLINE_FUNCTION void | init (const_reference v) |
| 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 | load (pointer v) |
| Load values to an array of values. | |
| KOKKOS_INLINE_FUNCTION void | resize (ordinal_type s) |
| Resize function disabled. | |
| KOKKOS_INLINE_FUNCTION void | shallowReset (pointer v, const error_storage_type_is_not_resizeable &, const error_storage_type_is_not_resizeable &, const bool owned) |
| Reset function disabled. | |
| KOKKOS_INLINE_FUNCTION ordinal_type | size () const |
| Return size. | |
| KOKKOS_INLINE_FUNCTION reference | operator[] (const ordinal_type &i) const |
| Coefficient access (avoid if possible) | |
| template<int i> | |
| KOKKOS_INLINE_FUNCTION reference | getCoeff () |
| template<int i> | |
| KOKKOS_INLINE_FUNCTION const_reference | getCoeff () const |
|
KOKKOS_INLINE_FUNCTION const_pointer | coeff () const |
| Get coefficients. | |
| KOKKOS_INLINE_FUNCTION pointer | coeff () |
| Get coefficients. | |
Dynamic storage with view semantics and contiguous access.
1.8.5