petsc-dev 2014-08-22
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 VecGetType VecScatterCreateToZero
VecAXPBY VecLoad VecScatterDestroy
VecAXPBYPCZ VecMax VecScatterEnd
VecAXPY VecMAXPY VecScatterFinalizeForGPU
VecAYPX VecMDot VecScatterInitializeForGPU
VecChop VecMin VecScatterView
VecConjugate VecMTDot VecSetLocalToGlobalMapping
VecContourScale VECNEST VecSetOption
VecCreateMPI VecNormalize VecSetRandom
VecCreateMPIWithArray VecNormAvailable VecSetSizes
VecCreateSeq VecNorm VecSetType
VecCreateSeqViennaCL VecPow VecSetValuesBlocked
VecCreateSeqWithArray VecReciprocal VecSetValuesBlockedLocal
VecDestroyVecs VecRestoreArrays VecSetValuesLocal
VecDot VecScale VecShift
VecDotRealPart VecScatterBegin VecStashSetInitialSize
VecDuplicateVecs VecScatterCreate VecTDot
VecEqual VecScatterCreateLocal VecUniqueEntries
VecGetArrays VecScatterCreateToAll VecWAXPY
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 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