petsc-master 2016-07-25
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 MatAssemblyBegin MatMultTransposeConstrained
MATAIJCRL MatAssemblyEnd MatMumpsGetCntl
MATAIJCUSP MatAssemblyType MatMumpsGetIcntl
MATAIJCUSPARSE MatColoring MatMumpsGetInfo
MATAIJPERM MatColoringType MatMumpsGetInfog
MATAIJVIENNACL MatComputeBandwidth MatMumpsGetRinfo
MATBAIJ MatCreate MatMumpsGetRinfog
MATDENSE MatDestroy MatMumpsSetCntl
MATELEMENTAL MatDuplicateOption MatMumpsSetIcntl
MATMPIADJ MatElementalHer2k MatOption
MATMPIAIJ MatElementalHerk MatOrderingType
MATMPIBAIJ MatElementalHermitianGenDefEig MatPartitioning
MATMPISBAIJ MatElementalSyr2k MatPartitioningType
MATSBAIJ MatElementalSyrk MatReuse
MATSEQAIJ MatFDColoring MatSORType
MATSEQAIJCUSP MatFactorError MatSTRUMPACKSetColPerm
MATSEQAIJCUSPARSE MatFactorShiftType MatSTRUMPACKSetHSSMinSize
MATSEQAIJVIENNACL MatFactorType MatSTRUMPACKSetHSSRelCompTol
MATSEQBAIJ MatGetLocalSize MatSetFromOptions
MATSEQDENSE MatGetOwnershipRange MatSetSizes
MATSEQSBAIJ MatGetOwnershipRanges MatSetStencil
MATSOLVERCHOLMOD MatGetOwnershipRangesColumn MatSetUp
MATSOLVERCLIQUE MatGetSize MatSetValue
MATSOLVERCUSPARSE MatGetSubMatrixOption MatSetValues
MATSOLVERESSL MatInfoType MatSetValuesBlockedStencil
MATSOLVERKLU MatLoad MatSetValuesStencil
MATSOLVERLUSOL MatMFFDType MatSolverPackage
MATSOLVERMATLAB MatMkl_CPardisoSetCntl MatStencil
MATSOLVERMKL_PARDISO MatMkl_PardisoSetCntl MatStructure
MATSOLVERMUMPS MatMult MatSuperluSetILUDropTol
MATSOLVERPASTIX MatMultAdd MatTransposeColoring
MATSOLVERSSTRUMPACK MatMultConstrained MatType
MATSOLVERSUPERLU MatMultHermitianTranspose MatView
MATSOLVERSUPERLU_DIST MatMultHermitianTransposeAdd MatXAIJSetPreallocation
MATSOLVERUMFPACK MatMultTranspose
Mat MatMultTransposeAdd
Intermediate - Setting options for algorithms and data structures
MATMFFD_DS MatEqual MatPtAP
MATMFFD_WP MatFactorGetSolverPackage MatPtAPNumeric
MATNEST MatFindNonzeroRows MatPtAPSymbolic
MATSOLVERBAS 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
MatCreateNormalHermitian MatMPIBAIJSetPreallocation MatSolvePackageRegister
MatCreateSBAIJ MatMPIDenseSetPreallocation MatStashSetInitialSize
MatCreateScatter MatMPISBAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqAIJ MatMatMatMult MatTransColoringApplySpToDen
MatCreateSeqAIJCRL MatMatMult MatTranspose
MatCreateSeqAIJCUSP MatMatMultEqual MatTransposeColoringCreate
MatCreateSeqAIJCUSPARSE MatMatMultNumeric MatTransposeColoringDestroy
MatCreateSeqAIJFromTriple MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqAIJPERM MatMatTransposeMult MatTransposeMatMultEqual
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 MatGetGhosts MatNestGetISs
MATCOMPOSITE MatGetInertia MatNestGetLocalISs
MATIS MatGetLayouts MatNestSetSubMats
MATMAIJ MatGetLocalToGlobalMapping MatNullSpace
MATMFFD MatGetMultiProcBlock MatNullSpaceCreate
MATPREALLOCATOR MatGetOptionsPrefix MatNullSpaceCreateRigidBody
MATSCATTER MatGetRow MatNullSpaceDestroy
MATSHELL MatGetRowUpperTriangular MatNullSpaceRemove
MatAppendOptionsPrefix MatGetSubMatrices MatNullSpaceSetFunction
MatAssembled MatGetSubMatrix MatNullSpaceTest
MatCompositeAddMat MatGetTrace MatNullSpaceView
MatCompositeMerge MatGetValues MatPermute
MatCompositeSetType MatHasOperation MatPreallocatorPreallocate
MatComputeExplicitOperator MatISGetLocalMat MatRealPart
MatConjugate MatISSetLocalMat MatRegister
MatCreateComposite MatImaginaryPart MatRegisterAll
MatCreateIS MatInodeGetInodeSizes MatRegisterBaseName
MatCreateMAIJ MatInvertBlockDiagonal MatRestoreRow
MatCreateMFFD MatIsHermitianKnown MatRestoreRowUpperTriangular
MatCreateMPIAIJSumSeqAIJ MatIsSymmetricKnown MatRetrieveValues
MatCreateMPIAIJWithSplitArrays MatMAIJGetAIJ MatScatterSetVecScatter
MatCreateMPIMatConcatenateSeqMat MatMAIJRedimension MatSeqAIJGetArrayF90
MatCreateNest MatMFFDCheckPositivity MatSeqAIJRestoreArrayF90
MatCreateRedundantMatrix MatMFFDDSSetUmin MatSeqAIJSetColumnIndices
MatCreateSeqBAIJWithArrays MatMFFDGetH MatSeqBAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDResetHHistory MatSeqSBAIJSetColumnIndices
MatCreateShell MatMFFDSetBase MatSetErrorIfFailure
MatCreateVecs MatMFFDSetCheckh MatSetNearNullSpace
MatCreateVecsFFTW MatMFFDSetFunction MatSetNullSpace
MatDenseGetArrayF90 MatMFFDSetFunctionError MatSetOptionsPrefix
MatDenseRestoreArrayF90 MatMFFDSetFunctioni MatSetTransposeNullSpace
MatDestroyMatrices MatMFFDSetFunctioniBase MatSetValuesBatch
MatDestroySeqNonzeroStructure MatMFFDSetHHistory MatSetValuesRow
MatFactorCreateSchurComplement MatMFFDSetOptionsPrefix MatShellGetContext
MatFactorGetError MatMFFDSetPeriod MatShellGetOperation
MatFactorGetSchurComplement MatMFFDSetType MatShellSetContext
MatFactorInvertSchurComplement MatMFFDWPSetComputeNormU MatShellSetOperation
MatFactorRestoreSchurComplement MatMPIAIJSetUseScalableIncreaseOverlap MatStashGetInfo
MatFactorSolveSchurComplement MatMPIAIJSetValuesBatch MatStoreValues
MatFactorSolveSchurComplementTranspose MatMPIBAIJSetHashTableFactor MatSubdomainsCreateCoalesce
MatGetColumnVector MatMPIBAIJSetValuesBlocked
MatGetDiagonalBlock MatMissingDiagonal
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactor MatNestGetSize
MatCheckCompressedRow MatICCFactorSymbolic MatNestGetSubMat
MatCholeskyFactor MatILUFactor MatNestGetSubMats
MatCholeskyFactorNumeric MatILUFactorSymbolic MatNestSetSubMat
MatCholeskyFactorSymbolic MatISGetMPIXAIJ MatNestSetVecType
MatColoringPatch MatIncreaseOverlap MatNullSpaceGetVecs
MatCreateLocalRef MatIncreaseOverlapSplit MatResidual
MatCreateSubMatrix MatInitializePackage MatRestoreColumnIJ
MatDiagonalScaleLocal MatLUFactor MatRestoreRowIJ
MatFactorInfo MatLUFactorNumeric MatSOR
MatFactorInfoInitialize MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorSetSchurIS MatMFFD MatSeqBAIJSetPreallocationCSR
MatFinalizePackage MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFindOffBlockDiagonalEntries MatMFFDInitializePackage MatSetBlockSizesFromMats
MatFindZeroDiagonals MatMFFDRegister MatSetUnfactored
MatForwardSolve MatMFFDRegisterAll MatSetValuesAdifor
MatGetBrowsOfAcols MatMPIAIJGetLocalMat MatSolve
MatGetColumnIJ MatMPIAIJGetLocalMatCondensed MatSolveAdd
MatGetCommunicationStructs MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetNearNullSpace MatMPIAdjCreateNonemptySubcommMat MatSolveTransposeAdd
MatGetNullSpace MatMPIBAIJSetPreallocationCSR MatSolves
MatGetOwnershipRangeColumn MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetRowIJ MatMatSolve PetscElementalFinalizePackage
MatGetTransposeNullSpace MatMultDiagonalBlock PetscElementalInitializePackage
No deprecated routines

Table of Contents