alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
IndexVec.hpp
Go to the documentation of this file.
1/* Copyright 2025 Simeon Ehrig
2 * SPDX-License-Identifier: MPL-2.0
3 */
4
5#pragma once
6#include "alpaka/Vec.hpp"
7
8namespace alpaka::concepts
9{
10 /** Check whether the specified type is a multidimensional index.
11 *
12 * @details The type must fulfill alpaka::concepts::Vector, and its type must be convertible to an expected index
13 * type without loss of precision.
14 *
15 * @tparam T_IndexType expected index type
16 * @tparam T_Dim expected dimension
17 */
18 template<typename T, typename T_IndexType, auto T_Dim>
23} // namespace alpaka::concepts
Check whether the specified type is a multidimensional index.
Definition IndexVec.hpp:19
Concept to check if a type is a vector.
Definition Vec.hpp:53
constexpr bool isLosslesslyConvertible_v
Definition trait.hpp:122