|
MiniTensor Version of the Day
|
#include <MiniTensor_Storage.h>
Public Types | |
| using | value_type = T |
| using | pointer_type = T * |
| using | reference_type = T & |
| using | const_pointer_type = T const * |
| using | const_reference_type = T const & |
Public Member Functions | |
| KOKKOS_INLINE_FUNCTION | Storage () |
| KOKKOS_INLINE_FUNCTION | Storage (Index const number_entries) |
| Storage (Storage< T, N > const &s)=delete | |
| Storage< T, N > & | operator= (Storage< T, N > const &s)=delete |
| KOKKOS_INLINE_FUNCTION | ~Storage () |
| KOKKOS_INLINE_FUNCTION T const & | operator[] (Index const i) const |
| KOKKOS_INLINE_FUNCTION T & | operator[] (Index const i) |
| KOKKOS_INLINE_FUNCTION Index | size () const |
| KOKKOS_INLINE_FUNCTION void | resize (Index const number_entries) |
| KOKKOS_INLINE_FUNCTION void | clear () |
| KOKKOS_INLINE_FUNCTION pointer_type | get_pointer () |
| KOKKOS_INLINE_FUNCTION const_pointer_type | get_const_pointer () const |
Static Public Member Functions | |
| static KOKKOS_INLINE_FUNCTION constexpr Index | static_size () |
Static Public Attributes | |
| static constexpr bool | IS_STATIC = true |
| static constexpr bool | IS_DYNAMIC = false |
Private Attributes | |
| T | storage_ [N] |
| Index | size_ {N} |
Base static storage class. Simple linear access memory model. The capacity N is fixed at compile time and entries live in a member array, so no heap allocation ever occurs. This policy is preferred for production runs and GPU (Kokkos) execution.
Definition at line 321 of file MiniTensor_Storage.h.