petsc-3.4.5 2014-06-29

Vectors: Examples

PETSc vectors (Vec objects) are used to store the field variables in PDE-based (or other) simulations.

Beginner - Basic usage
NORM_1 VecAssemblyEnd VecLog
NORM_1_AND_2 VecCopy VecPermute
NORM_2 VecCreate VecRestoreArray
NORM_FROBENIUS VecDestroy VecRestoreArray4d
NORM_INFINITY VecDestroyVecsF90 VecRestoreArrayF90
NORM_MAX VecDuplicate VecRestoreArrayRead
NormType VecDuplicateVecsF90 VecScatter
SCATTER_FORWARD VecExp VecSet
SCATTER_REVERSE VecGetArray VecSetFromOptions
ScatterMode VecGetArray4d VecSetValue
VECMPI VecGetArrayF90 VecSetValueLocal
VECMPICUSP VecGetArrayRead VecSetValues
VECSEQ VecGetLocalSize VecSqrtAbs
VECSEQCUSP VecGetOwnershipRange VecSum
VECSTANDARD VecGetOwnershipRanges VecType
Vec VecGetSize VecView
VecAssemblyBegin VecGetValues VecZeroEntries
Intermediate - Setting options for algorithms and data structures
VECNEST VecGetType VecScatterEnd
VecAXPBY VecLoad VecScatterFinalizeForGPU
VecAXPBYPCZ VecMAXPY VecScatterInitializeForGPU
VecAXPY VecMDot VecScatterView
VecAYPX VecMTDot VecSetLocalToGlobalMapping
VecAbs VecMax VecSetLocalToGlobalMappingBlock
VecChop VecMin VecSetOption
VecConjugate VecNorm VecSetRandom
VecContourScale VecNormAvailable VecSetSizes
VecCreateMPI VecNormalize VecSetType
VecCreateMPIWithArray VecReciprocal VecSetValuesBlocked
VecCreateSeq VecRestoreArrays VecSetValuesBlockedLocal
VecCreateSeqWithArray VecScale VecSetValuesLocal
VecDestroyVecs VecScatterBegin VecShift
VecDot VecScatterCreate VecStashSetInitialSize
VecDotRealPart VecScatterCreateLocal VecTDot
VecDuplicateVecs VecScatterCreateToAll VecWAXPY
VecEqual VecScatterCreateToZero
VecGetArrays VecScatterDestroy
Advanced - Setting more advanced options and customization
PetscCommSplitReductionBegin VecGhostUpdateEnd VecSetUp
VecAppendOptionsPrefix VecMDotBegin VecStashGetInfo
VecCreateGhost VecMDotEnd VecStashView
VecCreateGhostBlock VecMPISetGhost VecStrideGather
VecCreateGhostBlockWithArray VecMTDotBegin VecStrideGatherAll
VecCreateGhostWithArray VecMTDotEnd VecStrideMax
VecCreateNest VecMaxPointwiseDivide VecStrideMaxAll
VecCreateShared VecNormBegin VecStrideMin
VecDotBegin VecNormEnd VecStrideMinAll
VecDotEnd VecPointwiseDivide VecStrideNorm
VecDotNorm2 VecPointwiseMax VecStrideNormAll
VecGetBlockSize VecPointwiseMaxAbs VecStrideScale
VecGetLocalToGlobalMapping VecPointwiseMin VecStrideScaleAll
VecGetLocalToGlobalMappingBlock VecPointwiseMult VecStrideScatter
VecGetOptionsPrefix VecRegister VecStrideScatterAll
VecGetSubVector VecRegisterAll VecStrideSet
VecGhostGetLocalForm VecRestoreSubVector VecSwap
VecGhostIsLocalForm VecScatterCopy VecTDotBegin
VecGhostRestoreLocalForm VecSetBlockSize VecTDotEnd
VecGhostUpdateBegin VecSetOptionsPrefix Vecs
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