MiniTensor Version of the Day
Loading...
Searching...
No Matches
minitensor::Storage< T, N > Class Template Reference

#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

storage_ [N]
 
Index size_ {N}
 

Detailed Description

template<typename T, Index N>
class minitensor::Storage< T, 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.


The documentation for this class was generated from the following file: