petsc-master 2018-12-08
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 VecRealPart
NORM_1_AND_2 VecDuplicate VecRestoreArray
NORM_2 VecDuplicateVecsF90 VecRestoreArray4d
NORM_FROBENIUS VecExp VecRestoreArray4dRead
NORM_INFINITY VecGetArray VecRestoreArrayF90
NORM_MAX VecGetArray4d VecRestoreArrayRead
NormType VecGetArray4dRead VecRestoreArrayReadF90
SCATTER_FORWARD VecGetArrayF90 VecRestoreLocalVector
SCATTER_REVERSE VecGetArrayRead VecRestoreLocalVectorRead
ScatterMode VecGetArrayReadF90 VecScatter
VECMPI VecGetLocalSize VecScatterSetFromOptions
VECMPICUDA VecGetLocalVector VecScatterType
VECMPIVIENNACL VecGetLocalVectorRead VecSet
VECSEQ VecGetOwnershipRange VecSetFromOptions
VECSEQCUDA VecGetOwnershipRanges VecSetValue
VECSEQVIENNACL VecGetSize VecSetValueLocal
VECSTANDARD VecGetValues VecSetValues
Vec VecImaginaryPart VecSqrtAbs
VecAssemblyBegin VecLockGet VecSum
VecAssemblyEnd VecLockPop VecTaggerBox
VecCopy VecLockPush VecType
VecCreate VecLog VecView
VecDestroy VecPermute VecZeroEntries
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