47 GenericID(sycl::id<2> sycl_id) :
c(sycl_id[0]),
r(sycl_id[1]) {}
52 GenericID(sycl::range<2> sycl_range) :
c(sycl_range[0]),
r(sycl_range[1]) {}
58 return this->
c == other.
c && this->
r == other.
r;
A generic, two-dimensional index.
Definition GenericID.hpp:32
GenericID()
Create a new index with undefined contents.
Definition GenericID.hpp:37
T c
The column index.
Definition GenericID.hpp:64
GenericID(sycl::id< 2 > sycl_id)
Convert the SYCL ID.
Definition GenericID.hpp:47
GenericID(sycl::range< 2 > sycl_range)
Convert the SYCl range.
Definition GenericID.hpp:52
GenericID(T column, T row)
Create a new index with the given column and row indices.
Definition GenericID.hpp:42
bool operator==(GenericID const &other) const
Test if the other generic ID has equivalent coordinates to this ID.
Definition GenericID.hpp:57
T r
The row index.
Definition GenericID.hpp:69
Definition AccessorSubscript.hpp:24
GenericID< uindex_t > UID
An unsigned, two-dimensional index.
Definition GenericID.hpp:80
GenericID< index_t > ID
A signed, two-dimensional index.
Definition GenericID.hpp:75