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.py256 def strides_from_shape(ndim, shape, itemsize, layout): function
326 sstrides = strides_from_shape(ndim, shape, 1, 'C')
327 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C')
1339 strides = strides_from_shape(ndim, shape, itemsize, 'C')
1361 strides = strides_from_shape(ndim, shape, itemsize, 'F')
2350 strides = strides_from_shape(ndim, shape, 1, 'C')
2397 strides = strides_from_shape(ndim, shape, 1, 'F')