petsc-master 2016-08-29
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 MatFactorGetSolverPackage MatPtAPNumeric
MATMFFD_WP MatFindNonzeroRows MatPtAPSymbolic
MATNEST MatGetBlockSize MatPythonCreate
MATSOLVERBAS MatGetBlockSizes MatPythonSetType
MatAXPY MatGetColumnNorms MatRARt
MatAYPX MatGetDiagonal MatRARtNumeric
MatBlockMatSetPreallocation MatGetFactor MatRARtSymbolic
MatCUSPARSEFormatOperation MatGetFactorAvailable MatReorderForNonzeroDiagonal
MatCUSPARSESetFormat MatGetFactorType MatRestoreLocalSubMatrix
MatCUSPARSEStorageFormat MatGetInfo MatRestrict
MatCUSPFormatOperation MatGetLocalSubMatrix MatScale
MatCUSPSetFormat MatGetNonzeroState MatScatterGetVecScatter
MatCUSPStorageFormat MatGetOption MatSeqAIJFromMatlab
MatChop MatGetOwnershipIS MatSeqAIJGetArray
MatColoringWeightType MatGetRowMax MatSeqAIJGetMaxRowNonzeros
MatConvert MatGetRowMaxAbs MatSeqAIJRestoreArray
MatCopy MatGetRowMin MatSeqAIJSetPreallocation
MatCreateAIJ MatGetRowMinAbs MatSeqBAIJSetPreallocation
MatCreateAIJCUSP MatGetRowSum MatSeqDenseSetLDA
MatCreateAIJCUSPARSE MatGetSeqNonzeroStructure MatSeqDenseSetPreallocation
MatCreateAIJViennaCL MatGetType MatSeqSBAIJSetPreallocation
MatCreateBAIJ MatHermitianTranspose MatSetBlockSize
MatCreateBlockMat MatISSetPreallocation MatSetBlockSizes
MatCreateDense MatInfo MatSetLocalToGlobalMapping
MatCreateFFT MatInterpolate MatSetOption
MatCreateHermitianTranspose MatInterpolateAdd MatSetRandom
MatCreateLRC MatIsHermitian MatSetType
MatCreateMPIAIJCRL MatIsHermitianTranspose MatSetValuesBlocked
MatCreateMPIAIJPERM MatIsStructurallySymmetric MatSetValuesBlockedLocal
MatCreateMPIAIJWithArrays MatIsSymmetric MatSetValuesLocal
MatCreateMPIAdj MatIsTranspose MatSetValuesRowLocal
MatCreateMPIBAIJWithArrays MatMPIAIJSetPreallocation MatShift
MatCreateMPISBAIJWithArrays MatMPIAdjSetPreallocation MatSolvePackageGet
MatCreateNormal MatMPIBAIJSetPreallocation MatSolvePackageRegister
MatCreateNormalHermitian MatMPIDenseSetPreallocation MatStashSetInitialSize
MatCreateSBAIJ MatMPISBAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateScatter MatMatMatMult MatTransColoringApplySpToDen
MatCreateSeqAIJ MatMatMult MatTranspose
MatCreateSeqAIJCRL MatMatMultEqual MatTransposeColoringCreate
MatCreateSeqAIJCUSP MatMatMultNumeric MatTransposeColoringDestroy
MatCreateSeqAIJCUSPARSE MatMatMultSymbolic MatTransposeMatMult
MatCreateSeqAIJFromTriple MatMatTransposeMult MatTransposeMatMultEqual
MatCreateSeqAIJPERM MatMkl_CPardisoSetCntl MatZeroEntries
MatCreateSeqAIJViennaCL MatMultAddEqual MatZeroRows
MatCreateSeqAIJWithArrays MatMultEqual MatZeroRowsColumns
MatCreateSeqBAIJ MatMultTransposeAddEqual MatZeroRowsColumnsIS
MatCreateSeqCUFFT MatMultTransposeEqual MatZeroRowsColumnsLocal
MatCreateSeqDense MatNorm MatZeroRowsColumnsLocalIS
MatCreateSeqSBAIJ MatPreallocateFinalize MatZeroRowsColumnsStencil
MatCreateTranspose MatPreallocateInitialize MatZeroRowsIS
MatDenseGetArray MatPreallocateLocation MatZeroRowsLocal
MatDenseGetLocalMatrix MatPreallocateSet MatZeroRowsLocalIS
MatDenseRestoreArray MatPreallocateSetLocal MatZeroRowsStencil
MatDiagonalScale MatPreallocateSetLocalBlock VecScatterFFTWToPetsc
MatDiagonalSet MatPreallocateSymmetricSetBlock VecScatterPetscToFFTW
MatDuplicate MatPreallocateSymmetricSetLocalBlock
MatEqual MatPtAP
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetDiagonalBlock MatMissingDiagonal
MATCOMPOSITE MatGetGhosts MatNestGetISs
MATIS MatGetInertia MatNestGetLocalISs
MATMAIJ MatGetLayouts MatNestSetSubMats
MATMFFD MatGetLocalToGlobalMapping MatNullSpace
MATPREALLOCATOR MatGetMultiProcBlock MatNullSpaceCreate
MATSCATTER MatGetOptionsPrefix MatNullSpaceCreateRigidBody
MATSHELL MatGetRow MatNullSpaceDestroy
MatAppendOptionsPrefix MatGetRowUpperTriangular MatNullSpaceRemove
MatAssembled MatGetSubMatrices MatNullSpaceSetFunction
MatCompositeAddMat MatGetSubMatrix MatNullSpaceTest
MatCompositeMerge MatGetTrace MatNullSpaceView
MatCompositeSetType MatGetValues MatPermute
MatComputeExplicitOperator MatHasOperation MatPreallocatorPreallocate
MatConjugate MatISGetLocalMat MatRealPart
MatCreateComposite MatISSetLocalMat MatRegister
MatCreateIS MatImaginaryPart MatRegisterAll
MatCreateMAIJ MatInodeGetInodeSizes MatRegisterBaseName
MatCreateMFFD MatInvertBlockDiagonal MatRestoreRow
MatCreateMPIAIJSumSeqAIJ MatIsHermitianKnown MatRestoreRowUpperTriangular
MatCreateMPIAIJWithSplitArrays MatIsSymmetricKnown MatRetrieveValues
MatCreateMPIMatConcatenateSeqMat MatMAIJGetAIJ MatScatterSetVecScatter
MatCreateNest MatMAIJRedimension MatSeqAIJGetArrayF90
MatCreateRedundantMatrix MatMFFDCheckPositivity MatSeqAIJRestoreArrayF90
MatCreateSeqBAIJWithArrays MatMFFDDSSetUmin MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDGetH MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDResetHHistory MatSeqSBAIJSetColumnIndices
MatCreateVecs MatMFFDSetBase MatSetErrorIfFailure
MatCreateVecsFFTW MatMFFDSetCheckh MatSetNearNullSpace
MatDenseGetArrayF90 MatMFFDSetFunction MatSetNullSpace
MatDenseRestoreArrayF90 MatMFFDSetFunctionError MatSetOptionsPrefix
MatDestroyMatrices MatMFFDSetFunctioni MatSetTransposeNullSpace
MatDestroySeqNonzeroStructure MatMFFDSetFunctioniBase MatSetValuesBatch
MatFactorClearError 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
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