Home
last modified time | relevance | path

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

/third_party/python/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()
/third_party/python/Lib/test/
Dtest_buffer.py264 def strides_from_shape(ndim, shape, itemsize, layout): function
334 sstrides = strides_from_shape(ndim, shape, 1, 'C')
335 dstrides = strides_from_shape(ndim, shape[::-1], 1, 'C')
1366 strides = strides_from_shape(ndim, shape, itemsize, 'C')
1388 strides = strides_from_shape(ndim, shape, itemsize, 'F')
2377 strides = strides_from_shape(ndim, shape, 1, 'C')
2424 strides = strides_from_shape(ndim, shape, 1, 'F')