petsc-master 2018-06-18
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 MatMumpsGetRinfo
MATAIJMKL MatAssemblyEnd MatMumpsGetRinfog
MATAIJPERM MatAssemblyType MatMumpsSetCntl
MATAIJVIENNACL MatColoring MatMumpsSetIcntl
MATBAIJ MatColoringType MatOption
MATBAIJMKL MatComputeBandwidth MatOrderingType
MATDENSE MatCreate MatPartitioning
MATELEMENTAL MatCreateSubMatrixOption MatPartitioningType
MATMPIADJ MatDestroy MatResetPreallocation
MATMPIAIJ MatDuplicateOption MatReuse
MATMPIBAIJ MatFDColoring MatSORType
MATMPISBAIJ MatFactorError MatSTRUMPACKSetColPerm
MATMPISELL MatFactorShiftType MatSTRUMPACKSetHSSAbsTol
MATSBAIJ MatFactorType MatSTRUMPACKSetHSSLeafSize
MATSELL MatGetLocalSize MatSTRUMPACKSetHSSMaxRank
MATSEQAIJ MatGetOwnershipRange MatSTRUMPACKSetHSSMinSepSize
MATSEQAIJCUSPARSE MatGetOwnershipRanges MatSTRUMPACKSetHSSRelTol
MATSEQAIJVIENNACL MatGetOwnershipRangesColumn MatSTRUMPACKSetReordering
MATSEQBAIJ MatGetSize 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 MatHYPRESetPreallocation MatSeqDenseSetPreallocation
MatCreateLRC MatHermitianTranspose MatSeqSBAIJGetArray
MatCreateMPIAIJCRL MatISSetPreallocation MatSeqSBAIJRestoreArray
MatCreateMPIAIJMKL MatInfo MatSeqSBAIJSetPreallocation
MatCreateMPIAIJPERM MatInterpolate MatSeqSELLRestoreArray
MatCreateMPIAIJWithArrays MatInterpolateAdd MatSeqSELLSetPreallocation
MatCreateMPIAdj MatIsHermitian MatSetBlockSize
MatCreateMPIBAIJWithArrays MatIsHermitianTranspose MatSetBlockSizes
MatCreateMPISBAIJWithArrays MatIsStructurallySymmetric MatSetLocalToGlobalMapping
MatCreateNormal MatIsSymmetric MatSetOption
MatCreateNormalHermitian MatIsTranspose MatSetRandom
MatCreateSBAIJ MatLRCGetMats MatSetType
MatCreateSELL MatMPIAIJSetPreallocation MatSetValuesBlocked
MatCreateScatter MatMPIAdjSetPreallocation MatSetValuesBlockedLocal
MatCreateSeqAIJ MatMPIAdjToSeq MatSetValuesLocal
MatCreateSeqAIJCRL MatMPIBAIJSetPreallocation MatSetValuesRowLocal
MatCreateSeqAIJCUSPARSE MatMPIDenseSetPreallocation MatShift
MatCreateSeqAIJFromTriple MatMPISBAIJSetPreallocation MatSolvePackageGet
MatCreateSeqAIJMKL MatMPISELLSetPreallocation MatSolvePackageRegister
MatCreateSeqAIJPERM MatMatMatMult MatStashSetInitialSize
MatCreateSeqAIJViennaCL MatMatMult MatTranspose
MatCreateSeqAIJWithArrays MatMatMultEqual MatTransposeColoringCreate
MatCreateSeqBAIJ MatMatMultNumeric MatTransposeColoringDestroy
MatCreateSeqBAIJMKL MatMatMultSymbolic MatTransposeGetMat
MatCreateSeqCUFFT MatMatTransposeMult MatTransposeMatMult
MatCreateSeqDense MatMkl_CPardisoSetCntl MatTransposeMatMultEqual
MatCreateSeqSBAIJ MatMultAddEqual MatZeroEntries
MatCreateSeqSELL MatMultEqual MatZeroRows
MatCreateTranspose MatMultTransposeAddEqual MatZeroRowsColumns
MatDenseGetArray MatMultTransposeEqual MatZeroRowsColumnsIS
MatDenseGetArrayRead MatNorm MatZeroRowsColumnsLocal
MatDenseGetColumn MatPreallocateFinalize MatZeroRowsColumnsLocalIS
MatDenseGetLocalMatrix MatPreallocateInitialize MatZeroRowsColumnsStencil
MatDenseRestoreArray MatPreallocateLocation MatZeroRowsIS
MatDenseRestoreArrayRead MatPreallocateSet MatZeroRowsLocal
MatDenseRestoreColumn MatPreallocateSetLocal MatZeroRowsLocalIS
MatDiagonalScale MatPreallocateSetLocalBlock MatZeroRowsStencil
MatDiagonalSet MatPreallocateSetLocalRemoveDups VecScatterFFTWToPetsc
MatDuplicate MatPreallocateSymmetricSetBlock VecScatterPetscToFFTW
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatFactorSolveSchurComplement MatNestGetISs
MATCOMPOSITE MatFactorSolveSchurComplementTranspose MatNestGetLocalISs
MATDUMMY MatGetColumnVector MatNestSetSubMats
MATIS MatGetDiagonalBlock MatNullSpace
MATMAIJ MatGetGhosts MatNullSpaceCreate
MATMFFD MatGetInertia MatNullSpaceCreateRigidBody
MATPREALLOCATOR MatGetLayouts MatNullSpaceDestroy
MATSCATTER MatGetLocalToGlobalMapping MatNullSpaceRemove
MATSHELL MatGetMultiProcBlock MatNullSpaceSetFunction
MatAppendOptionsPrefix MatGetOptionsPrefix MatNullSpaceTest
MatAssembled MatGetRow MatNullSpaceView
MatCompositeAddMat MatGetRowUpperTriangular MatPermute
MatCompositeMerge MatGetTrace MatPreallocatorPreallocate
MatCompositeSetType MatGetValues MatRealPart
MatComputeExplicitOperator MatHasOperation MatRegister
MatComputeExplicitOperatorTranspose MatISGetLocalMat MatRegisterAll
MatConjugate MatISRestoreLocalMat MatRegisterBaseName
MatCreateComposite MatISSetLocalMat MatRestoreRow
MatCreateIS MatISSetUpSF MatRestoreRowUpperTriangular
MatCreateMAIJ MatISStoreL2L MatRetrieveValues
MatCreateMFFD MatImaginaryPart MatScatterSetVecScatter
MatCreateMPIAIJSumSeqAIJ MatInodeGetInodeSizes MatSeqAIJGetArrayF90
MatCreateMPIAIJWithSeqAIJ MatInvertBlockDiagonal MatSeqAIJRegister
MatCreateMPIAIJWithSplitArrays MatInvertBlockDiagonalMat MatSeqAIJRegisterAll
MatCreateMPIMatConcatenateSeqMat MatIsHermitianKnown MatSeqAIJRestoreArrayF90
MatCreateNest MatIsSymmetricKnown MatSeqAIJSetColumnIndices
MatCreateRedundantMatrix MatMAIJGetAIJ MatSeqBAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatMAIJRedimension MatSeqSBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDCheckPositivity MatSetErrorIfFailure
MatCreateShell MatMFFDDSSetUmin MatSetNearNullSpace
MatCreateSubMatrices MatMFFDGetH MatSetNullSpace
MatCreateSubMatricesMPI MatMFFDResetHHistory MatSetOptionsPrefix
MatCreateSubMatrix MatMFFDSetBase MatSetTransposeNullSpace
MatCreateVecs MatMFFDSetCheckh MatSetValuesBatch
MatCreateVecsFFTW MatMFFDSetFunction MatSetValuesRow
MatDenseGetArrayF90 MatMFFDSetFunctionError MatShellGetContext
MatDenseRestoreArrayF90 MatMFFDSetFunctioni MatShellGetOperation
MatDestroyMatrices MatMFFDSetFunctioniBase MatShellSetContext
MatDestroySeqNonzeroStructure MatMFFDSetHHistory MatShellSetManageScalingShifts
MatDestroySubMatrices MatMFFDSetOptionsPrefix MatShellSetOperation
MatFactorCreateSchurComplement MatMFFDSetPeriod MatShellTestMult
MatFactorFactorizeSchurComplement MatMFFDSetType MatShellTestMultTranpose
MatFactorGetError MatMFFDWPSetComputeNormU MatStashGetInfo
MatFactorGetErrorZeroPivot MatMPIAIJSetUseScalableIncreaseOverlap MatStoreValues
MatFactorGetSchurComplement MatMPIBAIJSetHashTableFactor MatSubdomainsCreateCoalesce
MatFactorInvertSchurComplement MatMPIBAIJSetValuesBlocked MatTransColoringApplyDenToSp
MatFactorRestoreSchurComplement MatMissingDiagonal MatTransColoringApplySpToDen
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatGetRowIJ MatMultDiagonalBlock
MatCheckCompressedRow MatGetTransposeNullSpace MatNestGetSize
MatCholeskyFactor MatICCFactor MatNestGetSubMat
MatCholeskyFactorNumeric MatICCFactorSymbolic MatNestGetSubMats
MatCholeskyFactorSymbolic MatILUFactor MatNestSetSubMat
MatColoringPatch MatILUFactorSymbolic MatNestSetVecType
MatCreateLocalRef MatISGetMPIXAIJ MatNullSpaceGetVecs
MatCreateSubMatrixVirtual MatIncreaseOverlap MatResidual
MatDensePlaceArray MatIncreaseOverlapSplit MatRestoreColumnIJ
MatDenseResetArray MatInitializePackage MatRestoreRowIJ
MatDiagonalScaleLocal MatLUFactor MatSOR
MatFactorClearError MatLUFactorNumeric MatSeqAIJSetPreallocationCSR
MatFactorInfo MatLUFactorSymbolic MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFD MatSeqSBAIJSetPreallocationCSR
MatFactorSetSchurIS MatMFFDFinalizePackage MatSetBlockSizesFromMats
MatFinalizePackage MatMFFDInitializePackage MatSetOperation
MatFindOffBlockDiagonalEntries MatMFFDRegister MatSetUnfactored
MatFindZeroDiagonals MatMFFDRegisterAll MatSolve
MatForwardSolve MatMPIAIJGetLocalMat MatSolveAdd
MatGalerkin MatMPIAIJGetLocalMatCondensed MatSolveTranspose
MatGetBrowsOfAcols MatMPIAIJSetPreallocationCSR MatSolveTransposeAdd
MatGetColumnIJ MatMPIAdjCreateNonemptySubcommMat MatSolves
MatGetCommunicationStructs MatMPIBAIJSetPreallocationCSR MatSubMatrixVirtualUpdate
MatGetNearNullSpace MatMPISBAIJSetPreallocationCSR PetscElementalFinalizePackage
MatGetNullSpace MatMPISELLGetLocalMatCondensed PetscElementalInitializePackage
MatGetOperation MatMatSolve
MatGetOwnershipRangeColumn MatMatSolveTranspose
No deprecated routines

Table of Contents