TaoVecGetSubVec#
Gets a subvector using the IS
Synopsis#
#include "petsctao.h"
PetscErrorCode TaoVecGetSubVec(Vec vfull, IS is, TaoSubsetType reduced_type, PetscReal maskvalue, Vec *vreduced)
Input Parameters#
vfull - the full matrix
is - the index set for the subvector
reduced_type - the method
Taois using for subsettingmaskvalue - the value to set the unused vector elements to (for
TAO_SUBSET_MASKorTAO_SUBSET_MATRIXFREE)
Output Parameter#
vreduced - the subvector
Notes#
maskvalue should usually be 0.0, unless a pointwise divide will be used.
See Also#
Level#
developer
Location#
Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages