petsc-3.5.0 2014-06-30
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 MatMumpsGetCntl
MATAIJCRL Mat MatMumpsGetIcntl
MATAIJCUSP MatAssemblyBegin MatMumpsGetInfo
MATAIJCUSPARSE MatAssemblyEnd MatMumpsGetInfog
MATAIJPERM MatAssemblyType MatMumpsGetRinfo
MATAIJVIENNACL MatCoarsen MatMumpsGetRinfog
MATBAIJ MatCoarsenType MatMumpsSetCntl
MATDENSE MatColoring MatMumpsSetIcntl
MATELEMENTAL MatColoringType MatOption
MATMPIADJ MatComputeBandwidth MatOrderingType
MATMPIAIJ MatCreate MatPartitioning
MATMPIBAIJ MatDestroy MatPartitioningType
MATMPISBAIJ MatDuplicateOption MatReuse
MATSBAIJ MatFDColoring MatSORType
MATSEQAIJ MatFactorShiftType MatSetFromOptions
MATSEQAIJCUSP MatFactorType MatSetSizes
MATSEQAIJCUSPARSE MatGetLocalSize MatSetStencil
MATSEQAIJVIENNACL MatGetOwnershipRange MatSetUp
MATSEQBAIJ MatGetOwnershipRanges MatSetValue
MATSEQDENSE MatGetOwnershipRangesColumn MatSetValues
MATSEQSBAIJ MatGetSize MatSetValuesBlockedStencil
MATSOLVERBAS MatGetSubMatrixOption MatSetValuesStencil
MATSOLVERCHOLMOD MatInfoType MatSolverPackage
MATSOLVERCLIQUE MatLoad MatStencil
MATSOLVERCUSPARSE MatMFFDType MatStructure
MATSOLVERESSL MatMult MatSuperluSetILUDropTol
MATSOLVERKLU MatMultAdd MatTransposeColoring
MATSOLVERLUSOL MatMultConstrained MatType
MATSOLVERMATLAB MatMultHermitianTranspose MatView
MATSOLVERMUMPS MatMultHermitianTransposeAdd MatXAIJSetPreallocation
MATSOLVERPASTIX MatMultTranspose atrix
MATSOLVERSUPERLU MatMultTransposeAdd
MATSOLVERSUPERLU_DIST MatMultTransposeConstrained
Intermediate - Setting options for algorithms and data structures
MATMFFD_DS MatEqual MatPtAP
MATMFFD_WP MatFactorGetSolverPackage MatPtAPNumeric
MATNEST MatFindNonzeroRows 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 MatGetOwnershipIS MatSeqAIJFromMatlab
MatConvert MatGetRowMax MatSeqAIJGetArray
MatCopy MatGetRowMaxAbs MatSeqAIJRestoreArray
MatCreateAIJ MatGetRowMin MatSeqAIJSetPreallocation
MatCreateAIJCUSP MatGetRowMinAbs MatSeqBAIJSetPreallocation
MatCreateAIJCUSPARSE MatGetRowSum MatSeqDenseSetLDA
MatCreateAIJViennaCL MatGetSeqNonzeroStructure MatSeqDenseSetPreallocation
MatCreateBAIJ MatGetType MatSeqSBAIJSetPreallocation
MatCreateBlockMat MatHermitianTranspose MatSetBlockSize
MatCreateDense MatInfo MatSetBlockSizes
MatCreateFFT MatInterpolate MatSetLocalToGlobalMapping
MatCreateLRC MatInterpolateAdd MatSetOption
MatCreateMPIAIJCRL MatIsHermitian MatSetRandom
MatCreateMPIAIJPERM MatIsHermitianTranspose MatSetType
MatCreateMPIAIJWithArrays MatIsStructurallySymmetric MatSetValuesBlocked
MatCreateMPIAdj MatIsSymmetric MatSetValuesBlockedLocal
MatCreateMPIBAIJWithArrays MatIsTranspose MatSetValuesLocal
MatCreateMPISBAIJWithArrays MatMPIAIJSetPreallocation MatSetValuesRowLocal
MatCreateNormal MatMPIAdjSetPreallocation MatShift
MatCreateSBAIJ MatMPIBAIJSetPreallocation MatStashSetInitialSize
MatCreateScatter MatMPIDenseSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqAIJ MatMPISBAIJSetPreallocation MatTransColoringApplySpToDen
MatCreateSeqAIJCRL MatMatMatMult MatTranspose
MatCreateSeqAIJCUSP MatMatMult MatTransposeColoringCreate
MatCreateSeqAIJCUSPARSE MatMatMultNumeric MatTransposeColoringDestroy
MatCreateSeqAIJFromTriple MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqAIJPERM MatMatTransposeMult MatZeroEntries
MatCreateSeqAIJViennaCL MatMultAddEqual MatZeroRows
MatCreateSeqAIJWithArrays MatMultEqual MatZeroRowsColumns
MatCreateSeqBAIJ 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 MatPreallocateSymmetricSetBlock VecScatterPetscToFFTW
MatDuplicate MatPreallocateSymmetricSetLocalBlock
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetRow MatNestGetISs
MATCOMPOSITE MatGetRowUpperTriangular MatNestGetLocalISs
MATIS MatGetSubMatrices MatNestSetSubMats
MATMAIJ MatGetSubMatrix MatNullSpace
MATMFFD MatGetTrace MatNullSpaceCreate
MATSCATTER MatGetValues MatNullSpaceCreateRigidBody
MATSHELL MatGetVecs MatNullSpaceDestroy
MatAppendOptionsPrefix MatGetVecsFFTW MatNullSpaceRemove
MatAssembled MatHasOperation MatNullSpaceSetFunction
MatCompositeAddMat MatISGetLocalMat MatNullSpaceTest
MatCompositeMerge MatISSetLocalMat MatNullSpaceView
MatCompositeSetType MatImaginaryPart MatPermute
MatComputeExplicitOperator MatInodeGetInodeSizes MatRealPart
MatConjugate MatInvertBlockDiagonal MatRegister
MatCreateComposite MatIsHermitianKnown MatRegisterAll
MatCreateIS MatIsSymmetricKnown MatRegisterBaseName
MatCreateMAIJ MatMAIJGetAIJ MatRestoreRow
MatCreateMFFD MatMAIJRedimension MatRestoreRowUpperTriangular
MatCreateMPIAIJConcatenateSeqAIJ MatMFFDAddNullSpace MatRetrieveValues
MatCreateMPIAIJSumSeqAIJ MatMFFDCheckPositivity MatScatterSetVecScatter
MatCreateMPIAIJWithSplitArrays MatMFFDDSSetUmin MatSeqAIJGetArrayF90
MatCreateNest MatMFFDGetH MatSeqAIJRestoreArrayF90
MatCreateSeqBAIJWithArrays MatMFFDResetHHistory MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDSetBase MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDSetCheckh MatSeqSBAIJSetColumnIndices
MatDenseGetArrayF90 MatMFFDSetFunction MatSetNearNullSpace
MatDenseRestoreArrayF90 MatMFFDSetFunctionError MatSetNullSpace
MatDestroyMatrices MatMFFDSetFunctioni MatSetOptionsPrefix
MatDestroySeqNonzeroStructure MatMFFDSetFunctioniBase MatSetValuesBatch
MatGetColumnVector MatMFFDSetHHistory MatSetValuesRow
MatGetDiagonalBlock MatMFFDSetOptionsPrefix MatShellGetContext
MatGetGhosts MatMFFDSetPeriod MatShellGetOperation
MatGetInertia MatMFFDSetType MatShellSetContext
MatGetLayouts MatMFFDWPSetComputeNormU MatShellSetOperation
MatGetLocalToGlobalMapping MatMPIAIJSetValuesBatch MatStashGetInfo
MatGetMultiProcBlock MatMPIBAIJSetHashTableFactor MatStoreValues
MatGetOptionsPrefix MatMPIBAIJSetValuesBlocked
MatGetRedundantMatrix MatMissingDiagonal
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactorSymbolic MatNestGetSubMats
MatCheckCompressedRow MatILUFactor MatNestSetSubMat
MatCholeskyFactor MatILUFactorSymbolic MatNestSetVecType
MatCholeskyFactorNumeric MatIncreaseOverlap MatNullSpaceGetVecs
MatCholeskyFactorSymbolic MatInitializePackage MatResidual
MatColoringPatch MatLUFactor MatRestoreColumnIJ
MatCreateLocalRef MatLUFactorNumeric MatRestoreRowIJ
MatCreateSubMatrix MatLUFactorSymbolic MatSOR
MatDiagonalScaleLocal MatMFFD MatSeqAIJSetPreallocationCSR
MatFactorInfo MatMFFDFinalizePackage MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDInitializePackage MatSeqSBAIJSetPreallocationCSR
MatFinalizePackage MatMFFDRegister MatSetBlockSizesFromMats
MatFindOffBlockDiagonalEntries MatMFFDRegisterAll MatSetUnfactored
MatFindZeroDiagonals MatMPIAIJGetLocalMat MatSetValuesAdifor
MatForwardSolve MatMPIAIJGetLocalMatCondensed MatSolve
MatGetBrowsOfAcols MatMPIAIJSetPreallocationCSR MatSolveAdd
MatGetColumnIJ MatMPIAdjCreateNonemptySubcommMat MatSolveTranspose
MatGetCommunicationStructs MatMPIBAIJSetPreallocationCSR MatSolveTransposeAdd
MatGetNearNullSpace MatMPISBAIJSetPreallocationCSR MatSolves
MatGetNullSpace MatMatSolve MatSubMatrixUpdate
MatGetOwnershipRangeColumn MatMultDiagonalBlock PetscElementalFinalizePackage
MatGetRowIJ MatNestGetSize PetscElementalInitializePackage
MatICCFactor MatNestGetSubMat
No deprecated routines

Table of Contents