7template <
typename IdxT,
int NIDX>
9 const array<const device IdxT*, NIDX>
buffers;
15template <
typename IdxT>
17 if (is_unsigned_v<IdxT>) {
20 return (idx < 0) ? idx + size : idx;
METAL_FUNC size_t offset_neg_idx(IdxT idx, size_t size)
Definition indexing.h:16
const constant int * shapes
Definition indexing.h:10
const int ndim
Definition indexing.h:12
const constant size_t * strides
Definition indexing.h:11
const array< const device IdxT *, NIDX > buffers
Definition indexing.h:9