petsc-master 2016-09-28
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 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 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 VecSetLayout
VecCUSPResetArray VecNestSetSubVec VecSetValuesSection
VecFinalizePackage VecNestSetSubVecs
VecGetArray1d VecPlaceArray
No deprecated routines

Table of Contents