Lines Matching refs:ndim
11 if (buf->ndim == 0) in get_shape0()
23 if (src->ndim == 1 && src->shape != NULL) { in dup_buffer()
27 if (src->ndim == 1 && src->strides != NULL) { in dup_buffer()
181 if (view->ndim > PY_SSIZE_T_MAX / sizeof(Py_ssize_t)) { in _indirect_copy_nd()
186 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view->ndim); in _indirect_copy_nd()
191 for (k=0; k<view->ndim;k++) { in _indirect_copy_nd()
196 for (k=0; k<view->ndim; k++) { in _indirect_copy_nd()
206 func(view->ndim, indices, view->shape); in _indirect_copy_nd()
297 _strided_copy_nd(dest, view->buf, view->ndim, view->shape, in PyMemoryView_GetContiguous()
366 return _IntTupleFromSsizet(self->view.ndim, self->view.shape); in memory_shape_get()
372 return _IntTupleFromSsizet(self->view.ndim, self->view.strides); in memory_strides_get()
378 return _IntTupleFromSsizet(self->view.ndim, self->view.suboffsets); in memory_suboffsets_get()
390 return PyLong_FromLong(self->view.ndim); in memory_ndim_get()
436 if (view->ndim != 1) { in memory_tolist()
516 if (view->ndim == 0) { in memory_item()
521 if (view->ndim == 1) { in memory_item()
565 if (view->ndim == 0) { in memory_subscript()
593 if (step == 1 && view->ndim == 1) { in memory_subscript()
645 if (view->ndim != 1) { in memory_ass_sub()