/third_party/python/Objects/ |
D | memoryobject.c | 256 (view->suboffsets && view->suboffsets[dest->ndim-1] >= 0) 261 assert(dest->ndim > 0 && src->ndim > 0); in last_dim_is_contiguous() 264 dest->strides[dest->ndim-1] == dest->itemsize && in last_dim_is_contiguous() 265 src->strides[src->ndim-1] == src->itemsize); in last_dim_is_contiguous() 299 if (dest->ndim != src->ndim) in equiv_shape() 302 for (i = 0; i < dest->ndim; i++) { in equiv_shape() 362 copy_rec(const Py_ssize_t *shape, Py_ssize_t ndim, Py_ssize_t itemsize, in copy_rec() argument 369 assert(ndim >= 1); in copy_rec() 371 if (ndim == 1) { in copy_rec() 383 copy_rec(shape+1, ndim-1, itemsize, in copy_rec() [all …]
|
D | abstract.c | 405 if (view->ndim <= 1) return 1; in _IsFortranContiguous() 412 for (i=0; i<view->ndim; i++) { in _IsFortranContiguous() 419 assert(view->ndim > 0); in _IsFortranContiguous() 423 for (i=0; i<view->ndim; i++) { in _IsFortranContiguous() 446 assert(view->ndim > 0); in _IsCContiguous() 450 for (i=view->ndim-1; i>=0; i--) { in _IsCContiguous() 482 for (i = 0; i < view->ndim; i++) { in PyBuffer_GetPointer() 587 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*(view->ndim)); in PyBuffer_FromContiguous() 592 for (k=0; k<view->ndim;k++) { in PyBuffer_FromContiguous() 611 addone(view->ndim, indices, view->shape); in PyBuffer_FromContiguous() [all …]
|
D | picklebufobject.c | 170 mv->view.ndim = 1; in picklebuf_raw()
|
/third_party/python/Modules/ |
D | _testbuffer.c | 154 base->ndim = 1; in ndbuf_new() 267 if (ndbuf->base.ndim == 0) in init_flags() 473 copy_rec(const Py_ssize_t *shape, Py_ssize_t ndim, Py_ssize_t itemsize, in copy_rec() argument 480 assert(ndim >= 1); in copy_rec() 482 if (ndim == 1) { in copy_rec() 506 copy_rec(shape+1, ndim-1, itemsize, in copy_rec() 520 dest->ndim != src->ndim) in cmp_structure() 523 for (i = 0; i < dest->ndim; i++) { in cmp_structure() 541 assert(dest->ndim > 0); in copy_buffer() 549 if ((dest->suboffsets && dest->suboffsets[dest->ndim-1] >= 0) || in copy_buffer() [all …]
|
D | hashlib.h | 22 if ((viewp)->ndim > 1) { \
|
D | _operator.c | 858 if (view_a.ndim > 1) { in _operator__compare_digest_impl() 869 if (view_b.ndim > 1) { in _operator__compare_digest_impl()
|
D | _hashopenssl.c | 2009 if (view_a.ndim > 1) { in _hashlib_compare_digest_impl() 2020 if (view_b.ndim > 1) { in _hashlib_compare_digest_impl()
|
D | arraymodule.c | 2581 view->ndim = 1; in array_buffer_getbuf()
|
D | _ssl.c | 4074 if (!PyBuffer_IsContiguous(&buf, 'C') || buf.ndim > 1) { in _ssl__SSLContext_load_verify_locations_impl()
|
/third_party/python/Lib/test/ |
D | test_buffer.py | 264 def strides_from_shape(ndim, shape, itemsize, layout): argument 267 if ndim == 0: 271 for i in range(ndim-2, -1, -1): 275 for i in range(1, ndim): 321 def getindex(ndim, ind, strides): argument 324 for i in range(ndim): 333 ndim = len(shape) 334 sstrides = strides_from_shape(ndim, shape, 1, 'C') 335 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C') 338 fr = getindex(ndim, ind, sstrides) [all …]
|
D | test_memoryview.py | 187 self.assertEqual(m.ndim, 1) 267 with check: m.ndim
|
/third_party/python/Doc/c-api/ |
D | buffer.rst | 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: [all …]
|
/third_party/python/Modules/_ctypes/ |
D | stgdict.c | 25 self->ndim = 0; in PyCStgDict_init() 60 res += self->ndim * sizeof(Py_ssize_t); in PyCStgDict_sizeof() 101 dst->shape = PyMem_Malloc(sizeof(Py_ssize_t) * src->ndim); in PyCStgDict_clone() 107 sizeof(Py_ssize_t) * src->ndim); in PyCStgDict_clone() 587 dict->ndim, dict->shape, stgdict->format, buf); in PyCStructUnionType_update_stgdict()
|
D | ctypes.h | 213 int ndim; member 352 extern char *_ctypes_alloc_format_string_with_shape(int ndim,
|
D | _ctypes.c | 364 _ctypes_alloc_format_string_with_shape(int ndim, const Py_ssize_t *shape, in _ctypes_alloc_format_string_with_shape() argument 373 prefix_len = 32 * ndim + 3; in _ctypes_alloc_format_string_with_shape() 384 if (ndim > 0) { in _ctypes_alloc_format_string_with_shape() 387 for (k = 0; k < ndim; ++k) { in _ctypes_alloc_format_string_with_shape() 388 if (k < ndim-1) { in _ctypes_alloc_format_string_with_shape() 1101 itemdict->ndim, itemdict->shape, "&", current_format); in PyCPointerType_new() 1569 stgdict->ndim = itemdict->ndim + 1; in PyCArrayType_new() 1570 stgdict->shape = PyMem_Malloc(sizeof(Py_ssize_t) * stgdict->ndim); in PyCArrayType_new() 1576 if (stgdict->ndim > 1) { in PyCArrayType_new() 1578 sizeof(Py_ssize_t) * (stgdict->ndim - 1)); in PyCArrayType_new() [all …]
|
D | callproc.c | 1981 shape = PyTuple_New(dict->ndim); in buffer_info() 1984 for (i = 0; i < (int)dict->ndim; ++i) in buffer_info() 1991 return Py_BuildValue("siN", dict->format, dict->ndim, shape); in buffer_info()
|
/third_party/python/Lib/ |
D | base64.py | 542 if m.ndim != 1: 544 (m.ndim, s.__class__.__name__))
|
/third_party/python/Include/cpython/ |
D | object.h | 56 int ndim; member
|
/third_party/python/Doc/library/ |
D | stdtypes.rst | 3666 If ``view.ndim = 0``, the length is 1. If ``view.ndim = 1``, the length 3690 can be indexed with tuples of exactly *ndim* integers where *ndim* is 4077 .. attribute:: ndim 4084 A tuple of integers the length of :attr:`ndim` giving the shape of the 4088 An empty tuple instead of ``None`` when ndim = 0. 4092 A tuple of integers the length of :attr:`ndim` giving the size in bytes to 4096 An empty tuple instead of ``None`` when ndim = 0.
|
/third_party/flutter/skia/third_party/externals/icu/source/data/unit/ |
D | sq.txt | 164 west{"{0} Perëndim"}
|
/third_party/skia/third_party/externals/icu/source/data/unit/ |
D | sq.txt | 231 west{"{0} Perëndim"}
|
/third_party/icu/icu4c/source/data/unit/ |
D | sq.txt | 231 west{"{0} Perëndim"}
|