Home
last modified time | relevance | path

Searched refs:strides_from_shape (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Modules/
D_testbuffer.c282 static Py_ssize_t *strides_from_shape(const ndbuf_t *, int flags);
690 strides = strides_from_shape(nd->head, 0); in ndarray_as_list()
887 strides_from_shape(const ndbuf_t *ndbuf, int flags) in strides_from_shape() function
1146 base->strides = strides_from_shape(ndbuf, ndbuf->flags); in init_structure()
2180 dest.strides = strides_from_shape(ndbuf, 0); in ndarray_tobytes()
/external/python/cpython3/Lib/test/
Dtest_buffer.py263 def strides_from_shape(ndim, shape, itemsize, layout): function
333 sstrides = strides_from_shape(ndim, shape, 1, 'C')
334 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C')
1365 strides = strides_from_shape(ndim, shape, itemsize, 'C')
1387 strides = strides_from_shape(ndim, shape, itemsize, 'F')
2376 strides = strides_from_shape(ndim, shape, 1, 'C')
2423 strides = strides_from_shape(ndim, shape, 1, 'F')