replicate< UpLengths > Struct Template Reference

replicate&lt; UpLengths &gt; Struct Template Reference#

Composable Kernel: ck_tile::replicate< UpLengths > Struct Template Reference

#include <coordinate_transform.hpp>

Inheritance diagram for ck_tile::replicate< UpLengths >:
ck_tile::base_transform< 0, UpLengths::size()>

Public Member Functions

CK_TILE_HOST_DEVICE constexpr replicate ()=default
CK_TILE_HOST_DEVICE constexpr replicate (const UpLengths &up_lengths)
CK_TILE_HOST_DEVICE constexpr auto get_upper_lengths () const
template<typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE constexpr void calculate_lower_index (LowIdx &, const UpIdx &) const

Static Public Member Functions

template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
static CK_TILE_HOST_DEVICE void update_lower_index (LowIdxDiff &, const UpIdxDiff &, LowIdx &, const UpIdx &)
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< 0, UpLengths::size()>
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_

Static Public Attributes

static constexpr index_t NDimUp = UpLengths::size()

Constructor & Destructor Documentation

◆ replicate() [1/2]

template<typename UpLengths>
CK_TILE_HOST_DEVICE constexpr ck_tile::replicate< UpLengths >::replicate ( )
constexprdefault

◆ replicate() [2/2]

template<typename UpLengths>
CK_TILE_HOST_DEVICE constexpr ck_tile::replicate< UpLengths >::replicate ( const UpLengths & up_lengths)
inlineconstexpr

Member Function Documentation

◆ calculate_lower_index()

template<typename UpLengths>
template<typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE constexpr void ck_tile::replicate< UpLengths >::calculate_lower_index ( LowIdx & ,
const UpIdx &  ) const
inlineconstexpr

◆ get_upper_lengths()

template<typename UpLengths>
CK_TILE_HOST_DEVICE constexpr auto ck_tile::replicate< UpLengths >::get_upper_lengths ( ) const
inlineconstexpr

◆ is_known_at_compile_time()

template<typename UpLengths>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::replicate< UpLengths >::is_known_at_compile_time ( )
inlinestaticconstexpr

◆ is_valid_upper_index_always_mapped_to_valid_lower_index()

template<typename UpLengths>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::replicate< UpLengths >::is_valid_upper_index_always_mapped_to_valid_lower_index ( )
inlinestaticconstexpr

◆ is_valid_upper_index_mapped_to_valid_lower_index()

template<typename UpLengths>
template<typename UpIdx>
CK_TILE_HOST_DEVICE constexpr bool ck_tile::replicate< UpLengths >::is_valid_upper_index_mapped_to_valid_lower_index ( const UpIdx & )
inlinestaticconstexpr

◆ update_lower_index()

template<typename UpLengths>
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx>
CK_TILE_HOST_DEVICE void ck_tile::replicate< UpLengths >::update_lower_index ( LowIdxDiff & ,
const UpIdxDiff & ,
LowIdx & ,
const UpIdx &  )
inlinestatic

Member Data Documentation

◆ NDimUp

template<typename UpLengths>
index_t ck_tile::replicate< UpLengths >::NDimUp = UpLengths::size()
staticconstexpr

◆ up_lengths_

template<typename UpLengths>
UpLengths ck_tile::replicate< UpLengths >::up_lengths_

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