Lines Matching refs:index
923 the maximum index for the nth dimension.
1061 /* imin: minimum index of the input array relative to ndbuf->offset.
1555 ptr_from_index(Py_buffer *base, Py_ssize_t index)
1567 if (index < 0) {
1568 index += nitems;
1570 if (index < 0 || index >= nitems) {
1571 PyErr_SetString(PyExc_IndexError, "index out of bounds");
1578 ptr += base->itemsize * index;
1580 ptr += base->strides[0] * index;
1588 ndarray_item(NDArrayObject *self, Py_ssize_t index)
1599 ptr = ptr_from_index(base, index);
1675 getting the index of the nth pointer, dereference it and then add a
1800 Py_ssize_t index = PyLong_AsSsize_t(key);
1801 if (index == -1 && PyErr_Occurred())
1803 return ndarray_item(self, index);
1856 "cannot index memory using \"%.200s\"",
1871 Py_ssize_t index;
1895 index = PyLong_AsSsize_t(key);
1896 if (index == -1 && PyErr_Occurred())
1899 ptr = ptr_from_index(dest, index);
2340 "get_pointer(): invalid index %zd at position %zd",