petsc-3.8.4 2018-03-24
Report Typos and Errors

VecGetArrayPair

Accesses a pair of pointers for two vectors that may be common. When not common the first is read only

Synopsis

PETSC_STATIC_INLINE PetscErrorCode VecGetArrayPair(Vec x,Vec y,PetscScalar **xv,PetscScalar **yv)
Logically Collective on Vec

Input Parameter

x - the vector
y - the second vector

Output Parameter

xv - location to put pointer to the first array
yv - location to put pointer to the second array

See Also

VecGetArray(), VecGetArrayRead(), VecRestoreArrayPair()

Level:developer
Location:
src/vec/vec/utils/tagger../../../../../include/petscvec.h
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages