Home
last modified time | relevance | path

Searched refs:dstrides (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Objects/
Dmemoryobject.c323 char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, in copy_base() argument
341 for (i=0, p=mem; i < shape[0]; p+=itemsize, dptr+=dstrides[0], i++) { in copy_base()
353 char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, in copy_rec() argument
363 dptr, dstrides, dsuboffsets, in copy_rec()
369 for (i = 0; i < shape[0]; dptr+=dstrides[0], sptr+=sstrides[0], i++) { in copy_rec()
374 xdptr, dstrides+1, dsuboffsets ? dsuboffsets+1 : NULL, in copy_rec()
/external/python/cpython3/Modules/
D_testbuffer.c474 char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, in copy_rec() argument
484 dstrides[0] == itemsize && sstrides[0] == itemsize) { in copy_rec()
494 for (i=0, p=mem; i<shape[0]; p+=itemsize, dptr+=dstrides[0], i++) { in copy_rec()
502 for (i = 0; i < shape[0]; dptr+=dstrides[0], sptr+=sstrides[0], i++) { in copy_rec()
507 xdptr, dstrides+1, dsuboffsets ? dsuboffsets+1 : NULL, in copy_rec()
/external/python/cpython3/Lib/test/
Dtest_buffer.py327 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C')
331 to = getindex(ndim, ind[::-1], dstrides)