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
MATAIJ MATSEQAIJSPOOLES MatMult
MATAIJMUMPS MATSEQBAIJ MatMultAdd
MATAIJSPOOLES MATSEQBDIAG MatMultConstrained
MATBAIJ MATSEQDENSE MatMultTranspose
MATBDIAG MATSEQSBAIJ MatMultTransposeAdd
MATCRL MATSEQSBAIJSPOOLES MatMultTransposeConstrained
MATCSRPERM MATSUPERLU MatOption
MATDENSE MATSUPERLU_DIST MatOrderingType
MATDSCPACK MATUMFPACK MatPartitioning
MATESSL Mat MatPartitioningType
MATLUSOL MatAssemblyBegin MatReuse
MATMATLAB MatAssemblyEnd MatSORType
MATMPIADJ MatAssemblyType MatSetFromOptions
MATMPIAIJ MatColoringType MatSetSizes
MATMPIAIJSPOOLES MatCreate MatSetStencil
MATMPIBAIJ MatDestroy MatSetUpPreallocation
MATMPIBDIAG MatDuplicateOption MatSetValue
MATMPIDENSE MatFDColoring MatSetValues
MATMPIROWBS MatGetLocalSize MatSetValuesBlockedStencil
MATMPISBAIJ MatGetOwnershipRange MatSetValuesStencil
MATMPISBAIJSPOOLES MatGetOwnershipRanges MatStencil
MATPLAPACK MatGetSize MatStructure
MATSBAIJ MatGetSubMatrixOption MatType
MATSBAIJMUMPS MatInfoType MatView
MATSBAIJSPOOLES MatLoad
MATSEQAIJ MatMFFDType
Intermediate - Setting options for algorithms and data structures
MATDAAD MatDiagonalScale MatPreallocateSet
MATMFFD_DS MatDiagonalSet MatPreallocateSetLocal
MATMFFD_WP MatDuplicate MatPreallocateSymmetricInitialize
MatAXPY MatEqual MatPreallocateSymmetricSet
MatAYPX MatGetBlockSize MatPreallocateSymmetricSetLocal
MatBlockMatSetPreallocation MatGetDiagonal MatPtAP
MatConvert MatGetInfo MatPtAPNumeric
MatCopy MatGetRowMax MatPtAPSymbolic
MatCreateBlockMat MatGetRowMaxAbs MatReorderForNonzeroDiagonal
MatCreateDAAD MatGetRowMin MatRestrict
MatCreateLRC MatGetRowSum MatScale
MatCreateMPIAIJ MatGetSeqNonzeroStructure MatScatterGetVecScatter
MatCreateMPIAIJWithArrays MatGetType MatSeqAIJSetPreallocation
MatCreateMPIAdj MatInfo MatSeqBAIJSetPreallocation
MatCreateMPIBAIJ MatInterpolate MatSeqBDiagSetPreallocation
MatCreateMPIBDiag MatInterpolateAdd MatSeqDenseSetLDA
MatCreateMPICRL MatIsHermitian MatSeqDenseSetPreallocation
MatCreateMPICSRPERM MatIsHermitianTranspose MatSeqSBAIJSetPreallocation
MatCreateMPIDense MatIsStructurallySymmetric MatSetBlockSize
MatCreateMPIRowbs MatIsSymmetric MatSetLocalToGlobalMapping
MatCreateMPISBAIJ MatIsTranspose MatSetLocalToGlobalMappingBlock
MatCreateNormal MatMPIAIJSetPreallocation MatSetOption
MatCreateScatter MatMPIAdjSetPreallocation MatSetType
MatCreateSeqAIJ MatMPIBAIJSetPreallocation MatSetValuesBlocked
MatCreateSeqAIJWithArrays MatMPIBDiagSetPreallocation MatSetValuesBlockedLocal
MatCreateSeqBAIJ MatMPIDenseSetPreallocation MatSetValuesLocal
MatCreateSeqBAIJWithArrays MatMPISBAIJSetPreallocation MatSetValuesRow
MatCreateSeqBDiag MatMatMult MatSetValuesRowLocal
MatCreateSeqCRL MatMatMultNumeric MatShift
MatCreateSeqCSRPERM MatMatMultSymbolic MatStashSetInitialSize
MatCreateSeqDense MatMatMultTranspose MatTranspose
MatCreateSeqFFTW MatMultAddEqual MatZeroEntries
MatCreateSeqSBAIJ MatMultEqual MatZeroRows
MatCreateSeqSBAIJWithArrays MatMultTransposeAddEqual MatZeroRowsIS
MatDAADSetCtx MatMultTransposeEqual MatZeroRowsLocal
MatDAADSetDA MatNorm MatZeroRowsLocalIS
MatDAADSetSNES MatPreallocateFinalize
MatDenseGetLocalMatrix MatPreallocateInitialize
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetSubMatrices MatNullSpace
MATCOMPOSITE MatGetSubMatrix MatNullSpaceCreate
MATIS MatGetSubMatrixRaw MatNullSpaceDestroy
MATMAIJ MatGetValues MatNullSpaceRemove
MATMFFD MatGetVecs MatNullSpaceSetFunction
MATSCATTER MatHasOperation MatNullSpaceTest
MATSHELL MatISGetLocalMat MatPermute
MatAppendOptionsPrefix MatImaginaryPart MatPermuteSparsify
MatAssembled MatInodeGetInodeSizes MatRealPart
MatBDiagGetData MatIsHermitianKnown MatRegister
MatCompositeAddMat MatIsSymmetricKnown MatRegisterAll
MatCompositeMerge MatMFFDAddNullSpace MatRegisterDAAD
MatCompress MatMFFDCheckPositivity MatRegisterDestroy
MatComputeExplicitOperator MatMFFDDSSetUmin MatRegisterDynamic
MatConjugate MatMFFDGetH MatRestoreArray
MatCreateComposite MatMFFDResetHHistory MatRestoreArrayF90
MatCreateIS MatMFFDSetBase MatRestoreRow
MatCreateMAIJ MatMFFDSetCheckh MatRestoreRowUpperTriangular
MatCreateMFFD MatMFFDSetFromOptions MatRetrieveValues
MatCreateMPIAIJWithSplitArrays MatMFFDSetFunction MatScatterSetVecScatter
MatCreateSNESMF MatMFFDSetFunctionError MatSeqAIJSetColumnIndices
MatCreateShell MatMFFDSetFunctioni MatSeqBAIJInvertBlockDiagonal
MatDestroyMatrices MatMFFDSetFunctioniBase MatSeqBAIJSetColumnIndices
MatDestroySeqNonzeroStructure MatMFFDSetHHistory MatSeqSBAIJSetColumnIndices
MatGetArray MatMFFDSetPeriod MatSetOptionsPrefix
MatGetArrayF90 MatMFFDSetType MatSetUp
MatGetColumnVector MatMFFDWPSetComputeNormU MatShellGetContext
MatGetInertia MatMPIBAIJSetHashTableFactor MatShellGetOperation
MatGetOptionsPrefix MatMPIBAIJSetValuesBlocked MatShellSetContext
MatGetRedundantMatrix MatMerge MatShellSetOperation
MatGetRow MatMerge_SeqsToMPI MatStashGetInfo
MatGetRowUpperTriangular MatMissingDiagonal MatStoreValues
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatCholeskyCheckShift_inline MatILUFactor MatRelax
MatCholeskyFactor MatILUFactorSymbolic MatRestoreColumnIJ
MatCholeskyFactorNumeric MatIncreaseOverlap MatRestoreRowIJ
MatCholeskyFactorSymbolic MatInitializePackage MatScaleSystem
MatColoringPatch MatLUCheckShift_inline MatSeqAIJSetPreallocationCSR
MatColoringRegisterDynamic MatLUFactor MatSetColoring
MatDiagonalScaleLocal MatLUFactorNumeric MatSetUnfactored
MatFactorInfo MatLUFactorSymbolic MatSetValuesAdic
MatFactorInfoInitialize MatMFFDComputeJacobian MatSetValuesAdifor
MatGetBrowsOfAcols MatMFFDInitializePackage MatSolve
MatGetBrowsOfAoCols MatMFFDRegisterAll MatSolveAdd
MatGetColumnIJ MatMFFDRegisterDestroy MatSolveTranspose
MatGetCommunicationStructs MatMFFDRegisterDynamic MatSolveTransposeAdd
MatGetLocalMat MatMPIAIJSetPreallocationCSR MatSolves
MatGetLocalMatCondensed MatMPIBAIJSetPreallocationCSR MatUnScaleSystem
MatGetOwnershipRangeColumn MatMatSolve MatUseScaledForm
MatGetRowIJ MatNullSpaceAttach MatValid
MatICCFactor MatOrderingRegisterDynamic Mat_CheckCompressedRow
MatICCFactorSymbolic MatPBRelax
MatILUDTFactor MatPartitioningRegisterDynamic
No deprecated routines

Table of Contents