PetscHeapPeek#
Return the minimum item of a PetscHeap without removing it.
Synopsis#
PetscErrorCode PetscHeapPeek(PetscHeap h, PetscInt *id, PetscInt *val)
Not Collective
Input Parameter#
h - the
PetscHeap
Output Parameters#
id - identifier of the minimum item, or
-1if the heap is emptyval - value of the minimum item, or
PETSC_INT_MINif the heap is empty
See Also#
PetscHeap, PetscHeapCreate(), PetscHeapAdd(), PetscHeapPop(), PetscHeapDestroy()
Level#
developer
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages