petsc-3.9.0 2018-04-07
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 VecDestroyVecsF90 VecRestoreArray4d
NORM_1_AND_2 VecDuplicate VecRestoreArray4dRead
NORM_2 VecDuplicateVecsF90 VecRestoreArrayF90
NORM_FROBENIUS VecExp VecRestoreArrayRead
NORM_INFINITY VecGetArray VecRestoreArrayReadF90
NORM_MAX VecGetArray4d VecRestoreLocalVector
NormType VecGetArray4dRead VecRestoreLocalVectorRead
SCATTER_FORWARD VecGetArrayF90 VecScatter
SCATTER_REVERSE VecGetArrayRead VecScatterSetFromOptions
ScatterMode VecGetArrayReadF90 VecScatterType
VECMPI VecGetLocalSize VecSet
VECMPICUDA VecGetLocalVector VecSetFromOptions
VECMPIVIENNACL VecGetLocalVectorRead VecSetValue
VECSEQ VecGetOwnershipRange VecSetValueLocal
VECSEQCUDA VecGetOwnershipRanges VecSetValues
VECSEQVIENNACL VecGetSize VecSqrtAbs
VECSTANDARD VecGetValues VecSum
Vec VecLockGet VecTaggerBox
VecAssemblyBegin VecLockPop VecType
VecAssemblyEnd VecLockPush VecView
VecCopy VecLog VecZeroEntries
VecCreate VecPermute
VecDestroy VecRestoreArray
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecDestroyVecs VecScatterCreateToZero
VECNEST VecDot VecScatterDestroy
VECNODE VecDotRealPart VecScatterEnd
VecAXPBY VecDuplicateVecs VecScatterFinalizeForGPU
VecAXPBYPCZ VecEqual VecScatterGetType
VecAXPY VecGetArrays VecScatterInitializeForGPU
VecAYPX VecGetType VecScatterSetType
VecAbs VecLoad VecScatterView
VecCUDAGetArrayRead VecMAXPY VecSetLocalToGlobalMapping
VecCUDAGetArrayReadWrite VecMDot VecSetOption
VecCUDARestoreArrayRead VecMTDot VecSetRandom
VecCUDARestoreArrayReadWrite 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
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 VecRestoreArray1dRead
ISInitializePackage VecGetArrayPair VecRestoreArray2d
PetscSFCreateFromZero VecGetLayout VecRestoreArray2dRead
SCATTER_FORWARD_LOCAL VecGetValuesSection VecRestoreArray3d
SCATTER_REVERSE_LOCAL VecInitializePackage VecRestoreArray3dRead
VecCUDAPlaceArray VecNestGetSize VecRestoreArrayPair
VecCUDAReplaceArray VecNestGetSubVec VecScatterFinalizePackage
VecCUDAResetArray VecNestGetSubVecs VecScatterGetMerged
VecFinalizePackage VecNestSetSubVec VecScatterInitializePackage
VecGetArray1d VecNestSetSubVecs VecScatterRemap
VecGetArray1dRead VecPlaceArray VecSetLayout
VecGetArray2d VecReplaceArray VecSetValuesSection
VecGetArray2dRead VecResetArray VecTaggerFinalizePackage
VecGetArray3d VecRestoreArray1d VecTaggerInitializePackage
No deprecated routines

Table of Contents