petsc-3.6.1 2015-08-06
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_AND_2 VecGetArray VecRestoreArray
NORM_1 VecGetArrayReadF90 VecRestoreArrayReadF90
NORM_2 VecGetArrayRead VecRestoreArrayRead
NORM_FROBENIUS VecGetLocalSize VecRestoreLocalVector
NORM_INFINITY VecGetLocalVector VecRestoreLocalVectorRead
NORM_MAX VecGetLocalVectorRead VecScatter
NormType VecGetOwnershipRange VECSEQCUSP
SCATTER_FORWARD VecGetOwnershipRanges VECSEQ
ScatterMode VecGetSize VECSEQVIENNACL
SCATTER_REVERSE VecGetValues VecSetFromOptions
VecAssemblyBegin Vec VecSet
VecAssemblyEnd VecLockGet VecSetValue
VecCopy VecLockPop VecSetValueLocal
VecCreate VecLockPush VecSetValues
VecDestroy VecLog VecSqrtAbs
VecDestroyVecsF90 VECMPICUSP VECSTANDARD
VecDuplicate VECMPI VecSum
VecDuplicateVecsF90 VECMPIVIENNACL VecType
VecExp VecPermute VecView
VecGetArray4d VecRestoreArray4d VecZeroEntries
VecGetArray4dRead VecRestoreArray4dRead
VecGetArrayF90 VecRestoreArrayF90
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecGetArrays VecScatterCreateToZero
VecAbs VecGetType VecScatterDestroy
VecAXPBY VecLoad VecScatterEnd
VecAXPBYPCZ VecMax VecScatterFinalizeForGPU
VecAXPY VecMAXPY VecScatterInitializeForGPU
VecAYPX VecMDot VecScatterView
VecChop VecMin VecSetLocalToGlobalMapping
VecConjugate VecMTDot VecSetOption
VecContourScale VECNEST VecSetRandom
VecCreateMPI VecNormalize VecSetSizes
VecCreateMPIWithArray VecNormAvailable VecSetType
VecCreateSeq VecNorm VecSetValuesBlocked
VecCreateSeqViennaCL VecPow VecSetValuesBlockedLocal
VecCreateSeqWithArray VecReciprocal VecSetValuesLocal
VecCUSPGetCUDAArray VecRestoreArrays VecShift
VecDestroyVecs VecScale VecStashSetInitialSize
VecDot VecScatterBegin VecTDot
VecDotRealPart VecScatterCreate VecUniqueEntries
VecDuplicateVecs VecScatterCreateLocal VecWAXPY
VecEqual VecScatterCreateToAll
Advanced - Setting more advanced options and customization
ISComplementVec VecMDotBegin VecStepMax
PetscCommSplitReductionBegin VecMDotEnd VecStrideGatherAll
VecAppendOptionsPrefix VecMedian VecStrideGather
VecBoundGradientProjection VecMPISetGhost VecStrideMaxAll
VecCreateGhostBlock VecMTDotBegin VecStrideMax
VecCreateGhostBlockWithArray VecMTDotEnd VecStrideMinAll
VecCreateGhost VecNormBegin VecStrideMin
VecCreateGhostWithArray VecNormEnd VecStrideNormAll
VecCreateNest VecPointwiseDivide VecStrideNorm
VecCreateShared VecPointwiseMaxAbs VecStrideScaleAll
VecDotBegin VecPointwiseMax VecStrideScale
VecDotEnd VecPointwiseMin VecStrideScatterAll
VecDotNorm2 VecPointwiseMult VecStrideScatter
VecGetBlockSize VecRegisterAll VecStrideSet
VecGetLocalToGlobalMapping VecRegister VecStrideSubSetGather
VecGetOptionsPrefix VecRestoreSubVector VecStrideSubSetScatter
VecGetSubVector VecScatterCopy VecSwap
VecGhostGetLocalForm VecSetBlockSize VecTDotBegin
VecGhostIsLocalForm VecSetOperation VecTDotEnd
VecGhostRestoreLocalForm VecSetOptionsPrefix VecWhichBetween
VecGhostUpdateBegin VecSetUp VecWhichBetweenOrEqual
VecGhostUpdateEnd Vecs VecWhichEqual
VecISAXPY VecStashGetInfo VecWhichGreaterThan
VecISSet VecStashView VecWhichLessThan
VecMaxPointwiseDivide VecStepBoundInfo
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage VecGetLayout VecRestoreArray1dRead
ISInitializePackage VecInitializePackage VecRestoreArray2d
SCATTER_FORWARD_LOCAL VecNestGetSize VecRestoreArray2dRead
SCATTER_REVERSE_LOCAL VecNestGetSubVec VecRestoreArray3d
VecFinalizePackage VecNestGetSubVecs VecRestoreArray3dRead
VecGetArray1d VecNestSetSubVec VecScatterGetMerged
VecGetArray1dRead VecNestSetSubVecs VecScatterRemap
VecGetArray2d VecPlaceArray VecSetLayout
VecGetArray2dRead VecReplaceArray VecSetValuesSection
VecGetArray3d VecResetArray
VecGetArray3dRead VecRestoreArray1d
No deprecated routines

Table of Contents