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

Table of Contents