petsc-master 2019-05-20
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 MatPreallocateSymmetricSetBlock
MATMFFD_DS MatFactorGetSolverType MatPreallocateSymmetricSetLocalBlock
MATMFFD_WP MatFindNonzeroRows MatPtAP
MATNEST MatFindZeroRows MatPtAPNumeric
MATSOLVERBAS MatGetBlockSize MatPtAPSymbolic
MatAXPY MatGetBlockSizes MatPythonCreate
MatAYPX MatGetColumnNorms MatPythonSetType
MatBlockMatSetPreallocation MatGetDiagonal MatRARt
MatCUSPARSEFormatOperation MatGetFactor MatRARtNumeric
MatCUSPARSESetFormat MatGetFactorAvailable MatRARtSymbolic
MatCUSPARSEStorageFormat MatGetFactorType MatReorderForNonzeroDiagonal
MatChop MatGetInfo MatRestoreLocalSubMatrix
MatColoringWeightType MatGetLocalSubMatrix MatRestrict
MatConvert MatGetNonzeroState MatSTRUMPACKReordering
MatCopy MatGetOption MatScale
MatCreateAIJ MatGetOwnershipIS MatScatterGetVecScatter
MatCreateAIJCUSPARSE MatGetRowMax MatSeqAIJGetArray
MatCreateAIJViennaCL MatGetRowMaxAbs MatSeqAIJGetMaxRowNonzeros
MatCreateBAIJ MatGetRowMin MatSeqAIJRestoreArray
MatCreateBAIJMKL MatGetRowMinAbs MatSeqAIJSetPreallocation
MatCreateBlockMat MatGetRowSum MatSeqAIJSetType
MatCreateDense MatGetSeqNonzeroStructure MatSeqBAIJSetPreallocation
MatCreateFFT MatGetType MatSeqDenseSetLDA
MatCreateHermitianTranspose MatGetVariableBlockSizes MatSeqDenseSetPreallocation
MatCreateLRC MatHYPRESetPreallocation MatSeqSBAIJGetArray
MatCreateMPIAIJCRL MatHermitianTranspose MatSeqSBAIJRestoreArray
MatCreateMPIAIJMKL MatHermitianTransposeGetMat MatSeqSBAIJSetPreallocation
MatCreateMPIAIJPERM MatISSetPreallocation MatSeqSELLRestoreArray
MatCreateMPIAIJSELL MatInfo MatSeqSELLSetPreallocation
MatCreateMPIAIJWithArrays MatInterpolate MatSetBlockSize
MatCreateMPIAdj MatInterpolateAdd MatSetBlockSizes
MatCreateMPIBAIJWithArrays MatIsHermitian MatSetFactorType
MatCreateMPISBAIJWithArrays MatIsHermitianTranspose MatSetLocalToGlobalMapping
MatCreateNormal MatIsLinear MatSetOption
MatCreateNormalHermitian MatIsStructurallySymmetric MatSetRandom
MatCreateSBAIJ MatIsSymmetric MatSetType
MatCreateSELL MatIsTranspose MatSetValuesBlocked
MatCreateScatter MatLRCGetMats MatSetValuesBlockedLocal
MatCreateSeqAIJ MatMPIAIJSetPreallocation MatSetValuesLocal
MatCreateSeqAIJCRL MatMPIAdjSetPreallocation MatSetValuesRowLocal
MatCreateSeqAIJCUSPARSE MatMPIAdjToSeq MatSetVariableBlockSizes
MatCreateSeqAIJFromTriple MatMPIBAIJSetPreallocation MatShift
MatCreateSeqAIJMKL MatMPIDenseSetPreallocation MatSolvePackageGet
MatCreateSeqAIJPERM MatMPISBAIJSetPreallocation MatSolvePackageRegister
MatCreateSeqAIJSELL MatMPISELLSetPreallocation MatStashSetInitialSize
MatCreateSeqAIJViennaCL MatMatMatMult MatTranspose
MatCreateSeqAIJWithArrays MatMatMult MatTransposeColoringCreate
MatCreateSeqBAIJ MatMatMultEqual MatTransposeColoringDestroy
MatCreateSeqBAIJMKL MatMatMultNumeric MatTransposeGetMat
MatCreateSeqCUFFT MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqDense MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqSBAIJ MatMatTransposeMultEqual MatZeroEntries
MatCreateSeqSELL MatMkl_CPardisoSetCntl MatZeroRows
MatCreateTranspose MatMultAddEqual MatZeroRowsColumns
MatDenseGetArray MatMultEqual MatZeroRowsColumnsIS
MatDenseGetArrayRead MatMultTransposeAddEqual MatZeroRowsColumnsLocal
MatDenseGetColumn MatMultTransposeEqual MatZeroRowsColumnsLocalIS
MatDenseGetLDA MatNorm MatZeroRowsColumnsStencil
MatDenseGetLocalMatrix MatPreallocateFinalize MatZeroRowsIS
MatDenseRestoreArray MatPreallocateInitialize MatZeroRowsLocal
MatDenseRestoreArrayRead MatPreallocateLocation MatZeroRowsLocalIS
MatDenseRestoreColumn MatPreallocateSet MatZeroRowsStencil
MatDiagonalScale MatPreallocateSetLocal VecScatterFFTWToPetsc
MatDiagonalSet MatPreallocateSetLocalBlock VecScatterPetscToFFTW
MatDuplicate MatPreallocateSetLocalRemoveDups
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatFreeIntermediateDataStructures MatNestGetISs
MATCOMPOSITE MatGetColumnVector MatNestGetLocalISs
MATIS MatGetDiagonalBlock MatNestSetSubMats
MATMAIJ MatGetGhosts MatNullSpace
MATMFFD MatGetInertia MatNullSpaceCreate
MATPREALLOCATOR MatGetLayouts MatNullSpaceCreateRigidBody
MATSCATTER MatGetLocalToGlobalMapping MatNullSpaceDestroy
MATSHELL MatGetMultiProcBlock MatNullSpaceRemove
MatAppendOptionsPrefix MatGetOptionsPrefix MatNullSpaceSetFunction
MatAssembled MatGetRow MatNullSpaceTest
MatCompositeAddMat MatGetRowUpperTriangular MatNullSpaceView
MatCompositeMerge MatGetTrace MatPermute
MatCompositeSetType MatGetValues MatPreallocatorPreallocate
MatComputeOperator MatHasOperation MatRealPart
MatComputeOperatorTranspose MatISFixLocalEmpty MatRegister
MatConjugate MatISGetLocalMat MatRegisterAll
MatCreateComposite MatISRestoreLocalMat MatRestoreRow
MatCreateIS MatISSetLocalMat MatRestoreRowUpperTriangular
MatCreateMAIJ MatISSetLocalMatType MatRetrieveValues
MatCreateMFFD MatISStoreL2L MatScatterSetVecScatter
MatCreateMPIAIJSumSeqAIJ MatImaginaryPart MatSeqAIJGetArrayF90
MatCreateMPIAIJWithSeqAIJ MatInodeGetInodeSizes MatSeqAIJRegister
MatCreateMPIAIJWithSplitArrays MatInvertBlockDiagonal MatSeqAIJRegisterAll
MatCreateMPIMatConcatenateSeqMat MatInvertBlockDiagonalMat MatSeqAIJRestoreArrayF90
MatCreateNest MatInvertVariableBlockDiagonal MatSeqAIJSetColumnIndices
MatCreateRedundantMatrix MatIsHermitianKnown MatSeqBAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatIsSymmetricKnown MatSeqSBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMAIJGetAIJ MatSetErrorIfFailure
MatCreateShell MatMAIJRedimension MatSetNearNullSpace
MatCreateSubMatrices MatMFFDCheckPositivity MatSetNullSpace
MatCreateSubMatricesMPI MatMFFDDSSetUmin MatSetOptionsPrefix
MatCreateSubMatrix MatMFFDGetH MatSetTransposeNullSpace
MatCreateVecs MatMFFDResetHHistory MatSetValuesBatch
MatCreateVecsFFTW MatMFFDSetBase MatSetValuesRow
MatDenseGetArrayF90 MatMFFDSetCheckh MatShellGetContext
MatDenseRestoreArrayF90 MatMFFDSetFunction MatShellGetOperation
MatDestroyMatrices MatMFFDSetFunctionError MatShellSetContext
MatDestroySeqNonzeroStructure MatMFFDSetFunctioni MatShellSetManageScalingShifts
MatDestroySubMatrices MatMFFDSetFunctioniBase MatShellSetOperation
MatFactorCreateSchurComplement MatMFFDSetHHistory MatShellTestMult
MatFactorFactorizeSchurComplement MatMFFDSetOptionsPrefix MatShellTestMultTranpose
MatFactorGetError MatMFFDSetPeriod MatStashGetInfo
MatFactorGetErrorZeroPivot MatMFFDSetType MatStoreValues
MatFactorGetSchurComplement MatMFFDWPSetComputeNormU MatSubdomainsCreateCoalesce
MatFactorInvertSchurComplement MatMPIAIJSetUseScalableIncreaseOverlap MatTransColoringApplyDenToSp
MatFactorRestoreSchurComplement MatMPIBAIJSetHashTableFactor MatTransColoringApplySpToDen
MatFactorSolveSchurComplement MatMPIBAIJSetValuesBlocked
MatFactorSolveSchurComplementTranspose MatMissingDiagonal
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MATDUMMY MatGetRowIJ MatMultDiagonalBlock
MatBackwardSolve MatGetTransposeNullSpace MatNestGetSize
MatCheckCompressedRow MatICCFactor MatNestGetSubMat
MatCholeskyFactor MatICCFactorSymbolic MatNestGetSubMats
MatCholeskyFactorNumeric MatILUFactor MatNestSetSubMat
MatCholeskyFactorSymbolic MatILUFactorSymbolic MatNestSetVecType
MatColoringPatch MatISGetMPIXAIJ MatNullSpaceGetVecs
MatCreateLocalRef MatIncreaseOverlap MatRegisterRootName
MatCreateSubMatrixVirtual MatIncreaseOverlapSplit MatResidual
MatDensePlaceArray MatInitializePackage MatRestoreColumnIJ
MatDenseResetArray MatLUFactor MatRestoreRowIJ
MatDiagonalScaleLocal MatLUFactorNumeric MatSOR
MatFactorClearError MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorInfo MatMFFD MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFactorSetSchurIS MatMFFDInitializePackage MatSetBlockSizesFromMats
MatFinalizePackage MatMFFDRegister MatSetOperation
MatFindOffBlockDiagonalEntries MatMFFDRegisterAll MatSetUnfactored
MatFindZeroDiagonals MatMPIAIJGetLocalMat MatSolve
MatForwardSolve MatMPIAIJGetLocalMatCondensed MatSolveAdd
MatGalerkin MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetBrowsOfAcols MatMPIAdjCreateNonemptySubcommMat MatSolveTransposeAdd
MatGetColumnIJ MatMPIBAIJSetPreallocationCSR MatSolves
MatGetCommunicationStructs MatMPISBAIJSetPreallocationCSR MatSubMatrixVirtualUpdate
MatGetNearNullSpace MatMPISELLGetLocalMatCondensed PetscElementalFinalizePackage
MatGetNullSpace MatMatSolve PetscElementalInitializePackage
MatGetOperation MatMatSolveTranspose
MatGetOwnershipRangeColumn MatMatTransposeSolve
No deprecated routines
None: Not yet cataloged
MatPinToCPU

Table of Contents