petsc-3.8.4 2018-03-24
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 VecCreate VecPermute
NORM_1_AND_2 VecDestroy VecRestoreArray
NORM_2 VecDestroyVecsF90 VecRestoreArray4d
NORM_FROBENIUS VecDuplicate VecRestoreArray4dRead
NORM_INFINITY VecDuplicateVecsF90 VecRestoreArrayF90
NORM_MAX VecExp VecRestoreArrayRead
NormType VecGetArray VecRestoreArrayReadF90
SCATTER_FORWARD VecGetArray4d VecRestoreLocalVector
SCATTER_REVERSE VecGetArray4dRead VecRestoreLocalVectorRead
ScatterMode VecGetArrayF90 VecScatter
VECMPI VecGetArrayRead VecSet
VECMPICUDA VecGetArrayReadF90 VecSetFromOptions
VECMPICUSP VecGetLocalSize VecSetValue
VECMPIVIENNACL VecGetLocalVector VecSetValueLocal
VECSEQ VecGetLocalVectorRead VecSetValues
VECSEQCUDA VecGetOwnershipRange VecSqrtAbs
VECSEQCUSP VecGetOwnershipRanges VecSum
VECSEQVIENNACL VecGetSize VecTaggerBox
VECSTANDARD VecGetValues VecType
Vec VecLockGet VecView
VecAssemblyBegin VecLockPop VecZeroEntries
VecAssemblyEnd VecLockPush
VecCopy VecLog
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecCreateSeqCUDA VecScale
VECNEST VecCreateSeqCUDAWithArray VecScatterBegin
VecAXPBY VecCreateSeqCUSP VecScatterCreate
VecAXPBYPCZ VecCreateSeqViennaCL VecScatterCreateLocal
VecAXPY VecCreateSeqWithArray VecScatterCreateToAll
VecAYPX VecDestroyVecs VecScatterCreateToZero
VecAbs VecDot VecScatterDestroy
VecCUDAGetArrayRead VecDotRealPart VecScatterEnd
VecCUDAGetArrayReadWrite VecDuplicateVecs VecScatterFinalizeForGPU
VecCUDARestoreArrayRead VecEqual VecScatterInitializeForGPU
VecCUDARestoreArrayReadWrite VecGetArrays VecScatterView
VecCUDARestoreArrayWrite VecGetType VecSetLocalToGlobalMapping
VecCUSPGetArrayRead VecLoad VecSetOption
VecCUSPGetArrayReadWrite VecMAXPY VecSetRandom
VecCUSPGetArrayWrite VecMDot VecSetSizes
VecCUSPRestoreArrayRead VecMTDot VecSetType
VecCUSPRestoreArrayReadWrite VecMax VecSetValuesBlocked
VecCUSPRestoreArrayWrite VecMin VecSetValuesBlockedLocal
VecChop VecNorm VecSetValuesLocal
VecConjugate VecNormAvailable VecShift
VecCreateMPI VecNormalize VecStashSetInitialSize
VecCreateMPICUDAWithArray VecPow VecTDot
VecCreateMPIWithArray VecReciprocal VecUniqueEntries
VecCreateSeq VecRestoreArrays VecWAXPY
Advanced - Setting more advanced options and customization
ISComplementVec VecNormBegin VecTaggerAbsoluteGetBox
PetscCommSplitReductionBegin VecNormEnd VecTaggerAbsoluteSetBox
VecAppendOptionsPrefix VecPointwiseDivide VecTaggerAndGetSubs
VecBoundGradientProjection VecPointwiseMax VecTaggerAndSetSubs
VecCUDAGetArrayWrite VecPointwiseMaxAbs VecTaggerCDFGetBox
VecCUSPGetCUDAArrayRead VecPointwiseMin VecTaggerCDFGetMethod
VecCUSPGetCUDAArrayReadWrite VecPointwiseMult VecTaggerCDFIterativeGetTolerances
VecCUSPGetCUDAArrayWrite VecRegister VecTaggerCDFIterativeSetTolerances
VecCUSPRestoreCUDAArrayRead VecRegisterAll VecTaggerCDFMethod
VecCUSPRestoreCUDAArrayReadWrite VecRestoreSubVector VecTaggerCDFSetBox
VecCUSPRestoreCUDAArrayWrite VecScatterCopy VecTaggerCDFSetMethod
VecCreateGhost VecSetBlockSize VecTaggerComputeBoxes
VecCreateGhostBlock VecSetOperation VecTaggerComputeIS
VecCreateGhostBlockWithArray VecSetOptionsPrefix VecTaggerCreate
VecCreateGhostWithArray VecSetUp VecTaggerDestroy
VecCreateNest VecStashGetInfo VecTaggerGetBlockSize
VecCreateShared VecStashView VecTaggerGetInvert
VecDotBegin VecStepBoundInfo VecTaggerGetType
VecDotEnd VecStepMax VecTaggerOrGetSubs
VecDotNorm2 VecStrideGather VecTaggerOrSetSubs
VecGetBlockSize VecStrideGatherAll VecTaggerRegister
VecGetLocalToGlobalMapping VecStrideMax VecTaggerRegisterAll
VecGetOptionsPrefix VecStrideMaxAll VecTaggerRelativeGetBox
VecGetSubVector VecStrideMin VecTaggerRelativeSetBox
VecGhostGetLocalForm VecStrideMinAll VecTaggerSetBlockSize
VecGhostIsLocalForm VecStrideNorm VecTaggerSetFromOptions
VecGhostRestoreLocalForm VecStrideNormAll VecTaggerSetInvert
VecGhostUpdateBegin VecStrideScale VecTaggerSetType
VecGhostUpdateEnd VecStrideScaleAll VecTaggerSetUp
VecISAXPY VecStrideScatter VecTaggerType
VecISSet VecStrideScatterAll VecTaggerView
VecMDotBegin VecStrideSet VecWhichBetween
VecMDotEnd VecStrideSubSetGather VecWhichBetweenOrEqual
VecMPISetGhost VecStrideSubSetScatter VecWhichEqual
VecMTDotBegin VecSwap VecWhichGreaterThan
VecMTDotEnd VecTDotBegin VecWhichLessThan
VecMaxPointwiseDivide VecTDotEnd Vecs
VecMedian VecTagger
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage VecGetArray2d VecReplaceArray
ISInitializePackage VecGetArray2dRead VecResetArray
PetscSFCreateFromZero VecGetArray3d VecRestoreArray1d
SCATTER_FORWARD_LOCAL VecGetArray3dRead VecRestoreArray1dRead
SCATTER_REVERSE_LOCAL VecGetArrayPair VecRestoreArray2d
VecCUDAPlaceArray VecGetLayout VecRestoreArray2dRead
VecCUDAReplaceArray VecGetValuesSection VecRestoreArray3d
VecCUDAResetArray VecInitializePackage VecRestoreArray3dRead
VecCUSPPlaceArray VecNestGetSize VecRestoreArrayPair
VecCUSPReplaceArray VecNestGetSubVec VecScatterGetMerged
VecCUSPResetArray VecNestGetSubVecs VecSetLayout
VecFinalizePackage VecNestSetSubVec VecSetValuesSection
VecGetArray1d VecNestSetSubVecs VecTaggerFinalizePackage
VecGetArray1dRead VecPlaceArray VecTaggerInitializePackage
No deprecated routines

Table of Contents