9 if (lenShape == 0
U || lenShape >= CHAR_BIT *
sizeof(
unsigned long))
12 for (
unsigned j = 0;
j < lenShape; ++
j)
15 "In npstat::ArrayNDScanner::initialize: " 16 "number of scans must be positive in each dimension");
22 for (
unsigned j =
dim_ - 1;
j > 0; --
j)
28 if (indexBufferLen <
dim_)
30 "In npstat::ArrayNDScanner::getIndex: " 31 "insufficient length of the output buffer");
37 for (
unsigned i = 0;
i <
dim_; ++
i) {
39 ix[
i] =
static_cast<unsigned>(
idx);
void initialize(const unsigned *shape, unsigned lenShape)
Exceptions for the npstat namespace.
unsigned long strides_[CHAR_BIT *sizeof(unsigned long)]
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
void getIndex(unsigned *index, unsigned indexBufferLen) const
Iteration over indices of a multidimensional array.