petsc-3.5.4 2015-05-23
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 VecAssemblyBegin VecLog
NORM_1_AND_2 VecAssemblyEnd VecPermute
NORM_2 VecCopy VecRestoreArray
NORM_FROBENIUS VecCreate VecRestoreArray4d
NORM_INFINITY VecDestroy VecRestoreArrayF90
NORM_MAX VecDestroyVecsF90 VecRestoreArrayRead
NormType VecDuplicate VecScatter
SCATTER_FORWARD VecDuplicateVecsF90 VecSet
SCATTER_REVERSE VecExp VecSetFromOptions
ScatterMode VecGetArray VecSetValue
VECMPI VecGetArray4d VecSetValueLocal
VECMPICUSP VecGetArrayF90 VecSetValues
VECMPIVIENNACL VecGetArrayRead VecSqrtAbs
VECSEQ VecGetLocalSize VecSum
VECSEQCUSP VecGetOwnershipRange VecType
VECSEQVIENNACL VecGetOwnershipRanges VecView
VECSTANDARD VecGetSize VecZeroEntries
Vec VecGetValues
Intermediate - Setting options for algorithms and data structures
VECNEST VecGetArrays VecScatterCreateToZero
VecAXPBY VecGetType VecScatterDestroy
VecAXPBYPCZ VecLoad VecScatterEnd
VecAXPY VecMAXPY VecScatterFinalizeForGPU
VecAYPX VecMDot VecScatterInitializeForGPU
VecAbs VecMTDot VecScatterView
VecChop VecMax VecSetLocalToGlobalMapping
VecConjugate VecMin VecSetOption
VecContourScale VecNorm VecSetRandom
VecCreateMPI VecNormAvailable VecSetSizes
VecCreateMPIWithArray VecNormalize 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
Advanced - Setting more advanced options and customization
ISComplementVec VecMDotEnd VecStrideGather
PetscCommSplitReductionBegin VecMPISetGhost VecStrideGatherAll
VecAppendOptionsPrefix VecMTDotBegin VecStrideMax
VecBoundGradientProjection VecMTDotEnd VecStrideMaxAll
VecCreateGhost VecMaxPointwiseDivide VecStrideMin
VecCreateGhostBlock VecMedian VecStrideMinAll
VecCreateGhostBlockWithArray VecNormBegin VecStrideNorm
VecCreateGhostWithArray VecNormEnd VecStrideNormAll
VecCreateNest VecPointwiseDivide VecStrideScale
VecCreateShared VecPointwiseMax VecStrideScaleAll
VecDotBegin VecPointwiseMaxAbs VecStrideScatter
VecDotEnd VecPointwiseMin VecStrideScatterAll
VecDotNorm2 VecPointwiseMult VecStrideSet
VecGetBlockSize VecRegister VecStrideSubSetGather
VecGetLocalToGlobalMapping VecRegisterAll VecStrideSubSetScatter
VecGetOptionsPrefix VecRestoreSubVector VecSwap
VecGetSubVector VecScatterCopy VecTDotBegin
VecGhostGetLocalForm VecSetBlockSize VecTDotEnd
VecGhostIsLocalForm VecSetOperation VecWhichBetween
VecGhostRestoreLocalForm VecSetOptionsPrefix VecWhichBetweenOrEqual
VecGhostUpdateBegin VecSetUp VecWhichEqual
VecGhostUpdateEnd VecStashGetInfo VecWhichGreaterThan
VecISAXPY VecStashView VecWhichLessThan
VecISSet VecStepBoundInfo Vecs
VecMDotBegin VecStepMax
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

Table of Contents