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

Table of Contents