Lines Matching refs:ndim
377 if (view->ndim == 0) return 1; in _IsFortranContiguous()
378 if (view->strides == NULL) return (view->ndim == 1); in _IsFortranContiguous()
381 if (view->ndim == 1) return (view->shape[0] == 1 || in _IsFortranContiguous()
383 for (i=0; i<view->ndim; i++) { in _IsFortranContiguous()
398 if (view->ndim == 0) return 1; in _IsCContiguous()
402 if (view->ndim == 1) return (view->shape[0] == 1 || in _IsCContiguous()
404 for (i=view->ndim-1; i>=0; i--) { in _IsCContiguous()
435 for (i = 0; i < view->ndim; i++) { in PyBuffer_GetPointer()
503 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*(view->ndim)); in PyBuffer_ToContiguous()
508 for (k=0; k<view->ndim;k++) { in PyBuffer_ToContiguous()
527 addone(view->ndim, indices, view->shape); in PyBuffer_ToContiguous()
554 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*(view->ndim)); in PyBuffer_FromContiguous()
559 for (k=0; k<view->ndim;k++) { in PyBuffer_FromContiguous()
578 addone(view->ndim, indices, view->shape); in PyBuffer_FromContiguous()
628 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData()
635 for (k=0; k<view_src.ndim;k++) { in PyObject_CopyData()
639 for (k=0; k<view_src.ndim; k++) { in PyObject_CopyData()
644 _Py_add_one_to_index_C(view_src.ndim, indices, view_src.shape); in PyObject_CopyData()
701 view->ndim = 1; in PyBuffer_FillInfo()