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 Tao is using for subsetting

  • maskvalue - the value to set the unused vector elements to (for TAO_SUBSET_MASK or TAO_SUBSET_MATRIXFREE)

Output Parameter#

  • vreduced - the subvector

Notes#

maskvalue should usually be 0.0, unless a pointwise divide will be used.

See Also#

TaoMatGetSubMat(), TaoSubsetType

Level#

developer

Location#

src/tao/bound/utils/isutil.c


Index of all Tao routines
Table of Contents for all manual pages
Index of all manual pages