:orphan: # VecMaxPointwiseDivide Computes the maximum of the componentwise division `max = max_i abs(x[i]/y[i])`. ## Synopsis ``` #include "petscvec.h" PetscErrorCode VecMaxPointwiseDivide(Vec x, Vec y, PetscReal *max) ``` Logically Collective ## Input Parameters - ***x -*** the numerators - ***y -*** the denominators ## Output Parameter - ***max -*** the result ## Notes `x` and `y` may be the same vector if a particular `y[i]` is zero, it is treated as 1 in the above formula ## See Also [](ch_vectors), `Vec`, `VecPointwiseDivide()`, `VecPointwiseMult()`, `VecPointwiseMax()`, `VecPointwiseMin()`, `VecPointwiseMaxAbs()` ## Level advanced ## Location src/vec/vec/interface/rvector.c ## Implementations VecMaxPointwiseDivide_Nest in src/vec/vec/impls/nest/vecnest.c
VecMaxPointwiseDivide_Seq in src/vec/vec/impls/seq/dvec2.c
--- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/rvector.c) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)