Vectors:
Examples
PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.
Beginner - Basic usage
NORM_1_AND_2
VecExp
VecRestoreArray
NORM_1
VecGetArray4d
VecScatter
NORM_2
VecGetArrayF90
VECSEQ
NORM_FROBENIUS
VecGetArray
VecSetFromOptions
NORM_INFINITY
VecGetLocalSize
VecSet
NORM_MAX
VecGetOwnershipRange
VecSetValue
NormType
VecGetOwnershipRanges
VecSetValueLocal
VecAssemblyBegin
VecGetSize
VecSetValues
VecAssemblyEnd
VecGetValues
VecSqrt
VecCopy
Vec
VecSum
VecCreate
VecLog
VecType
VecDestroy
VECMPI
VecView
VecDestroyVecsF90
VecPermute
VecZeroEntries
VecDuplicate
VecRestoreArray4d
VecDuplicateVecsF90
VecRestoreArrayF90
Intermediate - Setting options for algorithms and data structures
VecAbs
VecLoad
VecScatterDestroy
VecAXPBY
VecLoadIntoVector
VecScatterEnd
VecAXPBYPCZ
VecMax
VecScatterView
VecAXPY
VecMAXPY
VecSetLocalToGlobalMappingBlock
VecAYPX
VecMDot
VecSetLocalToGlobalMapping
VecConjugate
VecMin
VecSetOption
VecContourScale
VecMTDot
VecSetRandom
VecCreateMPI
VecNormalize
VecSetSizes
VecCreateMPIWithArray
VecNorm
VecSetType
VecCreateSeq
VecReciprocal
VecSetValuesBlocked
VecCreateSeqWithArray
VecRestoreArrays
VecSetValuesBlockedLocal
VecDestroyVecs
VecScale
VecSetValuesLocal
VecDot
VecScatterBegin
VecShift
VecDuplicateVecs
VecScatterCreate
VecStashSetInitialSize
VecEqual
VecScatterCreateLocal
VecTDot
VecGetArrays
VecScatterCreateToAll
VecViewFromOptions
VecGetType
VecScatterCreateToZero
VecWAXPY
Advanced - Setting more advanced options and customization
VecAppendOptionsPrefix
VecMTDotBegin
VecStashGetInfo
VecCreateGhostBlock
VecMTDotEnd
VecStashView
VecCreateGhostBlockWithArray
VecNormBegin
VecStrideGatherAll
VecCreateGhost
VecNormEnd
VecStrideGather
VecCreateGhostWithArray
VecPointwiseDivide
VecStrideMaxAll
VecCreateShared
VecPointwiseMaxAbs
VecStrideMax
VecDotBegin
VecPointwiseMax
VecStrideMinAll
VecDotEnd
VecPointwiseMin
VecStrideMin
VecDotNorm2
VecPointwiseMult
VecStrideNormAll
VecGetBlockSize
VecRegisterAll
VecStrideNorm
VecGetOptionsPrefix
VecRegisterDestroy
VecStrideScaleAll
VecGhostGetLocalForm
VecRegisterDynamic
VecStrideScale
VecGhostRestoreLocalForm
VecRegister
VecStrideScatterAll
VecGhostUpdateBegin
VecScatterCopy
VecStrideScatter
VecGhostUpdateEnd
VecSetBlockSize
VecSwap
VecMaxPointwiseDivide
VecSetOptionsPrefix
VecTDotBegin
VecMDotBegin
VecSetUp
VecTDotEnd
VecMDotEnd
Vecs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISInitializePackage
PetscMapSetLocalSize
VecReplaceArray
PetscMapDestroy
PetscMapSetSize
VecResetArray
PetscMapGetBlockSize
PetscMapSetUp
VecRestoreArray1d
PetscMapGetLocalSize
VecFinalizePackage
VecRestoreArray2d
PetscMapGetRange
VecGetArray1d
VecRestoreArray3d
PetscMapGetRanges
VecGetArray2d
VecScatterGetMerged
PetscMapGetSize
VecGetArray3d
VecScatterRemap
PetscMapInitialize
VecInitializePackage
VecValid
PetscMapSetBlockSize
VecPlaceArray
No deprecated routines
Table of Contents