StaticallyIndexedArray_v2< T, N > Struct Template Reference

StaticallyIndexedArray_v2&lt; T, N &gt; Struct Template Reference#

Composable Kernel: ck::StaticallyIndexedArray_v2< T, N > Struct Template Reference
ck::StaticallyIndexedArray_v2< T, N > Struct Template Reference

#include <statically_indexed_array.hpp>

Public Member Functions

__host__ constexpr __device__ StaticallyIndexedArray_v2 ()=default
 
template<index_t I>
__host__ constexpr __device__ const auto & At (Number< I >) const
 
template<index_t I>
__host__ constexpr __device__ auto & At (Number< I >)
 
template<index_t I>
__host__ constexpr __device__ const auto & operator[] (Number< I > i) const
 
template<index_t I>
__host__ constexpr __device__ auto & operator() (Number< I > i)
 

Static Public Member Functions

__host__ static constexpr __device__ index_t Size ()
 
__host__ static constexpr __device__ bool IsStaticBuffer ()
 

Public Attributes

data_ [N]
 

Constructor & Destructor Documentation

◆ StaticallyIndexedArray_v2()

template<typename T , index_t N>
__host__ constexpr __device__ ck::StaticallyIndexedArray_v2< T, N >::StaticallyIndexedArray_v2 ( )
constexprdefault

Member Function Documentation

◆ At() [1/2]

template<typename T , index_t N>
template<index_t I>
__host__ constexpr __device__ auto& ck::StaticallyIndexedArray_v2< T, N >::At ( Number< I >  )
inlineconstexpr

◆ At() [2/2]

template<typename T , index_t N>
template<index_t I>
__host__ constexpr __device__ const auto& ck::StaticallyIndexedArray_v2< T, N >::At ( Number< I >  ) const
inlineconstexpr

◆ IsStaticBuffer()

template<typename T , index_t N>
__host__ static constexpr __device__ bool ck::StaticallyIndexedArray_v2< T, N >::IsStaticBuffer ( )
inlinestaticconstexpr

◆ operator()()

template<typename T , index_t N>
template<index_t I>
__host__ constexpr __device__ auto& ck::StaticallyIndexedArray_v2< T, N >::operator() ( Number< I >  i)
inlineconstexpr

◆ operator[]()

template<typename T , index_t N>
template<index_t I>
__host__ constexpr __device__ const auto& ck::StaticallyIndexedArray_v2< T, N >::operator[] ( Number< I >  i) const
inlineconstexpr

◆ Size()

template<typename T , index_t N>
__host__ static constexpr __device__ index_t ck::StaticallyIndexedArray_v2< T, N >::Size ( )
inlinestaticconstexpr

Member Data Documentation

◆ data_

template<typename T , index_t N>
T ck::StaticallyIndexedArray_v2< T, N >::data_[N]

The documentation for this struct was generated from the following file:
  • /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/utility/statically_indexed_array.hpp