Lines Matching refs:itemsize
116 ``product(shape) * itemsize``. For contiguous arrays, this is the length
130 .. c:member:: Py_ssize_t itemsize
137 be set to *NULL*, but :c:member:`~Py_buffer.itemsize` still has
141 ``product(shape) * itemsize == len`` still holds and the consumer
142 can use :c:member:`~Py_buffer.itemsize` to navigate the buffer.
146 :c:member:`~Py_buffer.itemsize` and assume ``itemsize == 1``.
171 ``shape[0] * ... * shape[ndim-1] * itemsize`` MUST be equal to
235 :c:member:`~Py_buffer.len`, :c:member:`~Py_buffer.itemsize`, :c:member:`~Py_buffer.ndim`.
347 The logical structure of NumPy-style arrays is defined by :c:member:`~Py_buffer.itemsize`,
351 interpreted as a scalar of size :c:member:`~Py_buffer.itemsize`. In that case,
368 def verify_structure(memlen, itemsize, ndim, shape, strides, offset):
375 if offset % itemsize:
377 if offset < 0 or offset+itemsize > memlen:
379 if any(v % itemsize for v in strides):
392 return 0 <= offset+imin and offset+imax+itemsize <= memlen
465 Return the implied :c:data:`~Py_buffer.itemsize` from :c:data:`~Py_buffer.format`.
485 …_FillContiguousStrides(int ndims, Py_ssize_t *shape, Py_ssize_t *strides, int itemsize, char order)