petsc-3.8.4 2018-03-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 MATSOLVERSUPERLU MatMultTransposeConstrained
MATAIJCRL MATSOLVERSUPERLU_DIST MatMumpsGetCntl
MATAIJCUSP MATSOLVERUMFPACK MatMumpsGetIcntl
MATAIJCUSPARSE Mat MatMumpsGetInfo
MATAIJMKL MatAssemblyBegin MatMumpsGetInfog
MATAIJPERM MatAssemblyEnd MatMumpsGetRinfo
MATAIJVIENNACL MatAssemblyType MatMumpsGetRinfog
MATBAIJ MatColoring MatMumpsSetCntl
MATBAIJMKL MatColoringType MatMumpsSetIcntl
MATDENSE MatComputeBandwidth MatOption
MATELEMENTAL MatCreate MatOrderingType
MATMPIADJ MatCreateSubMatrixOption MatPartitioning
MATMPIAIJ MatDestroy MatPartitioningType
MATMPIBAIJ MatDuplicateOption MatReuse
MATMPISBAIJ MatFDColoring MatSORType
MATSBAIJ MatFactorError MatSTRUMPACKSetColPerm
MATSEQAIJ MatFactorShiftType MatSTRUMPACKSetHSSMinSize
MATSEQAIJCUSP MatFactorType MatSTRUMPACKSetHSSRelCompTol
MATSEQAIJCUSPARSE MatGetLocalSize MatSetFromOptions
MATSEQAIJVIENNACL MatGetOwnershipRange MatSetSizes
MATSEQBAIJ MatGetOwnershipRanges MatSetStencil
MATSEQDENSE MatGetOwnershipRangesColumn MatSetUp
MATSEQSBAIJ MatGetSize MatSetValue
MATSOLVERCHOLMOD MatInfoType MatSetValues
MATSOLVERCUSPARSE MatLoad MatSetValuesBlockedStencil
MATSOLVERESSL MatMFFDType MatSetValuesStencil
MATSOLVERKLU MatMkl_PardisoSetCntl MatSolverPackage
MATSOLVERLUSOL MatMult MatStencil
MATSOLVERMATLAB MatMultAdd MatStructure
MATSOLVERMKL_PARDISO MatMultConstrained MatSuperluSetILUDropTol
MATSOLVERMUMPS MatMultHermitianTranspose MatTransposeColoring
MATSOLVERPASTIX MatMultHermitianTransposeAdd MatType
MATSOLVERSPARSEELEMENTAL MatMultTranspose MatView
MATSOLVERSSTRUMPACK MatMultTransposeAdd MatXAIJSetPreallocation
Intermediate - Setting options for algorithms and data structures
MATHYPRE MatDuplicate MatPreallocateSymmetricSetBlock
MATMFFD_DS MatEqual MatPreallocateSymmetricSetLocalBlock
MATMFFD_WP MatFactorGetSolverPackage MatPtAP
MATNEST MatFindNonzeroRows MatPtAPNumeric
MATSOLVERBAS MatFindZeroRows MatPtAPSymbolic
MatAXPY MatGetBlockSize MatPythonCreate
MatAYPX MatGetBlockSizes MatPythonSetType
MatBlockMatSetPreallocation MatGetColumnNorms MatRARt
MatCUSPARSEFormatOperation MatGetDiagonal MatRARtNumeric
MatCUSPARSESetFormat MatGetFactor MatRARtSymbolic
MatCUSPARSEStorageFormat MatGetFactorAvailable MatReorderForNonzeroDiagonal
MatCUSPFormatOperation MatGetFactorType MatRestoreLocalSubMatrix
MatCUSPSetFormat MatGetInfo MatRestrict
MatCUSPStorageFormat MatGetLocalSubMatrix MatScale
MatChop MatGetNonzeroState MatScatterGetVecScatter
MatColoringWeightType MatGetOption MatSeqAIJFromMatlab
MatConvert MatGetOwnershipIS MatSeqAIJGetArray
MatCopy MatGetRowMax MatSeqAIJGetMaxRowNonzeros
MatCreateAIJ MatGetRowMaxAbs MatSeqAIJRestoreArray
MatCreateAIJCUSP MatGetRowMin MatSeqAIJSetPreallocation
MatCreateAIJCUSPARSE MatGetRowMinAbs MatSeqAIJSetType
MatCreateAIJViennaCL MatGetRowSum MatSeqBAIJSetPreallocation
MatCreateBAIJ MatGetSeqNonzeroStructure MatSeqDenseSetLDA
MatCreateBAIJMKL MatGetType MatSeqDenseSetPreallocation
MatCreateBlockMat MatHYPRESetPreallocation MatSeqSBAIJGetArray
MatCreateDense MatHermitianTranspose MatSeqSBAIJRestoreArray
MatCreateFFT MatISSetPreallocation MatSeqSBAIJSetPreallocation
MatCreateHermitianTranspose MatInfo MatSetBlockSize
MatCreateLRC MatInterpolate MatSetBlockSizes
MatCreateMPIAIJCRL MatInterpolateAdd MatSetLocalToGlobalMapping
MatCreateMPIAIJMKL MatIsHermitian MatSetOption
MatCreateMPIAIJPERM MatIsHermitianTranspose MatSetRandom
MatCreateMPIAIJWithArrays MatIsStructurallySymmetric MatSetType
MatCreateMPIAdj MatIsSymmetric MatSetValuesBlocked
MatCreateMPIBAIJWithArrays MatIsTranspose MatSetValuesBlockedLocal
MatCreateMPISBAIJWithArrays MatLRCGetMats MatSetValuesLocal
MatCreateNormal MatMPIAIJSetPreallocation MatSetValuesRowLocal
MatCreateNormalHermitian MatMPIAdjSetPreallocation MatShift
MatCreateSBAIJ MatMPIBAIJSetPreallocation MatSolvePackageGet
MatCreateScatter MatMPIDenseSetPreallocation MatSolvePackageRegister
MatCreateSeqAIJ MatMPISBAIJSetPreallocation MatStashSetInitialSize
MatCreateSeqAIJCRL MatMatMatMult MatTranspose
MatCreateSeqAIJCUSP MatMatMult MatTransposeColoringCreate
MatCreateSeqAIJCUSPARSE MatMatMultEqual MatTransposeColoringDestroy
MatCreateSeqAIJFromTriple MatMatMultNumeric MatTransposeGetMat
MatCreateSeqAIJMKL MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqAIJPERM MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqAIJViennaCL MatMkl_CPardisoSetCntl MatZeroEntries
MatCreateSeqAIJWithArrays MatMultAddEqual MatZeroRows
MatCreateSeqBAIJ MatMultEqual MatZeroRowsColumns
MatCreateSeqBAIJMKL MatMultTransposeAddEqual MatZeroRowsColumnsIS
MatCreateSeqCUFFT MatMultTransposeEqual MatZeroRowsColumnsLocal
MatCreateSeqDense MatNorm MatZeroRowsColumnsLocalIS
MatCreateSeqSBAIJ MatPreallocateFinalize MatZeroRowsColumnsStencil
MatCreateTranspose MatPreallocateInitialize MatZeroRowsIS
MatDenseGetArray MatPreallocateLocation MatZeroRowsLocal
MatDenseGetLocalMatrix MatPreallocateSet MatZeroRowsLocalIS
MatDenseRestoreArray MatPreallocateSetLocal MatZeroRowsStencil
MatDiagonalScale MatPreallocateSetLocalBlock VecScatterFFTWToPetsc
MatDiagonalSet MatPreallocateSetLocalRemoveDups 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
MatConjugate MatISGetLocalMat MatRegisterAll
MatCreateComposite MatISRestoreLocalMat MatRegisterBaseName
MatCreateIS MatISSetLocalMat MatRestoreRow
MatCreateMAIJ MatISSetUpSF MatRestoreRowUpperTriangular
MatCreateMFFD MatImaginaryPart MatRetrieveValues
MatCreateMPIAIJSumSeqAIJ MatInodeGetInodeSizes MatScatterSetVecScatter
MatCreateMPIAIJWithSeqAIJ MatInvertBlockDiagonal MatSeqAIJGetArrayF90
MatCreateMPIAIJWithSplitArrays MatIsHermitianKnown MatSeqAIJRegister
MatCreateMPIMatConcatenateSeqMat MatIsSymmetricKnown MatSeqAIJRegisterAll
MatCreateNest MatMAIJGetAIJ MatSeqAIJRestoreArrayF90
MatCreateRedundantMatrix MatMAIJRedimension MatSeqAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatMFFDCheckPositivity MatSeqBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDDSSetUmin MatSeqSBAIJSetColumnIndices
MatCreateShell MatMFFDGetH MatSetErrorIfFailure
MatCreateSubMatrices MatMFFDResetHHistory MatSetNearNullSpace
MatCreateSubMatricesMPI MatMFFDSetBase MatSetNullSpace
MatCreateSubMatrix MatMFFDSetCheckh MatSetOptionsPrefix
MatCreateVecs MatMFFDSetFunction MatSetTransposeNullSpace
MatCreateVecsFFTW MatMFFDSetFunctionError MatSetValuesBatch
MatDenseGetArrayF90 MatMFFDSetFunctioni MatSetValuesRow
MatDenseRestoreArrayF90 MatMFFDSetFunctioniBase MatShellGetContext
MatDestroyMatrices MatMFFDSetHHistory MatShellGetOperation
MatDestroySeqNonzeroStructure MatMFFDSetOptionsPrefix MatShellSetContext
MatDestroySubMatrices MatMFFDSetPeriod MatShellSetOperation
MatFactorCreateSchurComplement MatMFFDSetType MatStashGetInfo
MatFactorFactorizeSchurComplement MatMFFDWPSetComputeNormU MatStoreValues
MatFactorGetError MatMPIAIJSetUseScalableIncreaseOverlap MatSubdomainsCreateCoalesce
MatFactorGetErrorZeroPivot MatMPIAIJSetValuesBatch MatTransColoringApplyDenToSp
MatFactorGetSchurComplement MatMPIBAIJSetHashTableFactor MatTransColoringApplySpToDen
MatFactorInvertSchurComplement MatMPIBAIJSetValuesBlocked
MatFactorRestoreSchurComplement MatMissingDiagonal
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 MatSetUnfactored
MatFindOffBlockDiagonalEntries MatMFFDRegister MatSolve
MatFindZeroDiagonals MatMFFDRegisterAll MatSolveAdd
MatForwardSolve MatMPIAIJGetLocalMat MatSolveTranspose
MatGalerkin MatMPIAIJGetLocalMatCondensed MatSolveTransposeAdd
MatGetBrowsOfAcols MatMPIAIJSetPreallocationCSR MatSolves
MatGetColumnIJ MatMPIAdjCreateNonemptySubcommMat MatSubMatrixVirtualUpdate
MatGetCommunicationStructs MatMPIBAIJSetPreallocationCSR PetscElementalFinalizePackage
MatGetNearNullSpace MatMPISBAIJSetPreallocationCSR PetscElementalInitializePackage
MatGetNullSpace MatMatSolve
MatGetOwnershipRangeColumn MatMatSolveTranspose
No deprecated routines

Table of Contents