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
VecDuplicate
VecRestoreArrayF90
NORM_1
VecDuplicateVecsF90
VecRestoreArray
NORM_2
VecExp
VecScatter
NORM_FROBENIUS
VecGetArray4d
VECSEQ
NORM_INFINITY
VecGetArrayF90
VecSetFromOptions
NORM_MAX
VecGetArray
VecSet
NormType
VecGetLocalSize
VecSetValue
SCATTER_FORWARD
VecGetOwnershipRange
VecSetValueLocal
ScatterMode
VecGetOwnershipRanges
VecSetValues
SCATTER_REVERSE
VecGetSize
VecSqrtAbs
VecAssemblyBegin
VecGetValues
VECSTANDARD
VecAssemblyEnd
Vec
VecSum
VecCopy
VecLog
VecType
VecCreate
VECMPI
VecView
VecDestroy
VecPermute
VecZeroEntries
VecDestroyVecsF90
VecRestoreArray4d
Intermediate - Setting options for algorithms and data structures
VecAbs
VecMax
VecScatterEnd
VecAXPBY
VecMAXPY
VecScatterView
VecAXPBYPCZ
VecMDot
VecSetLocalToGlobalMappingBlock
VecAXPY
VecMin
VecSetLocalToGlobalMapping
VecAYPX
VecMTDot
VecSetOption
VecConjugate
VECNEST
VecSetRandom
VecContourScale
VecNormalize
VecSetSizes
VecCreateMPI
VecNormAvailable
VecSetType
VecCreateMPIWithArray
VecNorm
VecSetValuesBlocked
VecCreateSeq
VecReciprocal
VecSetValuesBlockedLocal
VecCreateSeqWithArray
VecRestoreArrays
VecSetValuesLocal
VecDestroyVecs
VecScale
VecShift
VecDot
VecScatterBegin
VecStashSetInitialSize
VecDuplicateVecs
VecScatterCreate
VecTDot
VecEqual
VecScatterCreateLocal
VecViewFromOptions
VecGetArrays
VecScatterCreateToAll
VecWAXPY
VecGetType
VecScatterCreateToZero
VecLoad
VecScatterDestroy
Advanced - Setting more advanced options and customization
VecAppendOptionsPrefix
VecMDotBegin
Vecs
VecCreateGhostBlock
VecMDotEnd
VecStashGetInfo
VecCreateGhostBlockWithArray
VecMTDotBegin
VecStashView
VecCreateGhost
VecMTDotEnd
VecStrideGatherAll
VecCreateGhostWithArray
VecNormBegin
VecStrideGather
VecCreateNest
VecNormEnd
VecStrideMaxAll
VecCreateShared
VecPointwiseDivide
VecStrideMax
VecDotBegin
VecPointwiseMaxAbs
VecStrideMinAll
VecDotEnd
VecPointwiseMax
VecStrideMin
VecDotNorm2
VecPointwiseMin
VecStrideNormAll
VecGetBlockSize
VecPointwiseMult
VecStrideNorm
VecGetLocalToGlobalMappingBlock
VecRegisterAll
VecStrideScaleAll
VecGetLocalToGlobalMapping
VecRegisterDestroy
VecStrideScale
VecGetOptionsPrefix
VecRegisterDynamic
VecStrideScatterAll
VecGetSubVector
VecRegister
VecStrideScatter
VecGhostGetLocalForm
VecRestoreSubVector
VecStrideSet
VecGhostRestoreLocalForm
VecScatterCopy
VecSwap
VecGhostUpdateBegin
VecSetBlockSize
VecTDotBegin
VecGhostUpdateEnd
VecSetOptionsPrefix
VecTDotEnd
VecMaxPointwiseDivide
VecSetUp
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage
PetscLayoutSetISLocalToGlobalMappingBlock
VecInitializePackage
ISInitializePackage
PetscLayoutSetISLocalToGlobalMapping
VecNestGetSize
PetscLayoutCopy
PetscLayoutSetLocalSize
VecNestGetSubVec
PetscLayoutCreate
PetscLayoutSetSize
VecNestGetSubVecs
PetscLayoutDestroy
PetscLayoutSetUp
VecPlaceArray
PetscLayoutFindOwner
PetscSectionCreate
VecReplaceArray
PetscLayoutGetBlockSize
PetscSectionDestroy
VecResetArray
PetscLayoutGetLocalSize
PetscSection
VecRestoreArray1d
PetscLayoutGetRange
SCATTER_FORWARD_LOCAL
VecRestoreArray2d
PetscLayoutGetRanges
SCATTER_REVERSE_LOCAL
VecRestoreArray3d
PetscLayoutGetSize
VecFinalizePackage
VecScatterGetMerged
PetscLayout
VecGetArray1d
VecScatterRemap
PetscLayoutReference
VecGetArray2d
PetscLayoutSetBlockSize
VecGetArray3d
No deprecated routines
Table of Contents