PetscHeapCreate#
Creates a PetscHeap object, a simple min-heap for (id, value) pairs.
Synopsis#
PetscErrorCode PetscHeapCreate(PetscInt maxsize, PetscHeap *heap)
Not Collective
Input Parameter#
maxsize - the maximum number of items the heap can hold at once
Output Parameter#
heap - the newly created
PetscHeapobject
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#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages