petsc-3.13.6 2020-09-29
Report Typos and Errors
PetscMax
Returns maxium of two numbers
Synopsis
#include <petscmath.h> type max
PetscMax
(type v1,type v2)
Not Collective
Input Parameter
v1
- first value to find maximum of
v2
- second value to find maximum of
Notes
type can be integer or floating point value
See Also
PetscMin
(),
PetscClipInterval
(),
PetscAbsInt
(),
PetscAbsReal
(),
PetscSqr
()
Level
beginner
Location
include/petscmath.h
Examples
src/ksp/ksp/tutorials/ex70.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex48.c.html
src/ts/tutorials/ex1.c.html
src/ts/tutorials/ex9.c.html
src/ts/tutorials/ex11.c.html
src/ts/tutorials/ex14.c.html
src/ts/tutorials/ex22.c.html
src/ts/tutorials/ex48.c.html
src/tao/bound/tutorials/plate2.c.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages