petsc-3.6.0 2015-06-09
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 MatMultTransposeAdd
MATAIJCRL Mat MatMultTransposeConstrained
MATAIJCUSP MatAssemblyBegin MatMumpsGetCntl
MATAIJCUSPARSE MatAssemblyEnd MatMumpsGetIcntl
MATAIJPERM MatAssemblyType MatMumpsGetInfo
MATAIJVIENNACL MatCoarsen MatMumpsGetInfog
MATBAIJ MatCoarsenType MatMumpsGetRinfo
MATDENSE MatColoring MatMumpsGetRinfog
MATELEMENTAL MatColoringType MatMumpsSetCntl
MATMPIADJ MatComputeBandwidth MatMumpsSetIcntl
MATMPIAIJ MatCreate MatOption
MATMPIBAIJ MatDestroy MatOrderingType
MATMPISBAIJ MatDuplicateOption MatPartitioning
MATSBAIJ MatElementalHermitianGenDefEig MatPartitioningType
MATSEQAIJ MatFDColoring MatReuse
MATSEQAIJCUSP MatFactorShiftType MatSORType
MATSEQAIJCUSPARSE MatFactorType MatSetFromOptions
MATSEQAIJVIENNACL MatGetLocalSize MatSetSizes
MATSEQBAIJ MatGetOwnershipRange MatSetStencil
MATSEQDENSE MatGetOwnershipRanges MatSetUp
MATSEQSBAIJ MatGetOwnershipRangesColumn MatSetValue
MATSOLVERBAS MatGetSize MatSetValues
MATSOLVERCHOLMOD MatGetSubMatrixOption MatSetValuesBlockedStencil
MATSOLVERCLIQUE MatInfoType MatSetValuesStencil
MATSOLVERCUSPARSE MatLoad MatSolverPackage
MATSOLVERESSL MatMFFDType MatStencil
MATSOLVERKLU MatMkl_CPardisoSetCntl MatStructure
MATSOLVERLUSOL MatMkl_PardisoSetCntl MatSuperluSetILUDropTol
MATSOLVERMATLAB MatMult MatTransposeColoring
MATSOLVERMKL_PARDISO MatMultAdd MatType
MATSOLVERMUMPS MatMultConstrained MatView
MATSOLVERPASTIX MatMultHermitianTranspose MatXAIJSetPreallocation
MATSOLVERSUPERLU MatMultHermitianTransposeAdd
MATSOLVERSUPERLU_DIST MatMultTranspose
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
MatCreateSBAIJ MatMPIBAIJSetPreallocation MatSolvePackageRegister
MatCreateScatter MatMPIDenseSetPreallocation MatStashSetInitialSize
MatCreateSeqAIJ MatMPISBAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqAIJCRL MatMatMatMult MatTransColoringApplySpToDen
MatCreateSeqAIJCUSP MatMatMult MatTranspose
MatCreateSeqAIJCUSPARSE MatMatMultNumeric MatTransposeColoringCreate
MatCreateSeqAIJFromTriple MatMatMultSymbolic MatTransposeColoringDestroy
MatCreateSeqAIJPERM MatMatTransposeMult MatTransposeMatMult
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 MatGetRowUpperTriangular MatMumpsSolveSchurComplementTranspose
MATCOMPOSITE MatGetSubMatrices MatNestGetISs
MATIS MatGetSubMatrix MatNestGetLocalISs
MATMAIJ MatGetTrace MatNestSetSubMats
MATMFFD MatGetValues MatNullSpace
MATSCATTER MatHasOperation MatNullSpaceCreate
MATSHELL MatISGetLocalMat MatNullSpaceCreateRigidBody
MatAppendOptionsPrefix MatISSetLocalMat MatNullSpaceDestroy
MatAssembled MatImaginaryPart MatNullSpaceRemove
MatCompositeAddMat MatInodeGetInodeSizes MatNullSpaceSetFunction
MatCompositeMerge MatInvertBlockDiagonal MatNullSpaceTest
MatCompositeSetType MatIsHermitianKnown MatNullSpaceView
MatComputeExplicitOperator MatIsSymmetricKnown MatPermute
MatConjugate MatMAIJGetAIJ MatRealPart
MatCreateComposite MatMAIJRedimension MatRegister
MatCreateIS MatMFFDAddNullSpace MatRegisterAll
MatCreateMAIJ MatMFFDCheckPositivity MatRegisterBaseName
MatCreateMFFD MatMFFDDSSetUmin MatRestoreRow
MatCreateMPIAIJSumSeqAIJ MatMFFDGetH MatRestoreRowUpperTriangular
MatCreateMPIAIJWithSplitArrays MatMFFDResetHHistory MatRetrieveValues
MatCreateMPIMatConcatenateSeqMat MatMFFDSetBase MatScatterSetVecScatter
MatCreateNest MatMFFDSetCheckh MatSeqAIJGetArrayF90
MatCreateRedundantMatrix MatMFFDSetFunction MatSeqAIJRestoreArrayF90
MatCreateSeqBAIJWithArrays MatMFFDSetFunctionError MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDSetFunctioni MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDSetFunctioniBase MatSeqSBAIJSetColumnIndices
MatCreateVecs MatMFFDSetHHistory MatSetErrorIfFPE
MatCreateVecsFFTW MatMFFDSetOptionsPrefix MatSetNearNullSpace
MatDenseGetArrayF90 MatMFFDSetPeriod MatSetNullSpace
MatDenseRestoreArrayF90 MatMFFDSetType MatSetOptionsPrefix
MatDestroyMatrices MatMFFDWPSetComputeNormU MatSetTransposeNullSpace
MatDestroySeqNonzeroStructure MatMPIAIJSetValuesBatch MatSetValuesBatch
MatGetColumnVector MatMPIBAIJSetHashTableFactor MatSetValuesRow
MatGetDiagonalBlock MatMPIBAIJSetValuesBlocked MatShellGetContext
MatGetGhosts MatMissingDiagonal MatShellGetOperation
MatGetInertia MatMumpsCreateSchurComplement MatShellSetContext
MatGetLayouts MatMumpsGetSchurComplement MatShellSetOperation
MatGetLocalToGlobalMapping MatMumpsInvertSchurComplement MatStashGetInfo
MatGetMultiProcBlock MatMumpsRestoreSchurComplement MatStoreValues
MatGetOptionsPrefix MatMumpsSetSchurIndices MatSubdomainsCreateCoalesce
MatGetRow MatMumpsSolveSchurComplement
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactorSymbolic MatNestGetSubMats
MatCheckCompressedRow MatILUFactor MatNestSetSubMat
MatCholeskyFactor MatILUFactorSymbolic MatNestSetVecType
MatCholeskyFactorNumeric MatISGetMPIXAIJ MatNullSpaceGetVecs
MatCholeskyFactorSymbolic MatIncreaseOverlap MatResidual
MatColoringPatch MatInitializePackage MatRestoreColumnIJ
MatCreateLocalRef MatLUFactor MatRestoreRowIJ
MatCreateSubMatrix MatLUFactorNumeric MatSOR
MatDiagonalScaleLocal MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorInfo MatMFFD MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFinalizePackage MatMFFDInitializePackage MatSetBlockSizesFromMats
MatFindOffBlockDiagonalEntries MatMFFDRegister MatSetUnfactored
MatFindZeroDiagonals MatMFFDRegisterAll MatSetValuesAdifor
MatForwardSolve MatMPIAIJGetLocalMat MatSolve
MatGetBrowsOfAcols MatMPIAIJGetLocalMatCondensed MatSolveAdd
MatGetColumnIJ MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetCommunicationStructs MatMPIAdjCreateNonemptySubcommMat MatSolveTransposeAdd
MatGetNearNullSpace MatMPIBAIJSetPreallocationCSR MatSolves
MatGetNullSpace MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetOwnershipRangeColumn MatMatSolve PetscElementalFinalizePackage
MatGetRowIJ MatMultDiagonalBlock PetscElementalInitializePackage
MatGetTransposeNullSpace MatNestGetSize
MatICCFactor MatNestGetSubMat
No deprecated routines

Table of Contents