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