petsc-3.6.4 2016-04-12
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 MatNestGetISs
MATCOMPOSITE MatGetSubMatrices MatNestGetLocalISs
MATIS MatGetSubMatrix MatNestSetSubMats
MATMAIJ MatGetTrace MatNullSpace
MATMFFD MatGetValues MatNullSpaceCreate
MATSCATTER MatHasOperation MatNullSpaceCreateRigidBody
MATSHELL MatISGetLocalMat MatNullSpaceDestroy
MatAppendOptionsPrefix MatISSetLocalMat MatNullSpaceRemove
MatAssembled MatImaginaryPart MatNullSpaceSetFunction
MatCompositeAddMat MatInodeGetInodeSizes MatNullSpaceTest
MatCompositeMerge MatInvertBlockDiagonal MatNullSpaceView
MatCompositeSetType MatIsHermitianKnown MatPermute
MatComputeExplicitOperator MatIsSymmetricKnown MatRealPart
MatConjugate MatMAIJGetAIJ MatRegister
MatCreateComposite MatMAIJRedimension MatRegisterAll
MatCreateIS MatMFFDCheckPositivity MatRegisterBaseName
MatCreateMAIJ MatMFFDDSSetUmin MatRestoreRow
MatCreateMFFD MatMFFDGetH MatRestoreRowUpperTriangular
MatCreateMPIAIJSumSeqAIJ MatMFFDResetHHistory MatRetrieveValues
MatCreateMPIAIJWithSplitArrays MatMFFDSetBase MatScatterSetVecScatter
MatCreateMPIMatConcatenateSeqMat MatMFFDSetCheckh MatSeqAIJGetArrayF90
MatCreateNest MatMFFDSetFunction MatSeqAIJRestoreArrayF90
MatCreateRedundantMatrix MatMFFDSetFunctionError MatSeqAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatMFFDSetFunctioni MatSeqBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDSetFunctioniBase MatSeqSBAIJSetColumnIndices
MatCreateShell MatMFFDSetHHistory MatSetErrorIfFPE
MatCreateVecs MatMFFDSetOptionsPrefix MatSetNearNullSpace
MatCreateVecsFFTW MatMFFDSetPeriod MatSetNullSpace
MatDenseGetArrayF90 MatMFFDSetType MatSetOptionsPrefix
MatDenseRestoreArrayF90 MatMFFDWPSetComputeNormU MatSetTransposeNullSpace
MatDestroyMatrices MatMPIAIJSetValuesBatch MatSetValuesBatch
MatDestroySeqNonzeroStructure MatMPIBAIJSetHashTableFactor MatSetValuesRow
MatGetColumnVector MatMPIBAIJSetValuesBlocked MatShellGetContext
MatGetDiagonalBlock MatMissingDiagonal MatShellGetOperation
MatGetGhosts MatMumpsCreateSchurComplement MatShellSetContext
MatGetInertia MatMumpsGetSchurComplement MatShellSetOperation
MatGetLayouts MatMumpsInvertSchurComplement MatStashGetInfo
MatGetLocalToGlobalMapping MatMumpsRestoreSchurComplement MatStoreValues
MatGetMultiProcBlock MatMumpsSetSchurIndices MatSubdomainsCreateCoalesce
MatGetOptionsPrefix MatMumpsSolveSchurComplement
MatGetRow MatMumpsSolveSchurComplementTranspose
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