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

Table of Contents