Lines Matching refs:ndim
156 .. c:member:: int ndim
169 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`
171 ``shape[0] * ... * shape[ndim-1] * itemsize`` MUST be equal to
182 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`
194 An array of :c:type:`Py_ssize_t` of length :c:member:`~Py_buffer.ndim`.
235 :c:member:`~Py_buffer.len`, :c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`.
348 :c:member:`~Py_buffer.ndim`, :c:member:`~Py_buffer.shape` and :c:member:`~Py_buffer.strides`.
350 If ``ndim == 0``, the memory location pointed to by :c:member:`~Py_buffer.buf` is
370 def verify_structure(memlen, itemsize, ndim, shape, strides, offset):
384 if ndim <= 0:
385 return ndim == 0 and not shape and not strides
389 imin = sum(strides[j]*(shape[j]-1) for j in range(ndim)
391 imax = sum(strides[j]*(shape[j]-1) for j in range(ndim)
413 void *get_item_pointer(int ndim, void *buf, Py_ssize_t *strides,
417 for (i = 0; i < ndim; i++) {
483 *indices* must point to an array of ``view->ndim`` indices.