petsc-master 2016-05-24
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 MATSOLVERUMFPACK MatMultTranspose
MATAIJCRL Mat MatMultTransposeAdd
MATAIJCUSP MatAssemblyBegin MatMultTransposeConstrained
MATAIJCUSPARSE MatAssemblyEnd MatMumpsGetCntl
MATAIJPERM MatAssemblyType MatMumpsGetIcntl
MATAIJVIENNACL MatCoarsen MatMumpsGetInfo
MATBAIJ MatCoarsenType MatMumpsGetInfog
MATDENSE MatColoring MatMumpsGetRinfo
MATELEMENTAL MatColoringType MatMumpsGetRinfog
MATMPIADJ MatComputeBandwidth MatMumpsSetCntl
MATMPIAIJ MatCreate MatMumpsSetIcntl
MATMPIBAIJ MatDestroy MatOption
MATMPISBAIJ MatDuplicateOption MatOrderingType
MATSBAIJ MatElementalHermitianGenDefEig MatPartitioning
MATSEQAIJ MatFDColoring MatPartitioningType
MATSEQAIJCUSP MatFactorError MatReuse
MATSEQAIJCUSPARSE MatFactorShiftType MatSORType
MATSEQAIJVIENNACL MatFactorType MatSetFromOptions
MATSEQBAIJ MatGetLocalSize MatSetSizes
MATSEQDENSE MatGetOwnershipRange MatSetStencil
MATSEQSBAIJ MatGetOwnershipRanges MatSetUp
MATSOLVERBAS MatGetOwnershipRangesColumn MatSetValue
MATSOLVERCHOLMOD MatGetSize MatSetValues
MATSOLVERCLIQUE MatGetSubMatrixOption MatSetValuesBlockedStencil
MATSOLVERCUSPARSE MatInfoType MatSetValuesStencil
MATSOLVERESSL MatLoad MatSolverPackage
MATSOLVERKLU MatMFFDType MatStencil
MATSOLVERLUSOL MatMkl_CPardisoSetCntl MatStructure
MATSOLVERMATLAB MatMkl_PardisoSetCntl MatSuperluSetILUDropTol
MATSOLVERMKL_PARDISO MatMult MatTransposeColoring
MATSOLVERMUMPS MatMultAdd MatType
MATSOLVERPASTIX MatMultConstrained MatView
MATSOLVERSUPERLU MatMultHermitianTranspose MatXAIJSetPreallocation
MATSOLVERSUPERLU_DIST MatMultHermitianTransposeAdd
Intermediate - Setting options for algorithms and data structures
MATMFFD_DS MatFactorGetSolverPackage MatPtAPNumeric
MATMFFD_WP MatFindNonzeroRows MatPtAPSymbolic
MATNEST 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
MatEqual MatPtAP
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