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__ __device__ constexpr StaticallyIndexedArray_v2 ()=default
template<index_t I>
__host__ __device__ constexpr const auto & At (Number< I >) const
template<index_t I>
__host__ __device__ constexpr auto & At (Number< I >)
template<index_t I>
__host__ __device__ constexpr const auto & operator[] (Number< I > i) const
template<index_t I>
__host__ __device__ constexpr auto & operator() (Number< I > i)

Static Public Member Functions

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

Public Attributes

data_ [N]

Constructor & Destructor Documentation

◆ StaticallyIndexedArray_v2()

template<typename T, index_t N>
__host__ __device__ constexpr 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__ __device__ constexpr auto & ck::StaticallyIndexedArray_v2< T, N >::At ( Number< I > )
inlineconstexpr

◆ At() [2/2]

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

◆ IsStaticBuffer()

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

◆ operator()()

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

◆ operator[]()

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

◆ Size()

template<typename T, index_t N>
__host__ static __device__ constexpr 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: