indexing< UpLength, IndexingAdaptor > Struct Template Reference

indexing&lt; UpLength, IndexingAdaptor &gt; Struct Template Reference#

Composable Kernel: ck_tile::indexing< UpLength, IndexingAdaptor > Struct Template Reference
ck_tile::indexing< UpLength, IndexingAdaptor > Struct Template Reference

#include <coordinate_transform.hpp>

Inheritance diagram for ck_tile::indexing< UpLength, IndexingAdaptor >:
ck_tile::base_transform< 1, 1 >

Public Types

using LowerIndex = multi_index<1>
using UpperIndex = multi_index<1>
using UpLengths = decltype(make_tuple(UpLength{}))

Public Member Functions

CK_TILE_HOST_DEVICE constexpr indexing ()=default
CK_TILE_HOST_DEVICE constexpr indexing (const UpLength &up_length, const IndexingAdaptor &iadaptor)
CK_TILE_HOST_DEVICE constexpr const auto & get_upper_lengths () const
template<typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE constexpr void calculate_lower_index (LowIdx &idx_low, const UpIdx &idx_up) const
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE void update_lower_index (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &idx_up) const

Static Public Member Functions

static CK_TILE_HOST_DEVICE constexpr auto get_type_enum ()
static CK_TILE_HOST_DEVICE constexpr bool is_valid_upper_index_always_mapped_to_valid_lower_index ()
template<typename UpIdx>
static CK_TILE_HOST_DEVICE constexpr bool is_valid_upper_index_mapped_to_valid_lower_index (const UpIdx &)
static CK_TILE_HOST_DEVICE constexpr bool is_known_at_compile_time ()
Static Public Member Functions inherited from ck_tile::base_transform< 1, 1 >
static CK_TILE_HOST_DEVICE constexpr auto get_type_enum ()
static CK_TILE_HOST_DEVICE constexpr index_t get_num_of_lower_dimension ()
static CK_TILE_HOST_DEVICE constexpr index_t get_num_of_upper_dimension ()
static CK_TILE_HOST_DEVICE constexpr auto calculate_upper_dimension_safe_vector_length_strides (const LowVectorLengths &, const LowVectorStrides &)

Public Attributes

UpLengths up_lengths_
IndexingAdaptor iadaptor_

Static Public Attributes

static constexpr index_t NDimUp = 1

Member Typedef Documentation

◆ LowerIndex

template<typename UpLength, typename IndexingAdaptor>
using ck_tile::indexing< UpLength, IndexingAdaptor >::LowerIndex = multi_index<1>

◆ UpLengths

template<typename UpLength, typename IndexingAdaptor>
using ck_tile::indexing< UpLength, IndexingAdaptor >::UpLengths = decltype(make_tuple(UpLength{}))

◆ UpperIndex

template<typename UpLength, typename IndexingAdaptor>
using ck_tile::indexing< UpLength, IndexingAdaptor >::UpperIndex = multi_index<1>

Constructor & Destructor Documentation

◆ indexing() [1/2]

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr ck_tile::indexing< UpLength, IndexingAdaptor >::indexing ( )
constexprdefault

◆ indexing() [2/2]

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr ck_tile::indexing< UpLength, IndexingAdaptor >::indexing ( const UpLength & up_length,
const IndexingAdaptor & iadaptor )
inlineconstexpr

Member Function Documentation

◆ calculate_lower_index()

template<typename UpLength, typename IndexingAdaptor>
template<typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE constexpr void ck_tile::indexing< UpLength, IndexingAdaptor >::calculate_lower_index ( LowIdx & idx_low,
const UpIdx & idx_up ) const
inlineconstexpr

◆ get_type_enum()

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr auto ck_tile::indexing< UpLength, IndexingAdaptor >::get_type_enum ( )
inlinestaticconstexpr

◆ get_upper_lengths()

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr const auto & ck_tile::indexing< UpLength, IndexingAdaptor >::get_upper_lengths ( ) const
inlineconstexpr

◆ is_known_at_compile_time()

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::indexing< UpLength, IndexingAdaptor >::is_known_at_compile_time ( )
inlinestaticconstexpr

◆ is_valid_upper_index_always_mapped_to_valid_lower_index()

template<typename UpLength, typename IndexingAdaptor>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::indexing< UpLength, IndexingAdaptor >::is_valid_upper_index_always_mapped_to_valid_lower_index ( )
inlinestaticconstexpr

◆ is_valid_upper_index_mapped_to_valid_lower_index()

template<typename UpLength, typename IndexingAdaptor>
template<typename UpIdx>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::indexing< UpLength, IndexingAdaptor >::is_valid_upper_index_mapped_to_valid_lower_index ( const UpIdx & )
inlinestaticconstexpr

◆ update_lower_index()

template<typename UpLength, typename IndexingAdaptor>
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE void ck_tile::indexing< UpLength, IndexingAdaptor >::update_lower_index ( LowIdxDiff & idx_diff_low,
const UpIdxDiff & idx_diff_up,
LowIdx & idx_low,
const UpIdx & idx_up ) const
inline

Member Data Documentation

◆ iadaptor_

template<typename UpLength, typename IndexingAdaptor>
IndexingAdaptor ck_tile::indexing< UpLength, IndexingAdaptor >::iadaptor_

◆ NDimUp

template<typename UpLength, typename IndexingAdaptor>
index_t ck_tile::indexing< UpLength, IndexingAdaptor >::NDimUp = 1
staticconstexpr

◆ up_lengths_

template<typename UpLength, typename IndexingAdaptor>
UpLengths ck_tile::indexing< UpLength, IndexingAdaptor >::up_lengths_

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