petsc-master 2019-11-20
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 VecExp VecRestoreArray4d
NORM_1_AND_2 VecGetArray VecRestoreArray4dRead
NORM_2 VecGetArray4d VecRestoreArray4dWrite
NORM_FROBENIUS VecGetArray4dRead VecRestoreArrayF90
NORM_INFINITY VecGetArray4dWrite VecRestoreArrayInPlace
NORM_MAX VecGetArrayF90 VecRestoreArrayRead
NormType VecGetArrayInPlace VecRestoreArrayReadF90
SCATTER_FORWARD VecGetArrayRead VecRestoreArrayReadInPlace
SCATTER_REVERSE VecGetArrayReadF90 VecRestoreArrayWrite
ScatterMode VecGetArrayReadInPlace VecRestoreLocalVector
VECMPI VecGetLocalSize VecRestoreLocalVectorRead
VECMPICUDA VecGetLocalVector VecScatter
VECMPIVIENNACL VecGetLocalVectorRead VecScatterSetFromOptions
VECSEQ VecGetOwnershipRange VecScatterType
VECSEQCUDA VecGetOwnershipRanges VecSet
VECSEQVIENNACL VecGetSize VecSetFromOptions
VECSTANDARD VecGetValues VecSetValue
Vec VecImaginaryPart VecSetValueLocal
VecAssemblyBegin VecLockGet VecSetValues
VecAssemblyEnd VecLockReadPop VecSqrtAbs
VecCopy VecLockReadPush VecSum
VecCreate VecLockWriteSet_Private VecTaggerBox
VecDestroy VecLog VecType
VecDestroyVecsF90 VecPermute VecView
VecDuplicate VecRealPart VecZeroEntries
VecDuplicateVecsF90 VecRestoreArray
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecDotRealPart VecScatterEnd
VECNEST VecDuplicateVecs VecScatterFinalizeForGPU
VECNODE VecEqual VecScatterGetType
VecAXPBY VecGetArrayWrite VecScatterInitializeForGPU
VecAXPBYPCZ VecGetArrays VecScatterSetType
VecAXPY VecGetType VecScatterSetUp
VecAYPX VecLoad VecScatterView
VecAbs VecMAXPY VecScatterViewFromOptions
VecCUDAGetArray VecMDot VecSetLocalToGlobalMapping
VecCUDAGetArrayRead VecMTDot VecSetOption
VecCUDARestoreArray VecMax VecSetRandom
VecCUDARestoreArrayRead VecMin VecSetSizes
VecCUDARestoreArrayWrite VecNorm VecSetType
VecChop VecNormAvailable VecSetValuesBlocked
VecConjugate VecNormalize VecSetValuesBlockedLocal
VecCreateMPI VecPinToCPU VecSetValuesLocal
VecCreateMPICUDAWithArray VecPow VecShift
VecCreateMPIWithArray VecReciprocal VecStashSetInitialSize
VecCreateSeq VecRestoreArrays VecStepMaxBounded
VecCreateSeqCUDA VecScale VecTDot
VecCreateSeqCUDAWithArray VecScatterBegin VecUniqueEntries
VecCreateSeqViennaCL VecScatterCreate VecViewFromOptions
VecCreateSeqWithArray VecScatterCreateToAll VecWAXPY
VecDestroyVecs VecScatterCreateToZero
VecDot 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 VecGetArray3dRead VecRestoreArray1dWrite
ISInitializePackage VecGetArray3dWrite VecRestoreArray2d
PetscSectionVecView 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

Table of Contents