petsc-3.3-p7 2013-05-11

Matrices Mat: : Examples

PETSc matrices (Mat objects) are used to store Jacobians and other sparse matrices in PDE-based (or other) simulations.

Beginner - Basic usage
MATAIJCRL MatMFFDType MatSetUp
MATAIJCUSP MATMPIADJ MatSetValue
MATAIJ MATMPIAIJ MatSetValuesBlockedStencil
MATAIJPERM MATMPIBAIJ MatSetValues
MatAssemblyBegin MATMPISBAIJ MatSetValuesStencil
MatAssemblyEnd MatMultAdd MATSOLVERBAS
MatAssemblyType MatMultConstrained MATSOLVERCHOLMOD
MATBAIJ MatMultHermitianTransposeAdd MATSOLVERESSL
MatCoarsen MatMultHermitianTranspose MATSOLVERLUSOL
MatCoarsenType MatMult MATSOLVERMATLAB
MatColoringType MatMultTransposeAdd MATSOLVERMUMPS
MatCreate MatMultTransposeConstrained MatSolverPackage
MATDENSE MatMultTranspose MATSOLVERPASTIX
MatDestroy MatMumpsSetIcntl MATSOLVERSPOOLES
MatDuplicateOption MatOption MATSOLVERSUPERLU_DIST
MatFactorShiftType MatOrderingType MATSOLVERSUPERLU
MatFactorType MatPartitioning MATSOLVERUMFPACK
MatFDColoring MatPartitioningType MatSORType
MatGetLocalSize MatReuse MatStencil
MatGetOwnershipRange MATSBAIJ MatStructure
MatGetOwnershipRangesColumn MATSEQAIJ MatSuperluSetILUDropTol
MatGetOwnershipRanges MATSEQBAIJ MatTransposeColoring
MatGetSize MATSEQDENSE MatType
MatGetSubMatrixOption MATSEQSBAIJ MatView
Mat MatSetFromOptions MatXAIJSetPreallocation
MatInfoType MatSetSizes
MatLoad MatSetStencil
Intermediate - Setting options for algorithms and data structures
MatAXPY MatGetNThreads MatPtAPNumeric
MatAYPX MatGetRowMaxAbs MatPtAPSymbolic
MatBlockMatSetPreallocation MatGetRowMax MatPythonCreate
MatConvert MatGetRowMinAbs MatPythonSetType
MatCopy MatGetRowMin MatRARt
MatCreateAIJ MatGetRowSum MatRARtNumeric
MatCreateBAIJ MatGetSeqNonzeroStructure MatRARtSymbolic
MatCreateBlockMat MatGetType MatReorderForNonzeroDiagonal
MatCreateDAAD MatHermitianTranspose MatRestoreLocalSubMatrix
MatCreateDense MatIJGetEdgesIS MatRestrict
MatCreateFFT MatIJGetImage MatScale
MatCreateLRC MatIJGetImageIS MatScatterGetVecScatter
MatCreateMPIAdj MatIJGetImageSize MatSeqAIJFromMatlab
MatCreateMPIAIJCRL MatIJGetRowSizes MatSeqAIJSetPreallocation
MatCreateMPIAIJPERM MatIJGetSupport MatSeqBAIJSetPreallocation
MatCreateMPIAIJWithArrays MatIJGetSupportIS MatSeqDenseSetLDA
MatCreateMPIBAIJWithArrays MatIJGetSupportSize MatSeqDenseSetPreallocation
MatCreateMPISBAIJWithArrays MatIJSetEdges MatSeqSBAIJSetPreallocation
MatCreateNormal MatIJSetEdgesIS MatSetBlockSize
MatCreateSBAIJ MatInfo MatSetBlockSizes
MatCreateScatter MatInterpolateAdd MatSetLocalToGlobalMappingBlock
MatCreateSeqAIJCRL MatInterpolate MatSetLocalToGlobalMapping
MatCreateSeqAIJCUSP MatIsHermitian MatSetNThreads
MatCreateSeqAIJFromTriple MatIsHermitianTranspose MatSetOption
MatCreateSeqAIJ MatIsStructurallySymmetric MatSetType
MatCreateSeqAIJPERM MatIsSymmetric MatSetValuesBlocked
MatCreateSeqAIJWithArrays MatIsTranspose MatSetValuesBlockedLocal
MatCreateSeqBAIJ MatMatMult MatSetValuesLocal
MatCreateSeqCUFFT MatMatMultNumeric MatSetValuesRowLocal
MatCreateSeqDense MatMatMultSymbolic MatShift
MatCreateSeqSBAIJ MatMatTransposeMult MATSOLVERPLAPACK
MatCreateTranspose MATMFFD_DS MatStashSetInitialSize
MATDAAD MATMFFD_WP MatTransColoringApplyDenToSp
MatDAADSetCtx MatMPIAdjSetPreallocation MatTransColoringApplySpToDen
MatDAADSetDA MatMPIAIJSetPreallocation MatTransposeColoringCreate
MatDAADSetSNES MatMPIBAIJSetPreallocation MatTransposeColoringDestroy
MatDenseGetLocalMatrix MatMPIDenseSetPreallocation MatTranspose
MatDiagonalScale MatMPISBAIJSetPreallocation MatTransposeMatMult
MatDiagonalSet MatMultAddEqual MatZeroEntries
MatDuplicate MatMultEqual MatZeroRowsColumns
MatEqual MatMultTransposeAddEqual MatZeroRowsColumnsIS
MatFactorGetSolverPackage MatMultTransposeEqual MatZeroRowsColumnsLocal
MatFindNonzeroRows MATNEST MatZeroRowsColumnsLocalIS
MatGetBlockSize MatNorm MatZeroRowsColumnsStencil
MatGetBlockSizes MatPreallocateFinalize MatZeroRows
MatGetColumnNorms MatPreallocateInitialize MatZeroRowsIS
MatGetDiagonal MatPreallocateLocation MatZeroRowsLocal
MatGetFactorAvailable MatPreallocateSet MatZeroRowsLocalIS
MatGetFactor MatPreallocateSetLocal MatZeroRowsStencil
MatGetFactorType MatPreallocateSymmetricSet VecScatterFFTWToPetsc
MatGetInfo MatPreallocateSymmetricSetLocal VecScatterPetscToFFTW
MatGetLocalSubMatrix MatPtAP
Advanced - Setting more advanced options and customization
MatAppendOptionsPrefix MatIJBinMap MatNestSetSubMats
MatAssembled MatIJBinRenumber MatNullSpaceCreate
MATBLOCKMAT MatIJGetEdges MatNullSpaceCreateRigidBody
MatCompositeAddMat MatIJGetMaxRowSize MatNullSpaceDestroy
MATCOMPOSITE MatIJGetMinRowSize MatNullSpace
MatCompositeMerge MatIJGetMultivalued MatNullSpaceRemove
MatCompositeSetType MATIJ MatNullSpaceSetFunction
MatComputeExplicitOperator MatIJMap MatNullSpaceTest
MatConjugate MatIJSetMultivalued MatNullSpaceView
MatCreateComposite MatImaginaryPart MatPermute
MatCreateIS MatInodeGetInodeSizes MatQueryOp
MatCreateMAIJ MatInvertBlockDiagonal MatRealPart
MatCreateMFFD MatISGetLocalMat MatRegisterAll
MatCreateMPIAIJConcatenateSeqAIJ MatIsHermitianKnown MatRegisterBaseName
MatCreateMPIAIJSumSeqAIJ MATIS MatRegisterDAAD
MatCreateMPIAIJWithSplitArrays MatISSetLocalMat MatRegisterDestroy
MatCreateNest MatIsSymmetricKnown MatRegisterDynamic
MatCreateSeqBAIJWithArrays MatMAIJGetAIJ MatRegister
MatCreateSeqSBAIJWithArrays MATMAIJ MatRegisterOp
MatCreateShell MatMAIJRedimension MatRestoreArrayF90
MatDestroyMatrices MatMFFDAddNullSpace MatRestoreArray
MatDestroySeqNonzeroStructure MatMFFDCheckPositivity MatRestoreRow
MatGetArrayF90 MatMFFDDSSetUmin MatRestoreRowUpperTriangular
MatGetArray MatMFFDGetH MatRetrieveValues
MatGetColumnVector MATMFFD MATSCATTER
MatGetDiagonalBlock MatMFFDResetHHistory MatScatterSetVecScatter
MatGetGhosts MatMFFDSetBase MatSeqAIJSetColumnIndices
MatGetInertia MatMFFDSetCheckh MatSeqBAIJSetColumnIndices
MatGetLocalToGlobalMappingBlock MatMFFDSetFunctionError MatSeqSBAIJSetColumnIndices
MatGetLocalToGlobalMapping MatMFFDSetFunction MatSetNearNullSpace
MatGetMultiProcBlock MatMFFDSetFunctioniBase MatSetNullSpace
MatGetOptionsPrefix MatMFFDSetFunctioni MatSetOptionsPrefix
MatGetRedundantMatrix MatMFFDSetHHistory MatSetValuesBatch
MatGetRow MatMFFDSetOptionsPrefix MatSetValuesRow
MatGetRowUpperTriangular MatMFFDSetPeriod MatShellGetContext
MatGetSubMatrices MatMFFDSetType MatShellGetOperation
MatGetSubMatrix MatMFFDWPSetComputeNormU MATSHELL
MatGetTrace MatMissingDiagonal MatShellSetContext
MatGetValues MatMPIAIJSetValuesBatch MatShellSetOperation
MatGetVecsFFTW MatMPIBAIJSetHashTableFactor MatStashGetInfo
MatGetVecs MatMPIBAIJSetValuesBlocked MatStoreValues
MatHasOperation MatNestGetISs
MatIJBin MatNestGetLocalISs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactorSymbolic MatNestGetSubMats
MatCheckCompressedRow MatILUFactor MatNestSetSubMat
MatCholeskyFactor MatILUFactorSymbolic MatNestSetVecType
MatCholeskyFactorNumeric MatIncreaseOverlap MatNullSpaceGetVecs
MatCholeskyFactorSymbolic MatInitializePackage MatOrderingRegisterDynamic
MatCoarsenRegisterDynamic MatLUFactor MatPartitioningRegisterDynamic
MatColoringPatch MatLUFactorNumeric MatRestoreColumnIJ
MatColoringRegisterDynamic MatLUFactorSymbolic MatRestoreRowIJ
MatCreateLocalRef MatMatSolve MatSeqAIJSetPreallocationCSR
MatCreateSubMatrix MatMFFDFinalizePackage MatSeqBAIJSetPreallocationCSR
MatDiagonalScaleLocal MatMFFD MatSetColoring
MatFactorInfo MatMFFDInitializePackage MatSetUnfactored
MatFactorInfoInitialize MatMFFDRegisterAll MatSetValuesAdic
MatFinalizePackage MatMFFDRegisterDestroy MatSetValuesAdifor
MatFindZeroDiagonals MatMFFDRegisterDynamic MatSolveAdd
MatForwardSolve MatMPIAdjCreateNonemptySubcommMat MatSolve
MatGetBrowsOfAcols MatMPIAIJGetLocalMatCondensed MatSolves
MatGetColumnIJ MatMPIAIJGetLocalMat MatSolveTransposeAdd
MatGetCommunicationStructs MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetNearNullSpace MatMPIBAIJSetPreallocationCSR MatSOR
MatGetNullSpace MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetOwnershipRangeColumn MatMultDiagonalBlock PetscPLAPACKFinalizePackage
MatGetRowIJ MatNestGetSize PetscPLAPACKInitializePackage
MatICCFactor MatNestGetSubMat
No deprecated routines

Table of Contents