#include "petscvec.h" PetscErrorCode VecStepMaxBounded(Vec X, Vec DX, Vec XL, Vec XU, PetscReal *stepmax)Collective on Vec
X | - vector with no negative entries | |
XL | - lower bounds | |
XU | - upper bounds | |
DX | - step direction, can have negative, positive or zero entries |
stepmax | - minimum value so that X[i] + stepmax*DX[i] <= XL[i] or XU[i] <= X[i] + stepmax*DX[i] |