Lines Matching refs:ND_MAX_NDIM
40 #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()
2283 "memoryview_from_buffer: ndim is limited to %d", ND_MAX_NDIM); in ndarray_memoryview_from_buffer()
2310 Py_ssize_t indices[ND_MAX_NDIM]; in get_pointer()
2322 if (view.ndim > ND_MAX_NDIM) { in get_pointer()
2324 "get_pointer(): ndim > %d", ND_MAX_NDIM); in get_pointer()
2859 PyModule_AddIntMacro(m, ND_MAX_NDIM); in PyInit__testbuffer()