Lines Matching refs:head
66 (((NDArrayObject *)nd)->head == &((NDArrayObject *)nd)->staticbuf)
104 ndbuf_t *head; /* currently active base buffer */
180 elt->next = nd->head;
181 if (nd->head) nd->head->prev = elt;
182 nd->head = elt;
192 nd->head = elt->next;
203 ndbuf_delete(nd, nd->head);
217 nd->head = NULL;
224 if (self->head) {
226 Py_buffer *base = &self->head->base;
227 if (self->head->flags & ND_OWN_ARRAYS) {
235 while (self->head)
250 nd->head = &nd->staticbuf;
252 nd->head->next = NULL;
253 nd->head->prev = NULL;
254 nd->head->len = -1;
255 nd->head->offset = -1;
256 nd->head->data = NULL;
258 nd->head->flags = base->readonly ? 0 : ND_WRITABLE;
259 nd->head->exports = 0;
662 Py_buffer *base = &nd->head->base;
671 base = &nd->head->base;
680 assert(ND_C_CONTIGUOUS(nd->head->flags));
689 assert(ND_C_CONTIGUOUS(nd->head->flags));
690 strides = strides_from_shape(nd->head, 0);
1315 init_flags(nd->head);
1316 nd->head->flags |= flags;
1373 if (!(nd->flags&ND_VAREXPORT) && nd->head->exports > 0) {
1376 nd->head->exports, nd->head->exports==1 ? "" : "s");
1396 if (nd->head->exports > 0) {
1399 nd->head->exports, nd->head->exports==1 ? "" : "s");
1402 if (nd->head->next == NULL) {
1419 ndbuf_t *ndbuf = self->head;
1529 self->head->exports++;
1539 if (--ndbuf->exports == 0 && ndbuf != self->head)
1590 ndbuf_t *ndbuf = self->head;
1784 Py_buffer *base = &self->head->base;
1817 ndbuf = nd->head;
1868 Py_buffer *dest = &self->head->base;
1912 dest = &nd->head->base;
2006 return PyLong_FromLong(self->head->flags);
2012 ndbuf_t *ndbuf = self->head;
2019 Py_buffer *base = &self->head->base;
2031 Py_buffer *base = &self->head->base;
2038 Py_buffer *base = &self->head->base;
2045 Py_buffer *base = &self->head->base;
2052 Py_buffer *base = &self->head->base;
2060 Py_buffer *base = &self->head->base;
2067 Py_buffer *base = &self->head->base;
2074 Py_buffer *base = &self->head->base;
2081 Py_buffer *base = &self->head->base;
2089 int ret = PyBuffer_IsContiguous(&nd->head->base, 'C');
2091 if (ret != ND_C_CONTIGUOUS(nd->head->flags)) {
2103 int ret = PyBuffer_IsContiguous(&nd->head->base, 'F');
2105 if (ret != ND_FORTRAN_CONTIGUOUS(nd->head->flags)) {
2117 int ret = PyBuffer_IsContiguous(&nd->head->base, 'A');
2119 if (ret != ND_ANY_CONTIGUOUS(nd->head->flags)) {
2158 ndbuf_t *ndbuf = ((NDArrayObject *)self)->head;
2199 Py_buffer *base = &nd->head->base;
2222 nd->head->flags &= ~(ND_C|ND_FORTRAN);
2235 const Py_buffer *view = &nd->head->base;
2245 ndbuf = nd->head; /* self is ndarray/original exporter */
2248 ndbuf = ((NDArrayObject *)view->obj)->head;
2586 base = &((NDArrayObject *)obj)->head->base;
2608 const Py_buffer *view = &nd->head->base;