petsc-3.7.3 2016-07-24
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 VecCopy VecLockPush
NORM_1_AND_2 VecCreate VecLog
NORM_2 VecDestroy VecPermute
NORM_FROBENIUS VecDestroyVecsF90 VecRestoreArray
NORM_INFINITY VecDuplicate VecRestoreArray4d
NORM_MAX VecDuplicateVecsF90 VecRestoreArray4dRead
NormType VecExp VecRestoreArrayF90
SCATTER_FORWARD VecGetArray VecRestoreArrayRead
SCATTER_REVERSE VecGetArray4d VecRestoreArrayReadF90
ScatterMode VecGetArray4dRead VecRestoreLocalVector
VECMPI VecGetArrayF90 VecRestoreLocalVectorRead
VECMPICUDA VecGetArrayRead VecScatter
VECMPICUSP VecGetArrayReadF90 VecSet
VECMPIVIENNACL VecGetLocalSize VecSetFromOptions
VECSEQ VecGetLocalVector VecSetValue
VECSEQCUDA VecGetLocalVectorRead VecSetValueLocal
VECSEQCUSP VecGetOwnershipRange VecSetValues
VECSEQVIENNACL VecGetOwnershipRanges VecSqrtAbs
VECSTANDARD VecGetSize VecSum
Vec VecGetValues VecType
VecAssemblyBegin VecLockGet VecView
VecAssemblyEnd VecLockPop VecZeroEntries
Intermediate - Setting options for algorithms and data structures
PetscSectionVecNorm VecCreateSeqCUSP VecScatterCreate
VECNEST VecCreateSeqViennaCL VecScatterCreateLocal
VecAXPBY VecCreateSeqWithArray VecScatterCreateToAll
VecAXPBYPCZ VecDestroyVecs VecScatterCreateToZero
VecAXPY VecDot VecScatterDestroy
VecAYPX VecDotRealPart VecScatterEnd
VecAbs VecDuplicateVecs VecScatterFinalizeForGPU
VecCUDAGetArrayRead VecEqual VecScatterInitializeForGPU
VecCUDAGetArrayReadWrite VecGetArrays VecScatterView
VecCUDARestoreArrayRead VecGetType VecSetLocalToGlobalMapping
VecCUDARestoreArrayReadWrite VecLoad VecSetOption
VecCUDARestoreArrayWrite VecMAXPY VecSetRandom
VecCUSPGetArrayRead VecMDot VecSetSizes
VecCUSPGetArrayReadWrite VecMTDot VecSetType
VecCUSPGetArrayWrite VecMax VecSetValuesBlocked
VecCUSPRestoreArrayRead VecMin VecSetValuesBlockedLocal
VecCUSPRestoreArrayReadWrite VecNorm VecSetValuesLocal
VecCUSPRestoreArrayWrite VecNormAvailable VecShift
VecChop VecNormalize VecStashSetInitialSize
VecConjugate VecPow VecTDot
VecCreateMPI VecReciprocal VecUniqueEntries
VecCreateMPIWithArray VecRestoreArrays VecWAXPY
VecCreateSeq VecScale
VecCreateSeqCUDA VecScatterBegin
Advanced - Setting more advanced options and customization
ISComplementVec VecGhostUpdateBegin VecStashView
PetscCommSplitReductionBegin VecGhostUpdateEnd VecStepBoundInfo
VecAppendOptionsPrefix VecISAXPY VecStepMax
VecBoundGradientProjection VecISSet VecStrideGather
VecCUDAGetArrayWrite VecMDotBegin VecStrideGatherAll
VecCUSPGetCUDAArrayRead VecMDotEnd VecStrideMax
VecCUSPGetCUDAArrayReadWrite VecMPISetGhost VecStrideMaxAll
VecCUSPGetCUDAArrayWrite VecMTDotBegin VecStrideMin
VecCUSPRestoreCUDAArrayRead VecMTDotEnd VecStrideMinAll
VecCUSPRestoreCUDAArrayReadWrite VecMaxPointwiseDivide VecStrideNorm
VecCUSPRestoreCUDAArrayWrite VecMedian VecStrideNormAll
VecCreateGhost VecNormBegin VecStrideScale
VecCreateGhostBlock VecNormEnd VecStrideScaleAll
VecCreateGhostBlockWithArray VecPointwiseDivide VecStrideScatter
VecCreateGhostWithArray VecPointwiseMax VecStrideScatterAll
VecCreateNest VecPointwiseMaxAbs VecStrideSet
VecCreateShared VecPointwiseMin VecStrideSubSetGather
VecDotBegin VecPointwiseMult VecStrideSubSetScatter
VecDotEnd VecRegister VecSwap
VecDotNorm2 VecRegisterAll VecTDotBegin
VecGetBlockSize VecRestoreSubVector VecTDotEnd
VecGetLocalToGlobalMapping VecScatterCopy VecWhichBetween
VecGetOptionsPrefix VecSetBlockSize VecWhichBetweenOrEqual
VecGetSubVector VecSetOperation VecWhichEqual
VecGhostGetLocalForm VecSetOptionsPrefix VecWhichGreaterThan
VecGhostIsLocalForm VecSetUp VecWhichLessThan
VecGhostRestoreLocalForm VecStashGetInfo Vecs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage VecGetArray1dRead VecReplaceArray
ISInitializePackage VecGetArray2d VecResetArray
PetscSFCreateFromZero VecGetArray2dRead VecRestoreArray1d
SCATTER_FORWARD_LOCAL VecGetArray3d VecRestoreArray1dRead
SCATTER_REVERSE_LOCAL VecGetArray3dRead VecRestoreArray2d
VecCUDAPlaceArray VecGetLayout VecRestoreArray2dRead
VecCUDAReplaceArray VecInitializePackage VecRestoreArray3d
VecCUDAResetArray VecNestGetSize VecRestoreArray3dRead
VecCUSPPlaceArray VecNestGetSubVec VecScatterGetMerged
VecCUSPReplaceArray VecNestGetSubVecs VecScatterRemap
VecCUSPResetArray VecNestSetSubVec VecSetLayout
VecFinalizePackage VecNestSetSubVecs VecSetValuesSection
VecGetArray1d VecPlaceArray
No deprecated routines

Table of Contents