petsc-master 2017-06-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 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 VecTDotEnd
PetscCommSplitReductionBegin VecNormBegin VecTagger
VecAppendOptionsPrefix VecNormEnd VecTaggerAbsoluteGetBox
VecBoundGradientProjection VecPointwiseDivide VecTaggerAbsoluteSetBox
VecCUDAGetArrayWrite VecPointwiseMax VecTaggerAndGetSubs
VecCUSPGetCUDAArrayRead VecPointwiseMaxAbs VecTaggerAndSetSubs
VecCUSPGetCUDAArrayReadWrite VecPointwiseMin VecTaggerCDFGetBox
VecCUSPGetCUDAArrayWrite VecPointwiseMult VecTaggerCDFGetMethod
VecCUSPRestoreCUDAArrayRead VecRegister VecTaggerCDFIterativeGetTolerances
VecCUSPRestoreCUDAArrayReadWrite VecRegisterAll VecTaggerCDFIterativeSetTolerances
VecCUSPRestoreCUDAArrayWrite VecRestoreSubVector VecTaggerCDFMethod
VecCreateGhost VecScatterCopy VecTaggerCDFSetBox
VecCreateGhostBlock VecSetBlockSize VecTaggerCDFSetMethod
VecCreateGhostBlockWithArray VecSetOperation VecTaggerCreate
VecCreateGhostWithArray VecSetOptionsPrefix VecTaggerDestroy
VecCreateNest VecSetUp VecTaggerGetBlockSize
VecCreateShared VecStashGetInfo VecTaggerGetInvert
VecDotBegin VecStashView VecTaggerGetType
VecDotEnd VecStepBoundInfo VecTaggerOrGetSubs
VecDotNorm2 VecStepMax VecTaggerOrSetSubs
VecGetBlockSize VecStrideGather VecTaggerRegister
VecGetLocalToGlobalMapping VecStrideGatherAll VecTaggerRegisterAll
VecGetOptionsPrefix VecStrideMax VecTaggerRelativeGetBox
VecGetSubVector VecStrideMaxAll VecTaggerRelativeSetBox
VecGhostGetLocalForm VecStrideMin VecTaggerSetBlockSize
VecGhostIsLocalForm VecStrideMinAll VecTaggerSetFromOptions
VecGhostRestoreLocalForm VecStrideNorm VecTaggerSetInvert
VecGhostUpdateBegin VecStrideNormAll VecTaggerSetType
VecGhostUpdateEnd VecStrideScale VecTaggerSetUp
VecISAXPY VecStrideScaleAll VecTaggerType
VecISSet VecStrideScatter VecTaggerView
VecMDotBegin VecStrideScatterAll VecWhichBetween
VecMDotEnd VecStrideSet VecWhichBetweenOrEqual
VecMPISetGhost VecStrideSubSetGather VecWhichEqual
VecMTDotBegin VecStrideSubSetScatter VecWhichGreaterThan
VecMTDotEnd VecSwap VecWhichLessThan
VecMaxPointwiseDivide VecTDotBegin Vecs
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
None: Not yet cataloged
VecTaggerComputeBoxes VecTaggerComputeIS

Table of Contents