Home
last modified time | relevance | path

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

/external/python/cpython3/Modules/
D_testbuffer.c40 #define ND_MAX_NDIM (2 * PyBUF_MAX_NDIM) macro
1188 if (ndim > ND_MAX_NDIM) { in init_ndbuf()
1190 "ndim must not exceed %d", ND_MAX_NDIM); in init_ndbuf()
2237 static char format[ND_MAX_NDIM+1]; in ndarray_memoryview_from_buffer()
2238 static Py_ssize_t shape[ND_MAX_NDIM]; in ndarray_memoryview_from_buffer()
2239 static Py_ssize_t strides[ND_MAX_NDIM]; in ndarray_memoryview_from_buffer()
2240 static Py_ssize_t suboffsets[ND_MAX_NDIM]; in ndarray_memoryview_from_buffer()
2272 if (strlen(view->format) > ND_MAX_NDIM) { in ndarray_memoryview_from_buffer()
2275 ND_MAX_NDIM); in ndarray_memoryview_from_buffer()
2281 if (view->ndim > ND_MAX_NDIM) { in ndarray_memoryview_from_buffer()
[all …]
/external/python/cpython3/Lib/test/
Dtest_buffer.py1159 n = ND_MAX_NDIM+1
1257 n = ND_MAX_NDIM