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