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
Mat MatLoad MatSORType
MatAssemblyBegin MatMult MatSetFromOptions
MatAssemblyEnd MatMultAdd MatSetStencil
MatAssemblyType MatMultConstrained MatSetUpPreallocation
MatColoringType MatMultTranspose MatSetValue
MatCreate MatMultTransposeAdd MatSetValues
MatDestroy MatMultTransposeConstrained MatSetValuesStencil
MatDuplicateOption MatNullSpace MatStencil
MatFDColoring MatOption MatStructure
MatGetLocalSize MatOrderingType MatType
MatGetOwnershipRange MatPartitioning MatView
MatGetSize MatPartitioningType
MatInfoType MatReuse
Intermediate - Setting options for algorithms and data structures
MatAXPY MatDAADSetSNES MatRestrict
MatAYPX MatDiagonalScale MatScale
MatConvert MatDiagonalSet MatSeqAIJSetPreallocation
MatCopy MatDuplicate MatSeqBAIJSetPreallocation
MatCreateDAAD MatEqual MatSeqBDiagSetPreallocation
MatCreateMPIAIJ MatGetBlockSize MatSeqDenseSetPreallocation
MatCreateMPIAdj MatGetDiagonal MatSeqSBAIJSetPreallocation
MatCreateMPIBAIJ MatGetInfo MatSetLocalToGlobalMapping
MatCreateMPIBDiag MatGetRowMax MatSetLocalToGlobalMappingBlock
MatCreateMPIDense MatGetType MatSetOption
MatCreateMPIRowbs MatInfo MatSetStashInitialSize
MatCreateMPISBAIJ MatInterpolate MatSetType
MatCreateSeqAIJ MatInterpolateAdd MatSetValuesBlocked
MatCreateSeqAIJWithArrays MatMPIAIJSetPreallocation MatSetValuesBlockedLocal
MatCreateSeqBAIJ MatMPIBAIJSetPreallocation MatSetValuesLocal
MatCreateSeqBDiag MatMPIBDiagSetPreallocation MatShift
MatCreateSeqDense MatMPIDenseSetPreallocation MatTranspose
MatCreateSeqSBAIJ MatMPISBAIJSetPreallocation MatZeroEntries
MatDAADSetCtx MatNorm MatZeroRows
MatDAADSetDA MatReorderForNonzeroDiagonal MatZeroRowsLocal
Advanced - Setting more advanced options and customization
MatAssembled MatHasOperation MatRestoreArrayF90
MatBDiagGetData MatMPIBAIJSetHashTableFactor MatRestoreRow
MatCompress MatMPISBAIJSetHashTableFactor MatRetrieveValues
MatComputeExplicitOperator MatNullSpaceCreate MatSeqAIJGetInodeSizes
MatCreateShell MatNullSpaceDestroy MatSeqAIJSetColumnIndices
MatDestroyMatrices MatNullSpaceRemove MatSeqBAIJSetColumnIndices
MatGetArray MatNullSpaceTest MatSeqSBAIJSetColumnIndices
MatGetArrayF90 MatPermute MatShellGetContext
MatGetColumnVector MatPermuteSparsify MatShellGetOperation
MatGetRow MatRegisterAll MatShellSetContext
MatGetSubMatrices MatRegisterDestroy MatShellSetOperation
MatGetSubMatrix MatRegisterDynamic MatStoreValues
MatGetValues MatRestoreArray
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatCholeskyFactor MatILUFactor MatRestoreColumnIJ
MatCholeskyFactorNumeric MatILUFactorSymbolic MatRestoreRowIJ
MatCholeskyFactorSymbolic MatILUInfo MatScaleSystem
MatCholeskyInfo MatIncreaseOverlap MatSetColoring
MatColoringPatch MatInitializePackage MatSetUnfactored
MatConvertRegister MatLUFactor MatSetValuesAdic
MatConvertRegisterAll MatLUFactorNumeric MatSetValuesAdifor
MatDiagonalScaleLocal MatLUFactorSymbolic MatSolve
MatGetColumnIJ MatLUInfo MatSolveAdd
MatGetPetscMaps MatLoadRegister MatSolveTranspose
MatGetRowIJ MatLoadRegisterAll MatSolveTransposeAdd
MatICCFactor MatNullSpaceAttach MatUnScaleSystem
MatICCFactorSymbolic MatPrintHelp MatUseScaledForm
MatILUDTFactor MatRelax MatValid

Table of Contents