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 MatInfoType MatReuse
MatAssemblyBegin MatLoad MatSORType
MatAssemblyEnd MatMult MatSetFromOptions
MatAssemblyType MatMultAdd MatSetStencil
MatColoringType MatMultConstrained MatSetUpPreallocation
MatCreate MatMultTranspose MatSetValue
MatDestroy MatMultTransposeAdd MatSetValues
MatDuplicateOption MatMultTransposeConstrained MatSetValuesStencil
MatFDColoring MatOption MatStencil
MatGetLocalSize MatOrderingType MatStructure
MatGetOwnershipRange MatPartitioning MatType
MatGetSize MatPartitioningType MatView
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 MatRegisterDynamic
MatBDiagGetData MatMPIBAIJSetHashTableFactor MatRestoreArray
MatCompress MatMPISBAIJSetHashTableFactor MatRestoreArrayF90
MatComputeExplicitOperator MatMerge MatRestoreRow
MatCreateShell MatNullSpace MatRetrieveValues
MatDestroyMatrices MatNullSpaceCreate MatSeqAIJGetInodeSizes
MatGetArray MatNullSpaceDestroy MatSeqAIJSetColumnIndices
MatGetArrayF90 MatNullSpaceRemove MatSeqBAIJSetColumnIndices
MatGetColumnVector MatNullSpaceTest MatSeqSBAIJSetColumnIndices
MatGetInertia MatPermute MatShellGetContext
MatGetRow MatPermuteSparsify MatShellGetOperation
MatGetSubMatrices MatRegister MatShellSetContext
MatGetSubMatrix MatRegisterAll MatShellSetOperation
MatGetValues MatRegisterDestroy MatStoreValues
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatCholeskyFactor MatILUFactorSymbolic MatScaleSystem
MatCholeskyFactorNumeric MatILUInfo MatSetColoring
MatCholeskyFactorSymbolic MatIncreaseOverlap MatSetUnfactored
MatCholeskyInfo MatInitializePackage MatSetValuesAdic
MatColoringPatch MatLUFactor MatSetValuesAdifor
MatConvertRegister MatLUFactorNumeric MatSolve
MatConvertRegisterAll MatLUFactorSymbolic MatSolveAdd
MatDiagonalScaleLocal MatLUInfo MatSolveTranspose
MatGetColumnIJ MatLoadRegister MatSolveTransposeAdd
MatGetPetscMaps MatLoadRegisterAll MatSolves
MatGetRowIJ MatNullSpaceAttach MatUnScaleSystem
MatICCFactor MatPrintHelp MatUseScaledForm
MatICCFactorSymbolic MatRelax MatValid
MatILUDTFactor MatRestoreColumnIJ
MatILUFactor MatRestoreRowIJ

Table of Contents