petsc-dev 2014-04-22
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
MATAIJCRL MatInfoType MatSetFromOptions
MATAIJCUSPARSE MatLoad MatSetSizes
MATAIJCUSP MatMFFDType MatSetStencil
MATAIJ MATMPIADJ MatSetUp
MATAIJPERM MATMPIAIJ MatSetValue
MATAIJVIENNACL MATMPIBAIJ MatSetValuesBlockedStencil
MatAssemblyBegin MATMPISBAIJ MatSetValues
MatAssemblyEnd MatMultAdd MatSetValuesStencil
MatAssemblyType MatMultConstrained MATSOLVERBAS
MATBAIJ MatMultHermitianTransposeAdd MATSOLVERCHOLMOD
MatCoarsen MatMultHermitianTranspose MATSOLVERCLIQUE
MatCoarsenType MatMult MATSOLVERCUSPARSE
MatColoring MatMultTransposeAdd MATSOLVERESSL
MatColoringType MatMultTransposeConstrained MATSOLVERKLU
MatComputeBandwidth MatMultTranspose MATSOLVERLUSOL
MatCreate MatMumpsSetCntl MATSOLVERMATLAB
MATDENSE MatMumpsSetIcntl MATSOLVERMUMPS
MatDestroy MatOption MatSolverPackage
MatDuplicateOption MatOrderingType MATSOLVERPASTIX
MATELEMENTAL MatPartitioning MATSOLVERSUPERLU_DIST
MatFactorShiftType MatPartitioningType MATSOLVERSUPERLU
MatFactorType MatReuse MATSOLVERUMFPACK
MatFDColoring MATSBAIJ MatSORType
MatGetLocalSize MATSEQAIJCUSPARSE MatStencil
MatGetOwnershipRange MATSEQAIJCUSP MatStructure
MatGetOwnershipRangesColumn MATSEQAIJ MatSuperluSetILUDropTol
MatGetOwnershipRanges MATSEQAIJVIENNACL MatTransposeColoring
MatGetSize MATSEQBAIJ MatType
MatGetSubMatrixOption MATSEQDENSE MatView
Mat MATSEQSBAIJ MatXAIJSetPreallocation
Intermediate - Setting options for algorithms and data structures
MatAXPY MatGetBlockSize MatPtAPNumeric
MatAYPX MatGetBlockSizes MatPtAPSymbolic
MatBlockMatSetPreallocation MatGetColumnNorms MatPythonCreate
MatChop MatGetDiagonal MatPythonSetType
MatColoringWeightType MatGetFactorAvailable MatRARt
MatConvert MatGetFactor MatRARtNumeric
MatCopy MatGetFactorType MatRARtSymbolic
MatCreateAIJCUSPARSE MatGetInfo MatReorderForNonzeroDiagonal
MatCreateAIJCUSP MatGetLocalSubMatrix MatRestoreLocalSubMatrix
MatCreateAIJ MatGetNonzeroState MatRestrict
MatCreateAIJViennaCL MatGetOwnershipIS MatScale
MatCreateBAIJ MatGetRowMaxAbs MatScatterGetVecScatter
MatCreateBlockMat MatGetRowMax MatSeqAIJFromMatlab
MatCreateDense MatGetRowMinAbs MatSeqAIJGetArray
MatCreateFFT MatGetRowMin MatSeqAIJRestoreArray
MatCreateLRC MatGetRowSum MatSeqAIJSetPreallocation
MatCreateMPIAdj MatGetSeqNonzeroStructure MatSeqBAIJSetPreallocation
MatCreateMPIAIJCRL MatGetType MatSeqDenseSetLDA
MatCreateMPIAIJPERM MatHermitianTranspose MatSeqDenseSetPreallocation
MatCreateMPIAIJWithArrays MatInfo MatSeqSBAIJSetPreallocation
MatCreateMPIBAIJWithArrays MatInterpolateAdd MatSetBlockSize
MatCreateMPISBAIJWithArrays MatInterpolate MatSetBlockSizes
MatCreateNormal MatIsHermitian MatSetLocalToGlobalMappingBlock
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 MatPreallocateSetLocal MatZeroRowsStencil
MatEqual MatPreallocateSymmetricSet VecScatterFFTWToPetsc
MatFactorGetSolverPackage MatPreallocateSymmetricSetLocal VecScatterPetscToFFTW
MatFindNonzeroRows MatPtAP
Advanced - Setting more advanced options and customization
MatAppendOptionsPrefix MatGetTrace MatNestGetLocalISs
MatAssembled MatGetValues MatNestSetSubMats
MATBLOCKMAT MatGetVecsFFTW MatNullSpaceCreate
MatCompositeAddMat MatGetVecs MatNullSpaceCreateRigidBody
MATCOMPOSITE MatHasOperation MatNullSpaceDestroy
MatCompositeMerge MatImaginaryPart MatNullSpace
MatCompositeSetType MatInodeGetInodeSizes MatNullSpaceRemove
MatComputeExplicitOperator MatInvertBlockDiagonal MatNullSpaceSetFunction
MatConjugate MatISGetLocalMat MatNullSpaceTest
MatCreateComposite MatIsHermitianKnown MatNullSpaceView
MatCreateIS MATIS MatPermute
MatCreateMAIJ MatISSetLocalMat MatRealPart
MatCreateMFFD MatIsSymmetricKnown MatRegisterAll
MatCreateMPIAIJConcatenateSeqAIJ MatMAIJGetAIJ MatRegisterBaseName
MatCreateMPIAIJSumSeqAIJ MATMAIJ MatRegister
MatCreateMPIAIJWithSplitArrays MatMAIJRedimension MatRestoreRow
MatCreateNest MatMFFDAddNullSpace MatRestoreRowUpperTriangular
MatCreateSeqBAIJWithArrays MatMFFDCheckPositivity MatRetrieveValues
MatCreateSeqSBAIJWithArrays MatMFFDDSSetUmin MATSCATTER
MatCreateShell MatMFFDGetH MatScatterSetVecScatter
MatDenseGetArrayF90 MATMFFD MatSeqAIJGetArrayF90
MatDenseRestoreArrayF90 MatMFFDResetHHistory MatSeqAIJRestoreArrayF90
MatDestroyMatrices MatMFFDSetBase MatSeqAIJSetColumnIndices
MatDestroySeqNonzeroStructure MatMFFDSetCheckh MatSeqBAIJSetColumnIndices
MatGetColumnVector MatMFFDSetFunctionError MatSeqSBAIJSetColumnIndices
MatGetDiagonalBlock MatMFFDSetFunction MatSetNearNullSpace
MatGetGhosts MatMFFDSetFunctioniBase MatSetNullSpace
MatGetInertia MatMFFDSetFunctioni MatSetOptionsPrefix
MatGetLayouts MatMFFDSetHHistory MatSetValuesBatch
MatGetLocalToGlobalMappingBlock 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
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 MatSeqAIJSetPreallocationCSR
MatDiagonalScaleLocal MatMatSolve MatSeqBAIJSetPreallocationCSR
MatFactorInfo MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFD MatSetBlockSizesFromMats
MatFinalizePackage MatMFFDInitializePackage MatSetUnfactored
MatFindOffBlockDiagonalEntries MatMFFDRegisterAll MatSetValuesAdifor
MatFindZeroDiagonals MatMFFDRegister MatSolveAdd
MatForwardSolve MatMPIAdjCreateNonemptySubcommMat MatSolve
MatGetBrowsOfAcols MatMPIAIJGetLocalMatCondensed MatSolves
MatGetColumnIJ MatMPIAIJGetLocalMat MatSolveTransposeAdd
MatGetCommunicationStructs MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetNearNullSpace MatMPIBAIJSetPreallocationCSR MatSOR
MatGetNullSpace MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetOwnershipRangeColumn MatMultDiagonalBlock PetscElementalFinalizePackage
MatGetRowIJ MatNestGetSize PetscElementalInitializePackage
MatICCFactor MatNestGetSubMat
No deprecated routines

Table of Contents