VecShift

Shifts all of the components of a vector by computing x[i] = x[i] + shift.

Synopsis

#include "petscvec.h" 
int VecShift(const PetscScalar *shift,Vec v)
Collective on Vec

Input Parameters

v - the vector
shift - the shift

Output Parameter

v -the shifted vector

Level:intermediate
Location:
src/vec/utils/vinv.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages