petsc-master 2017-10-20
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 VecNormBegin VecTaggerAbsoluteGetBox
PetscCommSplitReductionBegin VecNormEnd VecTaggerAbsoluteSetBox
VecAppendOptionsPrefix VecPointwiseDivide VecTaggerAndGetSubs
VecBoundGradientProjection VecPointwiseMax VecTaggerAndSetSubs
VecCUDAGetArrayWrite VecPointwiseMaxAbs VecTaggerCDFGetBox
VecCUSPGetCUDAArrayRead VecPointwiseMin VecTaggerCDFGetMethod
VecCUSPGetCUDAArrayReadWrite VecPointwiseMult VecTaggerCDFIterativeGetTolerances
VecCUSPGetCUDAArrayWrite VecRegister VecTaggerCDFIterativeSetTolerances
VecCUSPRestoreCUDAArrayRead VecRegisterAll VecTaggerCDFMethod
VecCUSPRestoreCUDAArrayReadWrite VecRestoreSubVector VecTaggerCDFSetBox
VecCUSPRestoreCUDAArrayWrite VecScatterCopy VecTaggerCDFSetMethod
VecCreateGhost VecSetBlockSize VecTaggerComputeBoxes
VecCreateGhostBlock VecSetOperation VecTaggerComputeIS
VecCreateGhostBlockWithArray VecSetOptionsPrefix VecTaggerCreate
VecCreateGhostWithArray VecSetUp VecTaggerDestroy
VecCreateNest VecStashGetInfo VecTaggerGetBlockSize
VecCreateShared VecStashView VecTaggerGetInvert
VecDotBegin VecStepBoundInfo VecTaggerGetType
VecDotEnd VecStepMax VecTaggerOrGetSubs
VecDotNorm2 VecStrideGather VecTaggerOrSetSubs
VecGetBlockSize VecStrideGatherAll VecTaggerRegister
VecGetLocalToGlobalMapping VecStrideMax VecTaggerRegisterAll
VecGetOptionsPrefix VecStrideMaxAll VecTaggerRelativeGetBox
VecGetSubVector VecStrideMin VecTaggerRelativeSetBox
VecGhostGetLocalForm VecStrideMinAll VecTaggerSetBlockSize
VecGhostIsLocalForm VecStrideNorm VecTaggerSetFromOptions
VecGhostRestoreLocalForm VecStrideNormAll VecTaggerSetInvert
VecGhostUpdateBegin VecStrideScale VecTaggerSetType
VecGhostUpdateEnd VecStrideScaleAll VecTaggerSetUp
VecISAXPY VecStrideScatter VecTaggerType
VecISSet VecStrideScatterAll VecTaggerView
VecMDotBegin VecStrideSet VecWhichBetween
VecMDotEnd VecStrideSubSetGather VecWhichBetweenOrEqual
VecMPISetGhost VecStrideSubSetScatter VecWhichEqual
VecMTDotBegin VecSwap VecWhichGreaterThan
VecMTDotEnd VecTDotBegin VecWhichLessThan
VecMaxPointwiseDivide VecTDotEnd Vecs
VecMedian VecTagger
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
ISFinalizePackage VecGetArray2d VecResetArray
ISInitializePackage VecGetArray2dRead VecRestoreArray1d
PetscSFCreateFromZero VecGetArray3d VecRestoreArray1dRead
SCATTER_FORWARD_LOCAL VecGetArray3dRead VecRestoreArray2d
SCATTER_REVERSE_LOCAL VecGetArrayPair VecRestoreArray2dRead
VecCUDAPlaceArray VecGetLayout VecRestoreArray3d
VecCUDAReplaceArray VecInitializePackage VecRestoreArray3dRead
VecCUDAResetArray VecNestGetSize VecRestoreArrayPair
VecCUSPPlaceArray VecNestGetSubVec VecScatterGetMerged
VecCUSPReplaceArray VecNestGetSubVecs VecSetLayout
VecCUSPResetArray VecNestSetSubVec VecSetValuesSection
VecFinalizePackage VecNestSetSubVecs VecTaggerFinalizePackage
VecGetArray1d VecPlaceArray VecTaggerInitializePackage
VecGetArray1dRead VecReplaceArray
No deprecated routines

Table of Contents