Lines Matching refs:ndim
405 if (view->ndim <= 1) return 1; in _IsFortranContiguous()
412 for (i=0; i<view->ndim; i++) { in _IsFortranContiguous()
419 assert(view->ndim > 0); in _IsFortranContiguous()
423 for (i=0; i<view->ndim; i++) { in _IsFortranContiguous()
446 assert(view->ndim > 0); in _IsCContiguous()
450 for (i=view->ndim-1; i>=0; i--) { in _IsCContiguous()
482 for (i = 0; i < view->ndim; i++) { in PyBuffer_GetPointer()
587 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*(view->ndim)); in PyBuffer_FromContiguous()
592 for (k=0; k<view->ndim;k++) { in PyBuffer_FromContiguous()
611 addone(view->ndim, indices, view->shape); in PyBuffer_FromContiguous()
661 indices = (Py_ssize_t *)PyMem_Malloc(sizeof(Py_ssize_t)*view_src.ndim); in PyObject_CopyData()
668 for (k=0; k<view_src.ndim;k++) { in PyObject_CopyData()
672 for (k=0; k<view_src.ndim; k++) { in PyObject_CopyData()
677 _Py_add_one_to_index_C(view_src.ndim, indices, view_src.shape); in PyObject_CopyData()
739 view->ndim = 1; in PyBuffer_FillInfo()