alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::concepts::IndexVec Concept Reference

Check whether the specified type is a multidimensional index. More...

#include <IndexVec.hpp>

Concept definition

template<typename T, typename T_IndexType, uint32_t T_dim>
concept IndexVec = requires {
}
Check whether the specified type is a multidimensional index.
Definition IndexVec.hpp:22
Concept to check if a type is a vector.
Definition Vec.hpp:54
constexpr bool isLosslesslyConvertible_v
Definition trait.hpp:122

Detailed Description

Check whether the specified type is a multidimensional index.

The type must fulfill alpaka::concepts::Vector, and its type must be convertible to an expected index type without loss of precision.

If you observe that nvcc segfaults during compile, and you used this concept in the function signature, replace it with a static assert inside the function body. see SimdPtr::operator[]().

Template Parameters
T_IndexTypeexpected index type
T_dimexpected dimension

Definition at line 22 of file IndexVec.hpp.