petsc-master 2019-07-16
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 VecRestoreArrayRead
NORM_MAX VecGetArray4dWrite VecRestoreArrayReadF90
NormType VecGetArrayF90 VecRestoreArrayWrite
SCATTER_FORWARD VecGetArrayRead VecRestoreLocalVector
SCATTER_REVERSE VecGetArrayReadF90 VecRestoreLocalVectorRead
ScatterMode VecGetLocalSize VecScatter
VECMPI VecGetLocalVector VecScatterSetFromOptions
VECMPICUDA VecGetLocalVectorRead VecScatterType
VECMPIVIENNACL VecGetOwnershipRange VecSet
VECSEQ VecGetOwnershipRanges VecSetFromOptions
VECSEQCUDA VecGetSize VecSetValue
VECSEQVIENNACL VecGetValues VecSetValueLocal
VECSTANDARD 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 VecScatterDestroy
VECNEST VecDotRealPart VecScatterEnd
VECNODE VecDuplicateVecs VecScatterFinalizeForGPU
VecAXPBY VecEqual VecScatterGetType
VecAXPBYPCZ VecGetArrayWrite VecScatterInitializeForGPU
VecAXPY VecGetArrays VecScatterSetType
VecAYPX VecGetType VecScatterSetUp
VecAbs VecLoad VecScatterView
VecCUDAGetArray VecMAXPY VecSetLocalToGlobalMapping
VecCUDAGetArrayRead VecMDot VecSetOption
VecCUDARestoreArray VecMTDot VecSetRandom
VecCUDARestoreArrayRead VecMax VecSetSizes
VecCUDARestoreArrayWrite VecMin VecSetType
VecChop VecNorm VecSetValuesBlocked
VecConjugate VecNormAvailable VecSetValuesBlockedLocal
VecCreateMPI VecNormalize VecSetValuesLocal
VecCreateMPICUDAWithArray VecPow VecShift
VecCreateMPIWithArray VecReciprocal VecStashSetInitialSize
VecCreateSeq VecRestoreArrays VecStepMaxBounded
VecCreateSeqCUDA VecScale VecTDot
VecCreateSeqCUDAWithArray VecScatterBegin VecUniqueEntries
VecCreateSeqViennaCL VecScatterCreate VecWAXPY
VecCreateSeqWithArray VecScatterCreateToAll
VecDestroyVecs VecScatterCreateToZero
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 VecGetArray3dRead VecRestoreArray1dWrite
ISInitializePackage VecGetArray3dWrite VecRestoreArray2d
PetscSFCreateFromZero VecGetArrayPair VecRestoreArray2dRead
SCATTER_FORWARD_LOCAL VecGetLayout VecRestoreArray2dWrite
SCATTER_REVERSE_LOCAL VecGetValuesSection VecRestoreArray3d
VecCUDAPlaceArray VecInitializePackage VecRestoreArray3dRead
VecCUDAReplaceArray VecNestGetSize VecRestoreArray3dWrite
VecCUDAResetArray VecNestGetSubVec VecRestoreArrayPair
VecFinalizePackage VecNestGetSubVecs VecScatterFinalizePackage
VecGetArray1d VecNestSetSubVec VecScatterGetMerged
VecGetArray1dRead VecNestSetSubVecs VecScatterInitializePackage
VecGetArray1dWrite VecPlaceArray VecScatterRemap
VecGetArray2d VecReplaceArray VecSetLayout
VecGetArray2dRead VecResetArray VecSetValuesSection
VecGetArray2dWrite VecRestoreArray1d VecTaggerFinalizePackage
VecGetArray3d VecRestoreArray1dRead VecTaggerInitializePackage
Deprecated - Functionality scheduled for removal in future versions
VecLockPop VecLockPush
None: Not yet cataloged
VecPinToCPU

Table of Contents