petsc-master 2018-10-16
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 MatPreallocateSymmetricSetLocalBlock
MATMFFD_DS MatFactorGetSolverType MatPtAP
MATMFFD_WP MatFindNonzeroRows MatPtAPNumeric
MATNEST MatFindZeroRows MatPtAPSymbolic
MATSOLVERBAS MatGetBlockSize MatPythonCreate
MatAXPY MatGetBlockSizes MatPythonSetType
MatAYPX MatGetColumnNorms MatRARt
MatBlockMatSetPreallocation MatGetDiagonal MatRARtNumeric
MatCUSPARSEFormatOperation MatGetFactor MatRARtSymbolic
MatCUSPARSESetFormat MatGetFactorAvailable MatReorderForNonzeroDiagonal
MatCUSPARSEStorageFormat MatGetFactorType MatRestoreLocalSubMatrix
MatChop MatGetInfo MatRestrict
MatColoringWeightType MatGetLocalSubMatrix MatSTRUMPACKReordering
MatConvert MatGetNonzeroState MatScale
MatCopy MatGetOption MatScatterGetVecScatter
MatCreateAIJ MatGetOwnershipIS MatSeqAIJFromMatlab
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 MatISSetPreallocation MatSeqSBAIJSetPreallocation
MatCreateMPIAIJPERM MatInfo MatSeqSELLRestoreArray
MatCreateMPIAIJSELL MatInterpolate MatSeqSELLSetPreallocation
MatCreateMPIAIJWithArrays MatInterpolateAdd MatSetBlockSize
MatCreateMPIAdj MatIsHermitian MatSetBlockSizes
MatCreateMPIBAIJWithArrays MatIsHermitianTranspose MatSetLocalToGlobalMapping
MatCreateMPISBAIJWithArrays MatIsLinear MatSetOption
MatCreateNormal MatIsStructurallySymmetric MatSetRandom
MatCreateNormalHermitian MatIsSymmetric MatSetType
MatCreateSBAIJ MatIsTranspose MatSetValuesBlocked
MatCreateSELL MatLRCGetMats MatSetValuesBlockedLocal
MatCreateScatter MatMPIAIJSetPreallocation MatSetValuesLocal
MatCreateSeqAIJ MatMPIAdjSetPreallocation MatSetValuesRowLocal
MatCreateSeqAIJCRL MatMPIAdjToSeq MatSetVariableBlockSizes
MatCreateSeqAIJCUSPARSE MatMPIBAIJSetPreallocation MatShift
MatCreateSeqAIJFromTriple MatMPIDenseSetPreallocation MatSolvePackageGet
MatCreateSeqAIJMKL MatMPISBAIJSetPreallocation MatSolvePackageRegister
MatCreateSeqAIJPERM MatMPISELLSetPreallocation MatStashSetInitialSize
MatCreateSeqAIJSELL MatMatMatMult MatTranspose
MatCreateSeqAIJViennaCL MatMatMult MatTransposeColoringCreate
MatCreateSeqAIJWithArrays MatMatMultEqual MatTransposeColoringDestroy
MatCreateSeqBAIJ MatMatMultNumeric MatTransposeGetMat
MatCreateSeqBAIJMKL MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqCUFFT MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqDense MatMkl_CPardisoSetCntl MatZeroEntries
MatCreateSeqSBAIJ MatMultAddEqual MatZeroRows
MatCreateSeqSELL MatMultEqual MatZeroRowsColumns
MatCreateTranspose MatMultTransposeAddEqual MatZeroRowsColumnsIS
MatDenseGetArray MatMultTransposeEqual MatZeroRowsColumnsLocal
MatDenseGetArrayRead MatNorm MatZeroRowsColumnsLocalIS
MatDenseGetColumn MatPreallocateFinalize MatZeroRowsColumnsStencil
MatDenseGetLocalMatrix MatPreallocateInitialize MatZeroRowsIS
MatDenseRestoreArray MatPreallocateLocation MatZeroRowsLocal
MatDenseRestoreArrayRead MatPreallocateSet MatZeroRowsLocalIS
MatDenseRestoreColumn MatPreallocateSetLocal MatZeroRowsStencil
MatDiagonalScale MatPreallocateSetLocalBlock VecScatterFFTWToPetsc
MatDiagonalSet MatPreallocateSetLocalRemoveDups VecScatterPetscToFFTW
MatDuplicate MatPreallocateSymmetricSetBlock
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatFactorSolveSchurComplementTranspose MatMissingDiagonal
MATCOMPOSITE MatGetColumnVector MatNestGetISs
MATIS MatGetDiagonalBlock MatNestGetLocalISs
MATMAIJ MatGetGhosts MatNestSetSubMats
MATMFFD MatGetInertia MatNullSpace
MATPREALLOCATOR MatGetLayouts MatNullSpaceCreate
MATSCATTER MatGetLocalToGlobalMapping MatNullSpaceCreateRigidBody
MATSHELL MatGetMultiProcBlock MatNullSpaceDestroy
MatAppendOptionsPrefix MatGetOptionsPrefix MatNullSpaceRemove
MatAssembled MatGetRow MatNullSpaceSetFunction
MatCompositeAddMat MatGetRowUpperTriangular MatNullSpaceTest
MatCompositeMerge MatGetTrace MatNullSpaceView
MatCompositeSetType MatGetValues MatPermute
MatComputeExplicitOperator MatHasOperation MatPreallocatorPreallocate
MatComputeExplicitOperatorTranspose MatISFixLocalEmpty MatRealPart
MatConjugate MatISGetLocalMat MatRegister
MatCreateComposite MatISRestoreLocalMat MatRegisterAll
MatCreateIS MatISSetLocalMat MatRestoreRow
MatCreateMAIJ MatISSetLocalMatType 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
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

Table of Contents