UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference

UnMerge&lt; UpLengths, Use24BitIntegerCalculation &gt; Struct Template Reference#

Composable Kernel: ck::UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference
ck::UnMerge< UpLengths, Use24BitIntegerCalculation > Struct Template Reference

#include <multi_index_transform.hpp>

Public Types

using LowerIndex = MultiIndex<1>
using UpperIndex = MultiIndex<NDimUp>
using UpLengthsScan

Public Member Functions

__host__ __device__ constexpr UnMerge ()=default
__host__ __device__ constexpr UnMerge (const UpLengths &up_lengths)
__host__ __device__ constexpr const auto & GetUpperLengths () const
template<typename LowIdx, typename UpIdx>
__host__ __device__ constexpr void CalculateLowerIndex (LowIdx &idx_low, const UpIdx &idx_up) const
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx, index_t Hack>
__host__ __device__ void UpdateLowerIndex (LowIdxDiff &idx_diff_low, const UpIdxDiff &idx_diff_up, LowIdx &idx_low, const UpIdx &, Number< Hack >) const
__host__ __device__ void Print () const

Static Public Member Functions

__host__ static __device__ constexpr index_t GetNumOfLowerDimension ()
__host__ static __device__ constexpr index_t GetNumOfUpperDimension ()
__host__ static __device__ constexpr bool IsLinearTransform ()
__host__ static __device__ constexpr bool IsValidUpperIndexAlwaysMappedToValidLowerIndex ()
template<typename UpIdx>
__host__ static __device__ constexpr bool IsValidUpperIndexMappedToValidLowerIndex (const UpIdx &)
__host__ static __device__ constexpr bool IsKnownAtCompileTime ()

Public Attributes

UpLengths up_lengths_
UpLengthsScan up_lengths_scan_

Static Public Attributes

static constexpr index_t NDimUp = UpLengths::Size()

Member Typedef Documentation

◆ LowerIndex

template<typename UpLengths, bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::LowerIndex = MultiIndex<1>

◆ UpLengthsScan

template<typename UpLengths, bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpLengthsScan
Initial value:
integral_constant< index_t, N > Number
Definition number.hpp:12
__host__ __device__ constexpr auto container_reverse_exclusive_scan(const Array< TData, NSize > &x, Reduce f, TData init)
Definition utility/container_helper.hpp:213
Definition utility/math.hpp:34

◆ UpperIndex

template<typename UpLengths, bool Use24BitIntegerCalculation>
using ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpperIndex = MultiIndex<NDimUp>

Constructor & Destructor Documentation

◆ UnMerge() [1/2]

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ __device__ constexpr ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UnMerge ( )
constexprdefault

◆ UnMerge() [2/2]

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ __device__ constexpr ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UnMerge ( const UpLengths & up_lengths)
inlineconstexpr

Member Function Documentation

◆ CalculateLowerIndex()

template<typename UpLengths, bool Use24BitIntegerCalculation>
template<typename LowIdx, typename UpIdx>
__host__ __device__ constexpr void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::CalculateLowerIndex ( LowIdx & idx_low,
const UpIdx & idx_up ) const
inlineconstexpr

◆ GetNumOfLowerDimension()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ static __device__ constexpr index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetNumOfLowerDimension ( )
inlinestaticconstexpr

◆ GetNumOfUpperDimension()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ static __device__ constexpr index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetNumOfUpperDimension ( )
inlinestaticconstexpr

◆ GetUpperLengths()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ __device__ constexpr const auto & ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::GetUpperLengths ( ) const
inlineconstexpr

◆ IsKnownAtCompileTime()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ static __device__ constexpr bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsKnownAtCompileTime ( )
inlinestaticconstexpr

◆ IsLinearTransform()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ static __device__ constexpr bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsLinearTransform ( )
inlinestaticconstexpr

◆ IsValidUpperIndexAlwaysMappedToValidLowerIndex()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ static __device__ constexpr bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsValidUpperIndexAlwaysMappedToValidLowerIndex ( )
inlinestaticconstexpr

◆ IsValidUpperIndexMappedToValidLowerIndex()

template<typename UpLengths, bool Use24BitIntegerCalculation>
template<typename UpIdx>
__host__ static __device__ constexpr bool ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::IsValidUpperIndexMappedToValidLowerIndex ( const UpIdx & )
inlinestaticconstexpr

◆ Print()

template<typename UpLengths, bool Use24BitIntegerCalculation>
__host__ __device__ void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::Print ( ) const
inline

◆ UpdateLowerIndex()

template<typename UpLengths, bool Use24BitIntegerCalculation>
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx, index_t Hack>
__host__ __device__ void ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::UpdateLowerIndex ( LowIdxDiff & idx_diff_low,
const UpIdxDiff & idx_diff_up,
LowIdx & idx_low,
const UpIdx & ,
Number< Hack >  ) const
inline

Member Data Documentation

◆ NDimUp

template<typename UpLengths, bool Use24BitIntegerCalculation>
index_t ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::NDimUp = UpLengths::Size()
staticconstexpr

◆ up_lengths_

template<typename UpLengths, bool Use24BitIntegerCalculation>
UpLengths ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::up_lengths_

◆ up_lengths_scan_

template<typename UpLengths, bool Use24BitIntegerCalculation>
UpLengthsScan ck::UnMerge< UpLengths, Use24BitIntegerCalculation >::up_lengths_scan_

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