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