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

Table of Contents