Lines Matching refs:end
10 PetscInt end; /* one past the last item */ member
49 right = PetscMin(left + ARITY - 1, h->end - 1); in MinChild()
69 h->end = 1; in PetscHeapCreate()
84 if (1 < h->end && h->end < ARITY) h->end = ARITY; in PetscHeapAdd()
85 loc = h->end++; in PetscHeapAdd()
86 …PetscCheck(h->end <= h->stash, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Addition would exceed a… in PetscHeapAdd()
103 if (h->end == 1) { in PetscHeapPop()
113 loc = --h->end; in PetscHeapPop()
114 if (h->end == ARITY) h->end = 2; /* Skip over hole */ in PetscHeapPop()
130 if (h->end == 1) { in PetscHeapPeek()
180 …viewer, "Heap size %" PetscInt_FMT " with %" PetscInt_FMT " stashed\n", h->end - 1, h->alloc - h->… in PetscHeapView()
182 PetscCall(PetscIntView(2 * (h->end - 1), (const PetscInt *)(h->base + 1), viewer)); in PetscHeapView()