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