Lines Matching defs:dim
1288 PyObject *strides = NULL; /* number of bytes to the next elt in each dim */
1354 PyObject *strides = NULL; /* number of bytes to the next elt in each dim */
1712 init_slice(Py_buffer *base, PyObject *key, int dim)
1719 slicelength = PySlice_AdjustIndices(base->shape[dim], &start, &stop, step);
1722 if (base->suboffsets == NULL || dim == 0) {
1724 base->buf = (char *)base->buf + base->strides[dim] * start;
1727 Py_ssize_t n = dim-1;
1732 base->suboffsets[n] = base->suboffsets[n] + base->strides[dim] * start;
1734 base->shape[dim] = slicelength;
1735 base->strides[dim] = base->strides[dim] * step;