petsc-3.7.7 2017-09-25
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 MatMultTranspose
MATAIJCRL Mat MatMultTransposeAdd
MATAIJCUSP MatAssemblyBegin MatMultTransposeConstrained
MATAIJCUSPARSE MatAssemblyEnd MatMumpsGetCntl
MATAIJPERM MatAssemblyType MatMumpsGetIcntl
MATAIJVIENNACL MatCoarsen MatMumpsGetInfo
MATBAIJ MatCoarsenType MatMumpsGetInfog
MATDENSE MatColoring MatMumpsGetRinfo
MATELEMENTAL MatColoringType MatMumpsGetRinfog
MATMPIADJ MatComputeBandwidth MatMumpsSetCntl
MATMPIAIJ MatCreate MatMumpsSetIcntl
MATMPIBAIJ MatDestroy MatOption
MATMPISBAIJ MatDuplicateOption MatOrderingType
MATSBAIJ MatElementalHermitianGenDefEig MatPartitioning
MATSEQAIJ MatFDColoring MatPartitioningType
MATSEQAIJCUSP MatFactorError MatReuse
MATSEQAIJCUSPARSE MatFactorShiftType MatSORType
MATSEQAIJVIENNACL MatFactorType MatSetFromOptions
MATSEQBAIJ MatGetLocalSize MatSetSizes
MATSEQDENSE MatGetOwnershipRange MatSetStencil
MATSEQSBAIJ MatGetOwnershipRanges MatSetUp
MATSOLVERBAS MatGetOwnershipRangesColumn MatSetValue
MATSOLVERCHOLMOD MatGetSize MatSetValues
MATSOLVERCLIQUE MatGetSubMatrixOption MatSetValuesBlockedStencil
MATSOLVERCUSPARSE MatInfoType MatSetValuesStencil
MATSOLVERESSL MatLoad MatSolverPackage
MATSOLVERKLU MatMFFDType MatStencil
MATSOLVERLUSOL MatMkl_CPardisoSetCntl MatStructure
MATSOLVERMATLAB MatMkl_PardisoSetCntl MatSuperluSetILUDropTol
MATSOLVERMKL_PARDISO MatMult MatTransposeColoring
MATSOLVERMUMPS MatMultAdd MatType
MATSOLVERPASTIX MatMultConstrained MatView
MATSOLVERSUPERLU MatMultHermitianTranspose MatXAIJSetPreallocation
MATSOLVERSUPERLU_DIST MatMultHermitianTransposeAdd
Intermediate - Setting options for algorithms and data structures
MATMFFD_DS MatFactorGetSolverPackage MatPtAPNumeric
MATMFFD_WP MatFindNonzeroRows MatPtAPSymbolic
MATNEST MatGetBlockSize MatPythonCreate
MatAXPY MatGetBlockSizes MatPythonSetType
MatAYPX MatGetColumnNorms MatRARt
MatBlockMatSetPreallocation MatGetDiagonal MatRARtNumeric
MatCUSPARSEFormatOperation MatGetFactor MatRARtSymbolic
MatCUSPARSESetFormat MatGetFactorAvailable MatReorderForNonzeroDiagonal
MatCUSPARSEStorageFormat MatGetFactorType MatRestoreLocalSubMatrix
MatCUSPFormatOperation MatGetInfo MatRestrict
MatCUSPSetFormat MatGetLocalSubMatrix MatScale
MatCUSPStorageFormat MatGetNonzeroState MatScatterGetVecScatter
MatChop MatGetOption MatSeqAIJFromMatlab
MatColoringWeightType MatGetOwnershipIS MatSeqAIJGetArray
MatConvert MatGetRowMax MatSeqAIJGetMaxRowNonzeros
MatCopy MatGetRowMaxAbs MatSeqAIJRestoreArray
MatCreateAIJ MatGetRowMin MatSeqAIJSetPreallocation
MatCreateAIJCUSP MatGetRowMinAbs MatSeqBAIJSetPreallocation
MatCreateAIJCUSPARSE MatGetRowSum MatSeqDenseSetLDA
MatCreateAIJViennaCL MatGetSeqNonzeroStructure MatSeqDenseSetPreallocation
MatCreateBAIJ MatGetType MatSeqSBAIJSetPreallocation
MatCreateBlockMat MatHermitianTranspose MatSetBlockSize
MatCreateDense MatISSetPreallocation MatSetBlockSizes
MatCreateFFT MatInfo MatSetLocalToGlobalMapping
MatCreateHermitianTranspose MatInterpolate MatSetOption
MatCreateLRC MatInterpolateAdd MatSetRandom
MatCreateMPIAIJCRL MatIsHermitian MatSetType
MatCreateMPIAIJPERM MatIsHermitianTranspose MatSetValuesBlocked
MatCreateMPIAIJWithArrays MatIsStructurallySymmetric MatSetValuesBlockedLocal
MatCreateMPIAdj MatIsSymmetric MatSetValuesLocal
MatCreateMPIBAIJWithArrays MatIsTranspose MatSetValuesRowLocal
MatCreateMPISBAIJWithArrays MatMPIAIJSetPreallocation MatShift
MatCreateNormal MatMPIAdjSetPreallocation MatSolvePackageGet
MatCreateNormalHermitian MatMPIBAIJSetPreallocation MatSolvePackageRegister
MatCreateSBAIJ MatMPIDenseSetPreallocation MatStashSetInitialSize
MatCreateScatter MatMPISBAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqAIJ MatMatMatMult MatTransColoringApplySpToDen
MatCreateSeqAIJCRL MatMatMult MatTranspose
MatCreateSeqAIJCUSP MatMatMultEqual MatTransposeColoringCreate
MatCreateSeqAIJCUSPARSE MatMatMultNumeric MatTransposeColoringDestroy
MatCreateSeqAIJFromTriple MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqAIJPERM MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqAIJViennaCL MatMultAddEqual MatZeroEntries
MatCreateSeqAIJWithArrays MatMultEqual MatZeroRows
MatCreateSeqBAIJ MatMultTransposeAddEqual MatZeroRowsColumns
MatCreateSeqCUFFT MatMultTransposeEqual MatZeroRowsColumnsIS
MatCreateSeqDense MatNorm MatZeroRowsColumnsLocal
MatCreateSeqSBAIJ MatPreallocateFinalize MatZeroRowsColumnsLocalIS
MatCreateTranspose MatPreallocateInitialize MatZeroRowsColumnsStencil
MatDenseGetArray MatPreallocateLocation MatZeroRowsIS
MatDenseGetLocalMatrix MatPreallocateSet MatZeroRowsLocal
MatDenseRestoreArray MatPreallocateSetLocal MatZeroRowsLocalIS
MatDiagonalScale MatPreallocateSetLocalBlock MatZeroRowsStencil
MatDiagonalSet MatPreallocateSymmetricSetBlock VecScatterFFTWToPetsc
MatDuplicate MatPreallocateSymmetricSetLocalBlock VecScatterPetscToFFTW
MatEqual MatPtAP
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetGhosts MatMissingDiagonal
MATCOMPOSITE MatGetInertia MatNestGetISs
MATIS MatGetLayouts MatNestGetLocalISs
MATMAIJ MatGetLocalToGlobalMapping MatNestSetSubMats
MATMFFD MatGetMultiProcBlock MatNullSpace
MATPREALLOCATOR MatGetOptionsPrefix MatNullSpaceCreate
MATSCATTER MatGetRow MatNullSpaceCreateRigidBody
MATSHELL MatGetRowUpperTriangular MatNullSpaceDestroy
MatAppendOptionsPrefix MatGetSubMatrices MatNullSpaceRemove
MatAssembled MatGetSubMatrix MatNullSpaceSetFunction
MatCompositeAddMat MatGetTrace MatNullSpaceTest
MatCompositeMerge MatGetValues MatNullSpaceView
MatCompositeSetType MatHasOperation MatPermute
MatComputeExplicitOperator MatISGetLocalMat MatPreallocatorPreallocate
MatConjugate MatISSetLocalMat MatRealPart
MatCreateComposite MatImaginaryPart MatRegister
MatCreateIS MatInodeGetInodeSizes MatRegisterAll
MatCreateMAIJ MatInvertBlockDiagonal MatRegisterBaseName
MatCreateMFFD MatIsHermitianKnown MatRestoreRow
MatCreateMPIAIJSumSeqAIJ MatIsSymmetricKnown MatRestoreRowUpperTriangular
MatCreateMPIAIJWithSplitArrays MatMAIJGetAIJ MatRetrieveValues
MatCreateMPIMatConcatenateSeqMat MatMAIJRedimension MatScatterSetVecScatter
MatCreateNest MatMFFDCheckPositivity MatSeqAIJGetArrayF90
MatCreateRedundantMatrix MatMFFDDSSetUmin MatSeqAIJRestoreArrayF90
MatCreateSeqBAIJWithArrays MatMFFDGetH MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDResetHHistory MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDSetBase MatSeqSBAIJSetColumnIndices
MatCreateVecs MatMFFDSetCheckh MatSetErrorIfFailure
MatCreateVecsFFTW MatMFFDSetFunction MatSetNearNullSpace
MatDenseGetArrayF90 MatMFFDSetFunctionError MatSetNullSpace
MatDenseRestoreArrayF90 MatMFFDSetFunctioni MatSetOptionsPrefix
MatDestroyMatrices MatMFFDSetFunctioniBase MatSetTransposeNullSpace
MatDestroySeqNonzeroStructure MatMFFDSetHHistory MatSetValuesBatch
MatFactorCreateSchurComplement MatMFFDSetOptionsPrefix MatSetValuesRow
MatFactorGetSchurComplement MatMFFDSetPeriod MatShellGetContext
MatFactorInvertSchurComplement MatMFFDSetType MatShellGetOperation
MatFactorRestoreSchurComplement MatMFFDWPSetComputeNormU MatShellSetContext
MatFactorSolveSchurComplement MatMPIAIJSetUseScalableIncreaseOverlap MatShellSetOperation
MatFactorSolveSchurComplementTranspose MatMPIAIJSetValuesBatch MatStashGetInfo
MatGetColumnVector MatMPIBAIJSetHashTableFactor MatStoreValues
MatGetDiagonalBlock MatMPIBAIJSetValuesBlocked MatSubdomainsCreateCoalesce
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactor MatNestGetSize
MatCheckCompressedRow MatICCFactorSymbolic MatNestGetSubMat
MatCholeskyFactor MatILUFactor MatNestGetSubMats
MatCholeskyFactorNumeric MatILUFactorSymbolic MatNestSetSubMat
MatCholeskyFactorSymbolic MatISGetMPIXAIJ MatNestSetVecType
MatColoringPatch MatIncreaseOverlap MatNullSpaceGetVecs
MatCreateLocalRef MatIncreaseOverlapSplit MatResidual
MatCreateSubMatrix MatInitializePackage MatRestoreColumnIJ
MatDiagonalScaleLocal MatLUFactor MatRestoreRowIJ
MatFactorInfo MatLUFactorNumeric MatSOR
MatFactorInfoInitialize MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorSetSchurIS MatMFFD MatSeqBAIJSetPreallocationCSR
MatFinalizePackage MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFindOffBlockDiagonalEntries MatMFFDInitializePackage MatSetBlockSizesFromMats
MatFindZeroDiagonals MatMFFDRegister MatSetUnfactored
MatForwardSolve MatMFFDRegisterAll MatSetValuesAdifor
MatGetBrowsOfAcols MatMPIAIJGetLocalMat MatSolve
MatGetColumnIJ MatMPIAIJGetLocalMatCondensed MatSolveAdd
MatGetCommunicationStructs MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetNearNullSpace MatMPIAdjCreateNonemptySubcommMat MatSolveTransposeAdd
MatGetNullSpace MatMPIBAIJSetPreallocationCSR MatSolves
MatGetOwnershipRangeColumn MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetRowIJ MatMatSolve PetscElementalFinalizePackage
MatGetTransposeNullSpace MatMultDiagonalBlock PetscElementalInitializePackage
No deprecated routines

Table of Contents