petsc-3.5.1 2014-07-24
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 MatSeqAIJGetMaxRowNonzeros
MatCreateAIJ MatGetRowMin MatSeqAIJRestoreArray
MatCreateAIJCUSP MatGetRowMinAbs MatSeqAIJSetPreallocation
MatCreateAIJCUSPARSE MatGetRowSum MatSeqBAIJSetPreallocation
MatCreateAIJViennaCL MatGetSeqNonzeroStructure MatSeqDenseSetLDA
MatCreateBAIJ MatGetType MatSeqDenseSetPreallocation
MatCreateBlockMat MatHermitianTranspose MatSeqSBAIJSetPreallocation
MatCreateDense MatInfo MatSetBlockSize
MatCreateFFT MatInterpolate MatSetBlockSizes
MatCreateLRC MatInterpolateAdd MatSetLocalToGlobalMapping
MatCreateMPIAIJCRL MatIsHermitian MatSetOption
MatCreateMPIAIJPERM MatIsHermitianTranspose MatSetRandom
MatCreateMPIAIJWithArrays MatIsStructurallySymmetric MatSetType
MatCreateMPIAdj MatIsSymmetric MatSetValuesBlocked
MatCreateMPIBAIJWithArrays MatIsTranspose MatSetValuesBlockedLocal
MatCreateMPISBAIJWithArrays MatMPIAIJSetPreallocation MatSetValuesLocal
MatCreateNormal MatMPIAdjSetPreallocation MatSetValuesRowLocal
MatCreateSBAIJ MatMPIBAIJSetPreallocation MatShift
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
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