petsc-master 2018-08-19
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 MatMumpsGetInverse
MATAIJCRL MatAssemblyBegin MatMumpsGetInverseTranspose
MATAIJCUSPARSE MatAssemblyEnd MatMumpsGetRinfo
MATAIJMKL MatAssemblyType MatMumpsGetRinfog
MATAIJPERM 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
MATSOLVERUMFPACK MatMumpsGetInfog
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 MatFactorSolveSchurComplementTranspose MatNestGetLocalISs
MATCOMPOSITE MatGetColumnVector MatNestSetSubMats
MATDUMMY MatGetDiagonalBlock MatNullSpace
MATIS MatGetGhosts MatNullSpaceCreate
MATMAIJ MatGetInertia MatNullSpaceCreateRigidBody
MATMFFD MatGetLayouts MatNullSpaceDestroy
MATPREALLOCATOR MatGetLocalToGlobalMapping MatNullSpaceRemove
MATSCATTER MatGetMultiProcBlock MatNullSpaceSetFunction
MATSHELL MatGetOptionsPrefix MatNullSpaceTest
MatAppendOptionsPrefix MatGetRow MatNullSpaceView
MatAssembled MatGetRowUpperTriangular MatPermute
MatCompositeAddMat MatGetTrace MatPreallocatorPreallocate
MatCompositeMerge MatGetValues MatRealPart
MatCompositeSetType MatHasOperation MatRegister
MatComputeExplicitOperator MatISFixLocalEmpty MatRegisterAll
MatComputeExplicitOperatorTranspose MatISGetLocalMat MatRegisterBaseName
MatConjugate MatISRestoreLocalMat MatRestoreRow
MatCreateComposite MatISSetLocalMat MatRestoreRowUpperTriangular
MatCreateIS MatISSetUpSF MatRetrieveValues
MatCreateMAIJ MatISStoreL2L MatScatterSetVecScatter
MatCreateMFFD MatImaginaryPart MatSeqAIJGetArrayF90
MatCreateMPIAIJSumSeqAIJ MatInodeGetInodeSizes MatSeqAIJRegister
MatCreateMPIAIJWithSeqAIJ MatInvertBlockDiagonal MatSeqAIJRegisterAll
MatCreateMPIAIJWithSplitArrays MatInvertBlockDiagonalMat MatSeqAIJRestoreArrayF90
MatCreateMPIMatConcatenateSeqMat MatIsHermitianKnown MatSeqAIJSetColumnIndices
MatCreateNest MatIsSymmetricKnown MatSeqBAIJSetColumnIndices
MatCreateRedundantMatrix MatMAIJGetAIJ MatSeqSBAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatMAIJRedimension MatSetErrorIfFailure
MatCreateSeqSBAIJWithArrays MatMFFDCheckPositivity MatSetNearNullSpace
MatCreateShell MatMFFDDSSetUmin MatSetNullSpace
MatCreateSubMatrices MatMFFDGetH MatSetOptionsPrefix
MatCreateSubMatricesMPI MatMFFDResetHHistory MatSetTransposeNullSpace
MatCreateSubMatrix MatMFFDSetBase MatSetValuesBatch
MatCreateVecs MatMFFDSetCheckh MatSetValuesRow
MatCreateVecsFFTW MatMFFDSetFunction MatShellGetContext
MatDenseGetArrayF90 MatMFFDSetFunctionError MatShellGetOperation
MatDenseRestoreArrayF90 MatMFFDSetFunctioni MatShellSetContext
MatDestroyMatrices MatMFFDSetFunctioniBase MatShellSetManageScalingShifts
MatDestroySeqNonzeroStructure MatMFFDSetHHistory MatShellSetOperation
MatDestroySubMatrices MatMFFDSetOptionsPrefix MatShellTestMult
MatFactorCreateSchurComplement MatMFFDSetPeriod MatShellTestMultTranpose
MatFactorFactorizeSchurComplement MatMFFDSetType MatStashGetInfo
MatFactorGetError MatMFFDWPSetComputeNormU MatStoreValues
MatFactorGetErrorZeroPivot MatMPIAIJSetUseScalableIncreaseOverlap MatSubdomainsCreateCoalesce
MatFactorGetSchurComplement MatMPIBAIJSetHashTableFactor MatTransColoringApplyDenToSp
MatFactorInvertSchurComplement MatMPIBAIJSetValuesBlocked MatTransColoringApplySpToDen
MatFactorRestoreSchurComplement MatMissingDiagonal
MatFactorSolveSchurComplement MatNestGetISs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
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
MatGetOwnershipRangeColumn MatMatSolveTranspose
No deprecated routines

Table of Contents