petsc-3.10.5 2019-03-28
Report Typos and Errors

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 MATSOLVERUMFPACK MatMumpsGetInfog
MATAIJCRL Mat MatMumpsGetInverse
MATAIJCUSPARSE MatAssemblyBegin MatMumpsGetInverseTranspose
MATAIJMKL MatAssemblyEnd MatMumpsGetRinfo
MATAIJPERM MatAssemblyType MatMumpsGetRinfog
MATAIJSELL MatColoring MatMumpsSetCntl
MATAIJVIENNACL MatColoringType MatMumpsSetIcntl
MATBAIJ MatComputeBandwidth MatOption
MATBAIJMKL MatCreate MatOrderingType
MATDENSE MatCreateSubMatrixOption MatPartitioning
MATELEMENTAL MatDestroy MatPartitioningType
MATMPIADJ MatDuplicateOption MatResetPreallocation
MATMPIAIJ MatFDColoring MatReuse
MATMPIBAIJ MatFactorError MatSORType
MATMPISBAIJ MatFactorShiftType MatSTRUMPACKSetColPerm
MATMPISELL MatFactorType MatSTRUMPACKSetHSSAbsTol
MATSBAIJ MatGetLocalSize MatSTRUMPACKSetHSSLeafSize
MATSELL MatGetOwnershipRange MatSTRUMPACKSetHSSMaxRank
MATSEQAIJ MatGetOwnershipRanges MatSTRUMPACKSetHSSMinSepSize
MATSEQAIJCUSPARSE MatGetOwnershipRangesColumn MatSTRUMPACKSetHSSRelTol
MATSEQAIJVIENNACL MatGetSize MatSTRUMPACKSetReordering
MATSEQBAIJ MatHasCongruentLayouts MatSetFromOptions
MATSEQDENSE MatInfoType MatSetSizes
MATSEQSBAIJ MatLoad MatSetStencil
MATSOLVERCHOLMOD MatMFFDType MatSetUp
MATSOLVERCUSPARSE MatMkl_PardisoSetCntl MatSetValue
MATSOLVERESSL MatMult MatSetValues
MATSOLVERKLU MatMultAdd MatSetValuesBlockedStencil
MATSOLVERLUSOL MatMultConstrained MatSetValuesStencil
MATSOLVERMATLAB MatMultHermitianTranspose MatSolverType
MATSOLVERMKL_PARDISO MatMultHermitianTransposeAdd MatStencil
MATSOLVERMUMPS MatMultTranspose MatStructure
MATSOLVERPASTIX MatMultTransposeAdd MatSuperluSetILUDropTol
MATSOLVERSPARSEELEMENTAL MatMultTransposeConstrained MatTransposeColoring
MATSOLVERSSTRUMPACK MatMumpsGetCntl MatType
MATSOLVERSUPERLU MatMumpsGetIcntl MatView
MATSOLVERSUPERLU_DIST MatMumpsGetInfo MatXAIJSetPreallocation
Intermediate - Setting options for algorithms and data structures
MATHYPRE MatEqual MatPtAP
MATMFFD_DS MatFactorGetSolverType MatPtAPNumeric
MATMFFD_WP MatFindNonzeroRows MatPtAPSymbolic
MATNEST MatFindZeroRows MatPythonCreate
MATSOLVERBAS MatGetBlockSize MatPythonSetType
MatAXPY MatGetBlockSizes MatRARt
MatAYPX MatGetColumnNorms MatRARtNumeric
MatBlockMatSetPreallocation MatGetDiagonal MatRARtSymbolic
MatCUSPARSEFormatOperation MatGetFactor MatReorderForNonzeroDiagonal
MatCUSPARSESetFormat MatGetFactorAvailable MatRestoreLocalSubMatrix
MatCUSPARSEStorageFormat MatGetFactorType MatRestrict
MatChop MatGetInfo MatSTRUMPACKReordering
MatColoringWeightType MatGetLocalSubMatrix MatScale
MatConvert MatGetNonzeroState MatScatterGetVecScatter
MatCopy MatGetOption MatSeqAIJFromMatlab
MatCreateAIJ MatGetOwnershipIS MatSeqAIJGetArray
MatCreateAIJCUSPARSE MatGetRowMax MatSeqAIJGetMaxRowNonzeros
MatCreateAIJViennaCL MatGetRowMaxAbs MatSeqAIJRestoreArray
MatCreateBAIJ MatGetRowMin MatSeqAIJSetPreallocation
MatCreateBAIJMKL MatGetRowMinAbs MatSeqAIJSetType
MatCreateBlockMat MatGetRowSum MatSeqBAIJSetPreallocation
MatCreateDense MatGetSeqNonzeroStructure MatSeqDenseSetLDA
MatCreateFFT MatGetType MatSeqDenseSetPreallocation
MatCreateHermitianTranspose MatGetVariableBlockSizes MatSeqSBAIJGetArray
MatCreateLRC MatHYPRESetPreallocation MatSeqSBAIJRestoreArray
MatCreateMPIAIJCRL MatHermitianTranspose MatSeqSBAIJSetPreallocation
MatCreateMPIAIJMKL MatISSetPreallocation MatSeqSELLRestoreArray
MatCreateMPIAIJPERM MatInfo MatSeqSELLSetPreallocation
MatCreateMPIAIJSELL MatInterpolate MatSetBlockSize
MatCreateMPIAIJWithArrays MatInterpolateAdd MatSetBlockSizes
MatCreateMPIAdj MatIsHermitian MatSetLocalToGlobalMapping
MatCreateMPIBAIJWithArrays MatIsHermitianTranspose MatSetOption
MatCreateMPISBAIJWithArrays MatIsStructurallySymmetric MatSetRandom
MatCreateNormal MatIsSymmetric MatSetType
MatCreateNormalHermitian MatIsTranspose MatSetValuesBlocked
MatCreateSBAIJ MatLRCGetMats MatSetValuesBlockedLocal
MatCreateSELL MatMPIAIJSetPreallocation MatSetValuesLocal
MatCreateScatter MatMPIAdjSetPreallocation MatSetValuesRowLocal
MatCreateSeqAIJ MatMPIAdjToSeq MatSetVariableBlockSizes
MatCreateSeqAIJCRL MatMPIBAIJSetPreallocation MatShift
MatCreateSeqAIJCUSPARSE MatMPIDenseSetPreallocation MatSolvePackageGet
MatCreateSeqAIJFromTriple MatMPISBAIJSetPreallocation MatSolvePackageRegister
MatCreateSeqAIJMKL MatMPISELLSetPreallocation MatStashSetInitialSize
MatCreateSeqAIJPERM MatMatMatMult MatTranspose
MatCreateSeqAIJSELL MatMatMult MatTransposeColoringCreate
MatCreateSeqAIJViennaCL MatMatMultEqual MatTransposeColoringDestroy
MatCreateSeqAIJWithArrays MatMatMultNumeric MatTransposeGetMat
MatCreateSeqBAIJ MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqBAIJMKL MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqCUFFT MatMkl_CPardisoSetCntl MatZeroEntries
MatCreateSeqDense MatMultAddEqual MatZeroRows
MatCreateSeqSBAIJ MatMultEqual MatZeroRowsColumns
MatCreateSeqSELL MatMultTransposeAddEqual MatZeroRowsColumnsIS
MatCreateTranspose MatMultTransposeEqual MatZeroRowsColumnsLocal
MatDenseGetArray MatNorm MatZeroRowsColumnsLocalIS
MatDenseGetArrayRead MatPreallocateFinalize MatZeroRowsColumnsStencil
MatDenseGetColumn MatPreallocateInitialize MatZeroRowsIS
MatDenseGetLocalMatrix MatPreallocateLocation MatZeroRowsLocal
MatDenseRestoreArray MatPreallocateSet MatZeroRowsLocalIS
MatDenseRestoreArrayRead MatPreallocateSetLocal MatZeroRowsStencil
MatDenseRestoreColumn MatPreallocateSetLocalBlock VecScatterFFTWToPetsc
MatDiagonalScale MatPreallocateSetLocalRemoveDups VecScatterPetscToFFTW
MatDiagonalSet MatPreallocateSymmetricSetBlock
MatDuplicate MatPreallocateSymmetricSetLocalBlock
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetColumnVector MatNestGetISs
MATCOMPOSITE MatGetDiagonalBlock MatNestGetLocalISs
MATIS MatGetGhosts MatNestSetSubMats
MATMAIJ MatGetInertia MatNullSpace
MATMFFD MatGetLayouts MatNullSpaceCreate
MATPREALLOCATOR MatGetLocalToGlobalMapping MatNullSpaceCreateRigidBody
MATSCATTER MatGetMultiProcBlock MatNullSpaceDestroy
MATSHELL MatGetOptionsPrefix MatNullSpaceRemove
MatAppendOptionsPrefix MatGetRow MatNullSpaceSetFunction
MatAssembled MatGetRowUpperTriangular MatNullSpaceTest
MatCompositeAddMat MatGetTrace MatNullSpaceView
MatCompositeMerge MatGetValues MatPermute
MatCompositeSetType MatHasOperation MatPreallocatorPreallocate
MatComputeExplicitOperator MatISFixLocalEmpty MatRealPart
MatComputeExplicitOperatorTranspose MatISGetLocalMat MatRegister
MatConjugate MatISRestoreLocalMat MatRegisterAll
MatCreateComposite MatISSetLocalMat MatRegisterBaseName
MatCreateIS MatISSetLocalMatType MatRestoreRow
MatCreateMAIJ MatISSetUpSF MatRestoreRowUpperTriangular
MatCreateMFFD MatISStoreL2L MatRetrieveValues
MatCreateMPIAIJSumSeqAIJ MatImaginaryPart MatScatterSetVecScatter
MatCreateMPIAIJWithSeqAIJ MatInodeGetInodeSizes MatSeqAIJGetArrayF90
MatCreateMPIAIJWithSplitArrays MatInvertBlockDiagonal MatSeqAIJRegister
MatCreateMPIMatConcatenateSeqMat MatInvertBlockDiagonalMat MatSeqAIJRegisterAll
MatCreateNest MatInvertVariableBlockDiagonal MatSeqAIJRestoreArrayF90
MatCreateRedundantMatrix MatIsHermitianKnown MatSeqAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatIsSymmetricKnown MatSeqBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMAIJGetAIJ MatSeqSBAIJSetColumnIndices
MatCreateShell MatMAIJRedimension MatSetErrorIfFailure
MatCreateSubMatrices MatMFFDCheckPositivity MatSetNearNullSpace
MatCreateSubMatricesMPI MatMFFDDSSetUmin MatSetNullSpace
MatCreateSubMatrix MatMFFDGetH MatSetOptionsPrefix
MatCreateVecs MatMFFDResetHHistory MatSetTransposeNullSpace
MatCreateVecsFFTW MatMFFDSetBase MatSetValuesBatch
MatDenseGetArrayF90 MatMFFDSetCheckh MatSetValuesRow
MatDenseRestoreArrayF90 MatMFFDSetFunction MatShellGetContext
MatDestroyMatrices MatMFFDSetFunctionError MatShellGetOperation
MatDestroySeqNonzeroStructure MatMFFDSetFunctioni MatShellSetContext
MatDestroySubMatrices MatMFFDSetFunctioniBase MatShellSetManageScalingShifts
MatFactorCreateSchurComplement MatMFFDSetHHistory MatShellSetOperation
MatFactorFactorizeSchurComplement MatMFFDSetOptionsPrefix MatShellTestMult
MatFactorGetError MatMFFDSetPeriod MatShellTestMultTranpose
MatFactorGetErrorZeroPivot MatMFFDSetType MatStashGetInfo
MatFactorGetSchurComplement MatMFFDWPSetComputeNormU MatStoreValues
MatFactorInvertSchurComplement MatMPIAIJSetUseScalableIncreaseOverlap MatSubdomainsCreateCoalesce
MatFactorRestoreSchurComplement MatMPIBAIJSetHashTableFactor MatTransColoringApplyDenToSp
MatFactorSolveSchurComplement MatMPIBAIJSetValuesBlocked MatTransColoringApplySpToDen
MatFactorSolveSchurComplementTranspose MatMissingDiagonal
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MATDUMMY MatGetOwnershipRangeColumn MatMatSolveTranspose
MatBackwardSolve MatGetRowIJ MatMatTransposeSolve
MatCheckCompressedRow MatGetTransposeNullSpace MatMultDiagonalBlock
MatCholeskyFactor MatICCFactor MatNestGetSize
MatCholeskyFactorNumeric MatICCFactorSymbolic MatNestGetSubMat
MatCholeskyFactorSymbolic MatILUFactor MatNestGetSubMats
MatColoringPatch MatILUFactorSymbolic MatNestSetSubMat
MatCreateLocalRef MatISGetMPIXAIJ MatNestSetVecType
MatCreateSubMatrixVirtual MatIncreaseOverlap MatNullSpaceGetVecs
MatDensePlaceArray MatIncreaseOverlapSplit MatResidual
MatDenseResetArray MatInitializePackage MatRestoreColumnIJ
MatDiagonalScaleLocal MatLUFactor MatRestoreRowIJ
MatFactorClearError MatLUFactorNumeric MatSOR
MatFactorInfo MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFD MatSeqBAIJSetPreallocationCSR
MatFactorSetSchurIS MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFinalizePackage MatMFFDInitializePackage MatSetBlockSizesFromMats
MatFindOffBlockDiagonalEntries MatMFFDRegister MatSetOperation
MatFindZeroDiagonals MatMFFDRegisterAll MatSetUnfactored
MatForwardSolve MatMPIAIJGetLocalMat MatSolve
MatGalerkin MatMPIAIJGetLocalMatCondensed MatSolveAdd
MatGetBrowsOfAcols MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetColumnIJ MatMPIAdjCreateNonemptySubcommMat MatSolveTransposeAdd
MatGetCommunicationStructs MatMPIBAIJSetPreallocationCSR MatSolves
MatGetNearNullSpace MatMPISBAIJSetPreallocationCSR MatSubMatrixVirtualUpdate
MatGetNullSpace MatMPISELLGetLocalMatCondensed PetscElementalFinalizePackage
MatGetOperation MatMatSolve PetscElementalInitializePackage
No deprecated routines

Table of Contents