#include "petscvec.h" PetscErrorCode VecGetSubVector(Vec X,IS is,Vec *Y)Collective on IS (and Vec if nonlocal entries are needed) Many br
X | - vector from which to extract a subvector Many br | |
is | - index set representing portion of X to extract Many br |
Many br
This function may return a subvector without making a copy, therefore it is not safe to use the original vector while Many brmodifying the subvector. Other non-overlapping subvectors can still be obtained from X using this function. Many br
Level:advanced
Location:src/vec/vec/interface/rvector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages