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

Table of Contents