static_tensor.hpp Source File#
static_tensor.hpp
Go to the documentation of this file.
__host__ __device__ constexpr auto integer_divide_ceil(X x, Y y)
Definition utility/math.hpp:72
Definition ck.hpp:268
__host__ __device__ constexpr auto make_static_tensor(TensorDesc)
Definition static_tensor.hpp:255
__host__ __device__ constexpr auto to_multi_index(const T &x)
Definition array_multi_index.hpp:28
__host__ __device__ constexpr bool coordinate_has_valid_offset(const TensorDesc &tensor_desc, const TensorCoord &coord)
Definition tensor_description/tensor_descriptor.hpp:587
__host__ __device__ constexpr auto make_tensor_coordinate(const TensorDesc &tensor_desc, const VisibleIndex &idx_visible)
Definition tensor_description/tensor_descriptor.hpp:407
Definition static_buffer.hpp:16
Definition static_buffer.hpp:75
Definition static_tensor.hpp:16
__host__ __device__ constexpr StaticTensor(T invalid_element_value)
Definition static_tensor.hpp:23
static constexpr T zero_scalar_value_
Definition static_tensor.hpp:80
static constexpr index_t element_space_size_
Definition static_tensor.hpp:19
__host__ __device__ constexpr const T & operator[](Idx) const
Definition static_tensor.hpp:32
__host__ __device__ constexpr T & operator()(Idx)
Definition static_tensor.hpp:61
const T invalid_element_scalar_value_
Definition static_tensor.hpp:81
__host__ __device__ constexpr StaticTensor()
Definition static_tensor.hpp:21
StaticBuffer< AddressSpace, T, element_space_size_, true > data_
Definition static_tensor.hpp:79
static constexpr index_t num_of_vector_
Definition static_tensor.hpp:98
__host__ __device__ constexpr const S & operator[](Idx) const
Definition static_tensor.hpp:118
__host__ __device__ constexpr S & operator()(Idx)
Definition static_tensor.hpp:148
vector_type< S, ScalarPerVector > V
Definition static_tensor.hpp:101
const DstData invalid_element_scalar_value_
Definition static_tensor.hpp:247
__host__ __device__ constexpr void SetAsType(Idx, X x)
Definition static_tensor.hpp:207
DstData ignored_element_scalar_
Definition static_tensor.hpp:248
static constexpr DstData zero_scalar_value_
Definition static_tensor.hpp:246
__host__ __device__ constexpr StaticTensorTupleOfVectorBuffer(S invalid_element_value)
Definition static_tensor.hpp:108
StaticBufferTupleOfVector< AddressSpace, DstData, num_of_vector_, ScalarPerVector, true > data_
Definition static_tensor.hpp:245
__host__ __device__ constexpr V & GetVectorTypeReference(Idx)
Definition static_tensor.hpp:236
__host__ __device__ constexpr const V & GetVectorTypeReference(Idx) const
Definition static_tensor.hpp:224
static constexpr index_t element_space_size_
Definition static_tensor.hpp:96
static constexpr auto desc_
Definition static_tensor.hpp:94
__host__ __device__ constexpr X GetAsType(Idx) const
Definition static_tensor.hpp:173
static constexpr index_t ndim_
Definition static_tensor.hpp:95
__host__ __device__ constexpr StaticTensorTupleOfVectorBuffer()
Definition static_tensor.hpp:103
Definition is_known_at_compile_time.hpp:14
Definition dtype_vector.hpp:10