petsc-3.11.4 2019-09-28
Report Typos and Errors

VecStepMax

Returns the largest value so that x[i] + step*DX[i] >= 0 for all i

Synopsis

#include "petscvec.h"  
PetscErrorCode VecStepMax(Vec X, Vec DX, PetscReal *step)
Collective on Vec

Input Parameters

X - vector with no negative entries
DX - a step direction, can have negative, positive or zero entries

Output Parameter

step -largest value such that x[i] + step*DX[i] >= 0 for all i

Notes

For complex numbers only compares the real part

Level

advanced

Location

src/vec/vec/utils/projection.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages