VecMin

Determines the vector component with minimum real part and its location.

Synopsis

#include "petscvec.h"   
PetscErrorCode  VecMin(Vec x,PetscInt *p,PetscReal *val)
Collective on Vec

Input Parameters

x - the vector

Output Parameter

p - the location of val (pass NULL if you don't want this location)
val - the minimum component

Level: intermediate

Notes

Returns the value PETSC_MAX_REAL and p = -1 if the vector is of length 0.

This returns the smallest index with the minumum value

See Also

VecMax()

Location:rvector.c