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