Home
last modified time | relevance | path

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

/third_party/python/Objects/
Dmemoryobject.c333 char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, in copy_base() argument
351 for (i=0, p=mem; i < shape[0]; p+=itemsize, dptr+=dstrides[0], i++) { in copy_base()
363 char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, in copy_rec() argument
373 dptr, dstrides, dsuboffsets, in copy_rec()
379 for (i = 0; i < shape[0]; dptr+=dstrides[0], sptr+=sstrides[0], i++) { in copy_rec()
384 xdptr, dstrides+1, dsuboffsets ? dsuboffsets+1 : NULL, in copy_rec()
/third_party/python/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()
/third_party/python/Lib/test/
Dtest_buffer.py335 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C')
339 to = getindex(ndim, ind[::-1], dstrides)