slice< LowLength, SliceBegin, SliceEnd > Struct Template Reference

slice&lt; LowLength, SliceBegin, SliceEnd &gt; Struct Template Reference#

Composable Kernel: ck_tile::slice< LowLength, SliceBegin, SliceEnd > Struct Template Reference
ck_tile::slice< LowLength, SliceBegin, SliceEnd > Struct Template Reference

#include <coordinate_transform.hpp>

Inheritance diagram for ck_tile::slice< LowLength, SliceBegin, SliceEnd >:
ck_tile::base_transform< 1, 1 >

Public Types

using LowerIndex = multi_index< 1 >
 
using UpperIndex = multi_index< 1 >
 
using UpLengths = decltype(make_tuple(SliceEnd{} - SliceBegin{}))
 

Public Member Functions

constexpr CK_TILE_HOST_DEVICE slice ()=default
 
constexpr CK_TILE_HOST_DEVICE slice (const LowLength &, const SliceBegin &slice_begin, const SliceEnd &slice_end)
 
constexpr CK_TILE_HOST_DEVICE const auto & get_upper_lengths () const
 
template<typename LowIdx , typename UpIdx >
constexpr CK_TILE_HOST_DEVICE void calculate_lower_index (LowIdx &idx_low, const UpIdx &idx_up) const
 
template<typename UpIdx >
constexpr CK_TILE_HOST_DEVICE bool is_valid_upper_index_mapped_to_valid_lower_index (const UpIdx &) const
 
CK_TILE_HOST_DEVICE void print () const
 

Static Public Member Functions

template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx >
static CK_TILE_HOST_DEVICE void update_lower_index (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &)
 
static constexpr CK_TILE_HOST_DEVICE bool is_valid_upper_index_always_mapped_to_valid_lower_index ()
 
static constexpr CK_TILE_HOST_DEVICE bool is_known_at_compile_time ()
 
- Static Public Member Functions inherited from ck_tile::base_transform< 1, 1 >
static constexpr CK_TILE_HOST_DEVICE auto get_type_enum ()
 
static constexpr CK_TILE_HOST_DEVICE index_t get_num_of_lower_dimension ()
 
static constexpr CK_TILE_HOST_DEVICE index_t get_num_of_upper_dimension ()
 
static constexpr CK_TILE_HOST_DEVICE auto calculate_upper_dimension_safe_vector_length_strides (const LowVectorLengths &, const LowVectorStrides &)
 

Public Attributes

UpLengths up_lengths_
 
SliceBegin slice_begin_
 
SliceEnd slice_end_
 

Member Typedef Documentation

◆ LowerIndex

template<typename LowLength , typename SliceBegin , typename SliceEnd >
using ck_tile::slice< LowLength, SliceBegin, SliceEnd >::LowerIndex = multi_index<1>

◆ UpLengths

template<typename LowLength , typename SliceBegin , typename SliceEnd >
using ck_tile::slice< LowLength, SliceBegin, SliceEnd >::UpLengths = decltype(make_tuple(SliceEnd{} - SliceBegin{}))

◆ UpperIndex

template<typename LowLength , typename SliceBegin , typename SliceEnd >
using ck_tile::slice< LowLength, SliceBegin, SliceEnd >::UpperIndex = multi_index<1>

Constructor & Destructor Documentation

◆ slice() [1/2]

template<typename LowLength , typename SliceBegin , typename SliceEnd >
constexpr CK_TILE_HOST_DEVICE ck_tile::slice< LowLength, SliceBegin, SliceEnd >::slice ( )
constexprdefault

◆ slice() [2/2]

template<typename LowLength , typename SliceBegin , typename SliceEnd >
constexpr CK_TILE_HOST_DEVICE ck_tile::slice< LowLength, SliceBegin, SliceEnd >::slice ( const LowLength &  ,
const SliceBegin &  slice_begin,
const SliceEnd &  slice_end 
)
inlineconstexpr

Member Function Documentation

◆ calculate_lower_index()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
template<typename LowIdx , typename UpIdx >
constexpr CK_TILE_HOST_DEVICE void ck_tile::slice< LowLength, SliceBegin, SliceEnd >::calculate_lower_index ( LowIdx &  idx_low,
const UpIdx &  idx_up 
) const
inlineconstexpr

◆ get_upper_lengths()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
constexpr CK_TILE_HOST_DEVICE const auto& ck_tile::slice< LowLength, SliceBegin, SliceEnd >::get_upper_lengths ( ) const
inlineconstexpr

◆ is_known_at_compile_time()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
static constexpr CK_TILE_HOST_DEVICE bool ck_tile::slice< LowLength, SliceBegin, SliceEnd >::is_known_at_compile_time ( )
inlinestaticconstexpr

◆ is_valid_upper_index_always_mapped_to_valid_lower_index()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
static constexpr CK_TILE_HOST_DEVICE bool ck_tile::slice< LowLength, SliceBegin, SliceEnd >::is_valid_upper_index_always_mapped_to_valid_lower_index ( )
inlinestaticconstexpr

◆ is_valid_upper_index_mapped_to_valid_lower_index()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
template<typename UpIdx >
constexpr CK_TILE_HOST_DEVICE bool ck_tile::slice< LowLength, SliceBegin, SliceEnd >::is_valid_upper_index_mapped_to_valid_lower_index ( const UpIdx &  ) const
inlineconstexpr

◆ print()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
CK_TILE_HOST_DEVICE void ck_tile::slice< LowLength, SliceBegin, SliceEnd >::print ( ) const
inline

◆ update_lower_index()

template<typename LowLength , typename SliceBegin , typename SliceEnd >
template<typename LowIdxDiff , typename UpIdxDiff , typename LowIdx , typename UpIdx >
static CK_TILE_HOST_DEVICE void ck_tile::slice< LowLength, SliceBegin, SliceEnd >::update_lower_index ( LowIdxDiff &  idx_diff_low,
const UpIdxDiff &  idx_diff_up,
LowIdx &  idx_low,
const UpIdx &   
)
inlinestatic

Member Data Documentation

◆ slice_begin_

template<typename LowLength , typename SliceBegin , typename SliceEnd >
SliceBegin ck_tile::slice< LowLength, SliceBegin, SliceEnd >::slice_begin_

◆ slice_end_

template<typename LowLength , typename SliceBegin , typename SliceEnd >
SliceEnd ck_tile::slice< LowLength, SliceBegin, SliceEnd >::slice_end_

◆ up_lengths_

template<typename LowLength , typename SliceBegin , typename SliceEnd >
UpLengths ck_tile::slice< LowLength, SliceBegin, SliceEnd >::up_lengths_

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_tile/core/algorithm/coordinate_transform.hpp