VecMax
Determines the maximum vector component and its location.
Synopsis
#include "vec.h"
int VecMax(Vec x,int *p,PetscReal *val)
Collective on Vec
Input Parameter
| x | - the vector
|
Output Parameters
| val | - the maximum component
|
| p | - the location of val
|
Notes
Returns the value PETSC_MIN and p = -1 if the vector is of length 0.
Keywords
vector, maximum
See Also
VecNorm(), VecMin()
Level:intermediate
Location:src/vec/interface/vector.c
Vector Index
Table of Contents