PetscMin#

Returns minimum of two numbers

Synopsis#

#include <petscmath.h>
type PetscMin(type v1, type v2)

Not Collective

Input Parameters#

  • v1 - first value to find minimum of

  • v2 - second value to find minimum of

Note#

The type can be integer or floating point value, but cannot be complex

See Also#

PetscMax(), PetscClipInterval(), PetscAbsInt(), PetscAbsReal(), PetscSqr()

Level#

beginner

Location#

include/petscmath.h

Examples#

src/sys/classes/draw/tests/ex6.c
src/sys/tests/ex43.c
src/dm/impls/plex/tutorials/ex11.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/label/tutorials/ex1.c
src/ksp/ksp/tutorials/ex70.c
src/ml/da/tutorials/ex3.c
src/snes/tutorials/ex14.c
src/snes/tutorials/ex15.c
src/snes/tutorials/ex17.c


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