Vectorize< VectorSize, UpLength > Struct Template Reference

Vectorize&lt; VectorSize, UpLength &gt; Struct Template Reference#

Composable Kernel: ck::Vectorize< VectorSize, UpLength > Struct Template Reference
ck::Vectorize< VectorSize, UpLength > Struct Template Reference

#include <multi_index_transform.hpp>

Public Types

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

Public Member Functions

__host__ __device__ constexpr Vectorize ()=default
__host__ __device__ constexpr Vectorize (const VectorSize &vector_size, const UpLength &up_length)
__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_
VectorSize vector_size_

Member Typedef Documentation

◆ LowerIndex

template<typename VectorSize, typename UpLength>
using ck::Vectorize< VectorSize, UpLength >::LowerIndex = MultiIndex<1>

◆ UpLengths

template<typename VectorSize, typename UpLength>
using ck::Vectorize< VectorSize, UpLength >::UpLengths = decltype(make_tuple(UpLength{}))

◆ UpperIndex

template<typename VectorSize, typename UpLength>
using ck::Vectorize< VectorSize, UpLength >::UpperIndex = MultiIndex<1>

Constructor & Destructor Documentation

◆ Vectorize() [1/2]

template<typename VectorSize, typename UpLength>
__host__ __device__ constexpr ck::Vectorize< VectorSize, UpLength >::Vectorize ( )
constexprdefault

◆ Vectorize() [2/2]

template<typename VectorSize, typename UpLength>
__host__ __device__ constexpr ck::Vectorize< VectorSize, UpLength >::Vectorize ( const VectorSize & vector_size,
const UpLength & up_length )
inlineconstexpr

Member Function Documentation

◆ CalculateLowerIndex()

template<typename VectorSize, typename UpLength>
template<typename LowIdx, typename UpIdx>
__host__ __device__ constexpr void ck::Vectorize< VectorSize, UpLength >::CalculateLowerIndex ( LowIdx & idx_low,
const UpIdx & idx_up ) const
inlineconstexpr

◆ GetNumOfLowerDimension()

template<typename VectorSize, typename UpLength>
__host__ static __device__ constexpr index_t ck::Vectorize< VectorSize, UpLength >::GetNumOfLowerDimension ( )
inlinestaticconstexpr

◆ GetNumOfUpperDimension()

template<typename VectorSize, typename UpLength>
__host__ static __device__ constexpr index_t ck::Vectorize< VectorSize, UpLength >::GetNumOfUpperDimension ( )
inlinestaticconstexpr

◆ GetUpperLengths()

template<typename VectorSize, typename UpLength>
__host__ __device__ constexpr const auto & ck::Vectorize< VectorSize, UpLength >::GetUpperLengths ( ) const
inlineconstexpr

◆ IsKnownAtCompileTime()

template<typename VectorSize, typename UpLength>
__host__ static __device__ constexpr bool ck::Vectorize< VectorSize, UpLength >::IsKnownAtCompileTime ( )
inlinestaticconstexpr

◆ IsLinearTransform()

template<typename VectorSize, typename UpLength>
__host__ static __device__ constexpr bool ck::Vectorize< VectorSize, UpLength >::IsLinearTransform ( )
inlinestaticconstexpr

◆ IsValidUpperIndexAlwaysMappedToValidLowerIndex()

template<typename VectorSize, typename UpLength>
__host__ static __device__ constexpr bool ck::Vectorize< VectorSize, UpLength >::IsValidUpperIndexAlwaysMappedToValidLowerIndex ( )
inlinestaticconstexpr

◆ IsValidUpperIndexMappedToValidLowerIndex()

template<typename VectorSize, typename UpLength>
template<typename UpIdx>
__host__ static __device__ constexpr bool ck::Vectorize< VectorSize, UpLength >::IsValidUpperIndexMappedToValidLowerIndex ( const UpIdx & )
inlinestaticconstexpr

◆ Print()

template<typename VectorSize, typename UpLength>
__host__ __device__ void ck::Vectorize< VectorSize, UpLength >::Print ( ) const
inline

◆ UpdateLowerIndex()

template<typename VectorSize, typename UpLength>
template<typename LowIdxDiff, typename UpIdxDiff, typename LowIdx, typename UpIdx, index_t Hack>
__host__ __device__ void ck::Vectorize< VectorSize, UpLength >::UpdateLowerIndex ( LowIdxDiff & idx_diff_low,
const UpIdxDiff & idx_diff_up,
LowIdx & idx_low,
const UpIdx & ,
Number< Hack >  ) const
inline

Member Data Documentation

◆ up_lengths_

template<typename VectorSize, typename UpLength>
UpLengths ck::Vectorize< VectorSize, UpLength >::up_lengths_

◆ vector_size_

template<typename VectorSize, typename UpLength>
VectorSize ck::Vectorize< VectorSize, UpLength >::vector_size_

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