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

Table of Contents