petsc-master 2018-09-17
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 VecDot VecScatterEnd
VECNEST VecDotRealPart VecScatterFinalizeForGPU
VECNODE VecDuplicateVecs VecScatterGetType
VecAXPBY VecEqual VecScatterInitializeForGPU
VecAXPBYPCZ VecGetArrays VecScatterSetData
VecAXPY VecGetType VecScatterSetType
VecAYPX VecLoad VecScatterSetUp
VecAbs VecMAXPY VecScatterView
VecCUDAGetArrayRead VecMDot VecSetLocalToGlobalMapping
VecCUDAGetArrayReadWrite VecMTDot VecSetOption
VecCUDARestoreArrayRead VecMax VecSetRandom
VecCUDARestoreArrayReadWrite VecMin VecSetSizes
VecCUDARestoreArrayWrite VecNorm VecSetType
VecChop VecNormAvailable VecSetValuesBlocked
VecConjugate VecNormalize VecSetValuesBlockedLocal
VecCreateMPI VecPow VecSetValuesLocal
VecCreateMPICUDAWithArray VecReciprocal VecShift
VecCreateMPIWithArray VecRestoreArrays VecStashSetInitialSize
VecCreateSeq VecScale VecStepMaxBounded
VecCreateSeqCUDA VecScatterBegin VecTDot
VecCreateSeqCUDAWithArray VecScatterCreateToAll VecUniqueEntries
VecCreateSeqViennaCL VecScatterCreateToZero VecWAXPY
VecCreateSeqWithArray VecScatterCreateWithData
VecDestroyVecs 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 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
None: Not yet cataloged
VecScatterCreate

Table of Contents