PetscMax#
Returns maximum of two numbers
Synopsis#
#include <petscmath.h>
type max PetscMax(type v1, type v2)
Not Collective
Input Parameters#
v1 - first value to find maximum of
v2 - second value to find maximum of
Note#
The type can be integer or floating point value
See Also#
PetscMin(), PetscClipInterval(), PetscAbsInt(), PetscAbsReal(), PetscSqr()
Level#
beginner
Location#
Examples#
src/sys/classes/draw/tests/ex6.c
src/sys/tests/ex43.c
src/dm/impls/plex/tutorials/ex11.c
src/ksp/ksp/tutorials/ex70.c
src/ksp/ksp/tutorials/ex72.c
src/ksp/ksp/tutorials/ex81.c
src/ksp/ksp/tutorials/ex81a.c
src/ml/da/tutorials/ex3.c
src/ml/da/tutorials/ex4fwd.c
src/snes/tutorials/ex30.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages