petsc-3.6.1 2015-07-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 VecDestroy VecPermute
NORM_1_AND_2 VecDestroyVecsF90 VecRestoreArray
NORM_2 VecDuplicate VecRestoreArray4d
NORM_FROBENIUS VecDuplicateVecsF90 VecRestoreArray4dRead
NORM_INFINITY VecExp VecRestoreArrayF90
NORM_MAX VecGetArray VecRestoreArrayRead
NormType VecGetArray4d VecRestoreArrayReadF90
SCATTER_FORWARD VecGetArray4dRead VecRestoreLocalVector
SCATTER_REVERSE VecGetArrayF90 VecRestoreLocalVectorRead
ScatterMode VecGetArrayRead VecScatter
VECMPI VecGetArrayReadF90 VecSet
VECMPICUSP VecGetLocalSize VecSetFromOptions
VECMPIVIENNACL VecGetLocalVector VecSetValue
VECSEQ VecGetLocalVectorRead VecSetValueLocal
VECSEQCUSP VecGetOwnershipRange VecSetValues
VECSEQVIENNACL VecGetOwnershipRanges VecSqrtAbs
VECSTANDARD VecGetSize VecSum
Vec VecGetValues VecType
VecAssemblyBegin VecLockGet VecView
VecAssemblyEnd VecLockPop VecZeroEntries
VecCopy VecLockPush
VecCreate VecLog
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecEqual VecScatterCreateToZero
VECNEST VecGetArrays VecScatterDestroy
VecAXPBY VecGetType VecScatterEnd
VecAXPBYPCZ VecLoad VecScatterFinalizeForGPU
VecAXPY VecMAXPY VecScatterInitializeForGPU
VecAYPX VecMDot VecScatterView
VecAbs VecMTDot VecSetLocalToGlobalMapping
VecCUSPGetCUDAArray VecMax VecSetOption
VecChop VecMin VecSetRandom
VecConjugate VecNorm VecSetSizes
VecContourScale VecNormAvailable VecSetType
VecCreateMPI VecNormalize VecSetValuesBlocked
VecCreateMPIWithArray VecPow VecSetValuesBlockedLocal
VecCreateSeq VecReciprocal VecSetValuesLocal
VecCreateSeqViennaCL VecRestoreArrays VecShift
VecCreateSeqWithArray VecScale VecStashSetInitialSize
VecDestroyVecs VecScatterBegin VecTDot
VecDot VecScatterCreate VecUniqueEntries
VecDotRealPart VecScatterCreateLocal VecWAXPY
VecDuplicateVecs VecScatterCreateToAll
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 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