petsc-master 2019-03-22
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 VecRestoreArray
NORM_1_AND_2 VecDuplicateVecsF90 VecRestoreArray4d
NORM_2 VecExp VecRestoreArray4dRead
NORM_FROBENIUS VecGetArray VecRestoreArrayF90
NORM_INFINITY VecGetArray4d VecRestoreArrayRead
NORM_MAX VecGetArray4dRead VecRestoreArrayReadF90
NormType VecGetArrayF90 VecRestoreLocalVector
SCATTER_FORWARD VecGetArrayRead VecRestoreLocalVectorRead
SCATTER_REVERSE VecGetArrayReadF90 VecScatter
ScatterMode VecGetLocalSize VecScatterSetFromOptions
VECMPI VecGetLocalVector VecScatterType
VECMPICUDA VecGetLocalVectorRead VecSet
VECMPIVIENNACL VecGetOwnershipRange VecSetFromOptions
VECSEQ VecGetOwnershipRanges VecSetValue
VECSEQCUDA VecGetSize VecSetValueLocal
VECSEQVIENNACL VecGetValues VecSetValues
VECSTANDARD VecImaginaryPart VecSqrtAbs
Vec VecLockGet VecSum
VecAssemblyBegin VecLockReadPop VecTaggerBox
VecAssemblyEnd VecLockReadPush VecType
VecCopy VecLockWriteSet_Private VecView
VecCreate VecLog VecZeroEntries
VecDestroy VecPermute
VecDestroyVecsF90 VecRealPart
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 VecScatterSetUp
VecCUDAGetArrayRead VecMAXPY VecScatterView
VecCUDAGetArrayReadWrite VecMDot VecSetLocalToGlobalMapping
VecCUDARestoreArrayRead VecMTDot VecSetOption
VecCUDARestoreArrayReadWrite VecMax VecSetRandom
VecCUDARestoreArrayWrite VecMin VecSetSizes
VecChop VecNorm VecSetType
VecConjugate VecNormAvailable VecSetValuesBlocked
VecCreateMPI VecNormalize VecSetValuesBlockedLocal
VecCreateMPICUDAWithArray VecPow VecSetValuesLocal
VecCreateMPIWithArray VecReciprocal VecShift
VecCreateSeq VecRestoreArrays VecStashSetInitialSize
VecCreateSeqCUDA VecScale VecStepMaxBounded
VecCreateSeqCUDAWithArray VecScatterBegin VecTDot
VecCreateSeqViennaCL VecScatterCreate VecUniqueEntries
VecCreateSeqWithArray VecScatterCreateToAll VecWAXPY
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
Deprecated - Functionality scheduled for removal in future versions
VecLockPop VecLockPush

Table of Contents