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

Table of Contents