PetscHeapCreate#

Creates a PetscHeap object, a simple min-heap for (id, value) pairs.

Synopsis#

Not Collective

Input Parameter#

  • maxsize - the maximum number of items the heap can hold at once

Output Parameter#

Note#

The heap is ordered by value; items with equal values may be returned in any order.

See Also#

PetscHeap, PetscHeapAdd(), PetscHeapPop(), PetscHeapPeek(), PetscHeapStash(), PetscHeapUnstash(), PetscHeapView(), PetscHeapDestroy()

Level#

developer

Location#

src/mat/utils/pheap.c


Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages