petsc-master 2020-07-10
Report Typos and Errors

Vectors: Examples

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

Beginner - Basic usage
NORM_1 VecDuplicateVecsF90 VecRestoreArray4d
NORM_1_AND_2 VecExp VecRestoreArray4dRead
NORM_2 VecGetArray VecRestoreArray4dWrite
NORM_FROBENIUS VecGetArray4d VecRestoreArrayF90
NORM_INFINITY VecGetArray4dRead VecRestoreArrayInPlace
NORM_MAX VecGetArray4dWrite VecRestoreArrayRead
NormType VecGetArrayF90 VecRestoreArrayReadF90
SCATTER_FORWARD VecGetArrayInPlace VecRestoreArrayReadInPlace
SCATTER_REVERSE VecGetArrayRead VecRestoreArrayWrite
ScatterMode VecGetArrayReadF90 VecRestoreLocalVector
VECCUDA VecGetArrayReadInPlace VecRestoreLocalVectorRead
VECMPI VecGetLocalSize VecScatter
VECMPICUDA VecGetLocalVector VecScatterSetFromOptions
VECMPIVIENNACL VecGetLocalVectorRead VecScatterType
VECSEQ VecGetOwnershipRange VecSet
VECSEQCUDA VecGetOwnershipRanges VecSetFromOptions
VECSEQVIENNACL VecGetSize VecSetValue
VECSTANDARD VecGetValues VecSetValueLocal
VECVIENNACL VecImaginaryPart VecSetValues
Vec VecLockGet VecSqrtAbs
VecAssemblyBegin VecLockReadPop VecSum
VecAssemblyEnd VecLockReadPush VecTaggerBox
VecCopy VecLockWriteSet_Private VecType
VecCreate VecLog VecView
VecDestroy VecPermute VecZeroEntries
VecDestroyVecsF90 VecRealPart
VecDuplicate VecRestoreArray
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecDot VecScatterEnd
VECNEST VecDotRealPart VecScatterFinalizeForGPU
VECNODE VecDuplicateVecs VecScatterGetType
VecAXPBY VecEqual VecScatterInitializeForGPU
VecAXPBYPCZ VecGetArrayWrite VecScatterSetType
VecAXPY VecGetArrays VecScatterSetUp
VecAYPX VecGetType VecScatterView
VecAbs VecLoad VecScatterViewFromOptions
VecBindToCPU VecMAXPY VecSetLocalToGlobalMapping
VecCUDAGetArray VecMDot VecSetOption
VecCUDAGetArrayRead VecMTDot VecSetRandom
VecCUDARestoreArray VecMax VecSetSizes
VecCUDARestoreArrayRead VecMin VecSetType
VecCUDARestoreArrayWrite VecNorm VecSetValuesBlocked
VecChop VecNormAvailable VecSetValuesBlockedLocal
VecConjugate VecNormalize VecSetValuesLocal
VecCreateMPI VecPow VecShift
VecCreateMPICUDAWithArray VecReciprocal VecStashSetInitialSize
VecCreateMPIWithArray VecRestoreArrays VecStepMaxBounded
VecCreateSeq VecScale VecTDot
VecCreateSeqCUDA VecScatterBegin VecUniqueEntries
VecCreateSeqCUDAWithArray VecScatterCreate VecViewFromOptions
VecCreateSeqViennaCL VecScatterCreateToAll VecWAXPY
VecCreateSeqWithArray VecScatterCreateToZero
VecDestroyVecs VecScatterDestroy
Advanced - Setting more advanced options and customization
ISComplementVec VecPointwiseMaxAbs VecTaggerAndGetSubs
PetscCommSplitReductionBegin VecPointwiseMin VecTaggerAndSetSubs
VecAppendOptionsPrefix VecPointwiseMult VecTaggerCDFGetBox
VecBoundGradientProjection VecRegister VecTaggerCDFGetMethod
VecCUDAGetArrayWrite VecRegisterAll VecTaggerCDFIterativeGetTolerances
VecCreateGhost VecRestoreSubVector VecTaggerCDFIterativeSetTolerances
VecCreateGhostBlock VecScatterCopy VecTaggerCDFMethod
VecCreateGhostBlockWithArray VecScatterRegister VecTaggerCDFSetBox
VecCreateGhostWithArray VecScatterRegisterAll VecTaggerCDFSetMethod
VecCreateNest VecSetBlockSize VecTaggerComputeBoxes
VecCreateNode VecSetOperation VecTaggerComputeIS
VecCreateShared VecSetOptionsPrefix VecTaggerCreate
VecDotBegin VecSetUp VecTaggerDestroy
VecDotEnd VecStashGetInfo VecTaggerGetBlockSize
VecDotNorm2 VecStashView VecTaggerGetInvert
VecGetBlockSize VecStepBoundInfo VecTaggerGetType
VecGetLocalToGlobalMapping VecStepMax VecTaggerOrGetSubs
VecGetOptionsPrefix VecStrideGather VecTaggerOrSetSubs
VecGetSubVector VecStrideGatherAll VecTaggerRegister
VecGhostGetLocalForm VecStrideMax VecTaggerRegisterAll
VecGhostIsLocalForm VecStrideMaxAll VecTaggerRelativeGetBox
VecGhostRestoreLocalForm VecStrideMin VecTaggerRelativeSetBox
VecGhostUpdateBegin VecStrideMinAll VecTaggerSetBlockSize
VecGhostUpdateEnd VecStrideNorm VecTaggerSetFromOptions
VecISAXPY VecStrideNormAll VecTaggerSetInvert
VecISCopy VecStrideScale VecTaggerSetType
VecISSet VecStrideScaleAll VecTaggerSetUp
VecMDotBegin VecStrideScatter VecTaggerType
VecMDotEnd VecStrideScatterAll VecTaggerView
VecMPISetGhost VecStrideSet VecWhichBetween
VecMTDotBegin VecStrideSubSetGather VecWhichBetweenOrEqual
VecMTDotEnd VecStrideSubSetScatter VecWhichEqual
VecMaxPointwiseDivide VecSwap VecWhichGreaterThan
VecMedian VecTDotBegin VecWhichInactive
VecNormBegin VecTDotEnd VecWhichLessThan
VecNormEnd VecTagger Vecs
VecPointwiseDivide VecTaggerAbsoluteGetBox
VecPointwiseMax VecTaggerAbsoluteSetBox
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage VecGetArray3dWrite VecRestoreArray2d
ISInitializePackage VecGetArrayPair VecRestoreArray2dRead
PetscSectionVecView VecGetLayout VecRestoreArray2dWrite
SCATTER_FORWARD_LOCAL VecGetPinnedMemoryMin VecRestoreArray3d
SCATTER_REVERSE_LOCAL VecGetValuesSection VecRestoreArray3dRead
VecCUDAPlaceArray VecInitializePackage VecRestoreArray3dWrite
VecCUDAReplaceArray VecNestGetSize VecRestoreArrayPair
VecCUDAResetArray VecNestGetSubVec VecScatterFinalizePackage
VecFinalizePackage VecNestGetSubVecs VecScatterGetMerged
VecGetArray1d VecNestSetSubVec VecScatterInitializePackage
VecGetArray1dRead VecNestSetSubVecs VecScatterRemap
VecGetArray1dWrite VecPlaceArray VecSetLayout
VecGetArray2d VecReplaceArray VecSetPinnedMemoryMin
VecGetArray2dRead VecResetArray VecSetValuesSection
VecGetArray2dWrite VecRestoreArray1d VecTaggerFinalizePackage
VecGetArray3d VecRestoreArray1dRead VecTaggerInitializePackage
VecGetArray3dRead VecRestoreArray1dWrite
Deprecated - Functionality scheduled for removal in future versions
VecLockPop VecLockPush

Table of Contents