Vectors: Examples

PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.

Beginner - Basic usage
ESICreateIndexSpace VecGetArray VecRestoreArrayF90
NormType VecGetArray1d VecScatter
PetscMapCreate VecGetArray2d VecSerialize
PetscMapSerialize VecGetArray3d VecSet
Vec VecGetArrayF90 VecSetFromOptions
VecAssemblyBegin VecGetLocalSize VecSetValue
VecAssemblyEnd VecGetOwnershipRange VecSetValues
VecCopy VecGetSize VecSqrt
VecCreate VecPermute VecSum
VecDestroy VecRestoreArray VecType
VecDestroyVecsF90 VecRestoreArray1d VecView
VecDuplicate VecRestoreArray2d
VecDuplicateVecsF90 VecRestoreArray3d
Intermediate - Setting options for algorithms and data structures
ESILoadFactory VecDot VecScatterBegin
PetscMapGetSerializeType VecDuplicateVecs VecScatterCreate
PetscMapGetType VecESISetType VecScatterDestroy
PetscMapPrintHelp VecESISetVector VecScatterEnd
PetscMapSetFromOptions VecEqual VecScatterView
PetscMapSetSerializeType VecGetArrays VecSetLocalToGlobalMapping
PetscMapSetType VecGetSerializeType VecSetLocalToGlobalMappingBlock
VecAXPBY VecGetType VecSetOption
VecAXPY VecLoad VecSetRandom
VecAYPX VecLoadIntoVector VecSetSerializeType
VecAbs VecMAXPY VecSetSizes
VecConjugate VecMDot VecSetStashInitialSize
VecContourScale VecMTDot VecSetType
VecConvertMPIToMPIZero VecMax VecSetValuesBlocked
VecConvertMPIToSeqAll VecMin VecSetValuesBlockedLocal
VecCreateMPI VecNorm VecSetValuesLocal
VecCreateMPIWithArray VecPrintHelp VecShift
VecCreateSeq VecReciprocal VecTDot
VecCreateSeqWithArray VecRestoreArrays VecViewFromOptions
VecDestroyVecs VecScale VecWAXPY
Advanced - Setting more advanced options and customization
M VecGhostGetLocalForm VecSetBlockSize
PetscMap VecGhostRestoreLocalForm VecStashView
PetscMapRegisterAll VecGhostUpdateBegin VecStrideGather
PetscMapSerializeRegisterAll VecGhostUpdateEnd VecStrideGatherAll
PetscMapSerializeRegisterDestroy VecNormBegin VecStrideMax
VecCreateGhost VecNormEnd VecStrideMin
VecCreateGhostBlock VecPointwiseDivide VecStrideNorm
VecCreateGhostBlockWithArray VecPointwiseMult VecStrideScatter
VecCreateGhostWithArray VecRegisterAll VecStrideScatterAll
VecCreateShared VecScatterCopy VecSwap
VecDotBegin VecScatterPostRecvs VecTDotBegin
VecDotEnd VecSerializeRegisterAll VecTDotEnd
VecGetBlockSize VecSerializeRegisterDestroy
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
PetscMapCreateMPI PetscMapGetSize VecPlaceArray
PetscMapDestroy PetscMapSetLocalSize VecReplaceArray
PetscMapGetGlobalRange PetscMapSetSize VecResetArray
PetscMapGetLocalRange VecGetPetscMap VecScatterRemap
PetscMapGetLocalSize VecInitializePackage VecValid

Table of Contents