Home
last modified time | relevance | path

Searched refs:ndim (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Objects/
Dmemoryobject.c256 (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 …]
Dabstract.c405 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 …]
Dpicklebufobject.c170 mv->view.ndim = 1; in picklebuf_raw()
/third_party/python/Modules/
D_testbuffer.c154 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 …]
Dhashlib.h22 if ((viewp)->ndim > 1) { \
D_operator.c858 if (view_a.ndim > 1) { in _operator__compare_digest_impl()
869 if (view_b.ndim > 1) { in _operator__compare_digest_impl()
D_hashopenssl.c2009 if (view_a.ndim > 1) { in _hashlib_compare_digest_impl()
2020 if (view_b.ndim > 1) { in _hashlib_compare_digest_impl()
Darraymodule.c2581 view->ndim = 1; in array_buffer_getbuf()
D_ssl.c4074 if (!PyBuffer_IsContiguous(&buf, 'C') || buf.ndim > 1) { in _ssl__SSLContext_load_verify_locations_impl()
/third_party/python/Lib/test/
Dtest_buffer.py264 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 …]
Dtest_memoryview.py187 self.assertEqual(m.ndim, 1)
267 with check: m.ndim
/third_party/python/Doc/c-api/
Dbuffer.rst156 .. 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/
Dstgdict.c25 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()
Dctypes.h213 int ndim; member
352 extern char *_ctypes_alloc_format_string_with_shape(int ndim,
D_ctypes.c364 _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 …]
Dcallproc.c1981 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/
Dbase64.py542 if m.ndim != 1:
544 (m.ndim, s.__class__.__name__))
/third_party/python/Include/cpython/
Dobject.h56 int ndim; member
/third_party/python/Doc/library/
Dstdtypes.rst3666 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/
Dsq.txt164 west{"{0} Perëndim"}
/third_party/skia/third_party/externals/icu/source/data/unit/
Dsq.txt231 west{"{0} Perëndim"}
/third_party/icu/icu4c/source/data/unit/
Dsq.txt231 west{"{0} Perëndim"}