petsc-3.5.1 2014-08-06
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
atrix MatMFFDType MATSEQSBAIJ
MATAIJCRL MATMPIADJ MatSetFromOptions
MATAIJCUSPARSE MATMPIAIJ MatSetSizes
MATAIJCUSP MATMPIBAIJ MatSetStencil
MATAIJ MATMPISBAIJ MatSetUp
MATAIJPERM MatMultAdd MatSetValue
MATAIJVIENNACL MatMultConstrained MatSetValuesBlockedStencil
MatAssemblyBegin MatMultHermitianTransposeAdd MatSetValues
MatAssemblyEnd MatMultHermitianTranspose MatSetValuesStencil
MatAssemblyType MatMult MATSOLVERBAS
MATBAIJ MatMultTransposeAdd MATSOLVERCHOLMOD
MatCoarsen MatMultTransposeConstrained MATSOLVERCLIQUE
MatCoarsenType MatMultTranspose MATSOLVERCUSPARSE
MatColoring MatMumpsGetCntl MATSOLVERESSL
MatColoringType MatMumpsGetIcntl MATSOLVERKLU
MatComputeBandwidth MatMumpsGetInfog MATSOLVERLUSOL
MatCreate MatMumpsGetInfo MATSOLVERMATLAB
MATDENSE MatMumpsGetRinfog MATSOLVERMUMPS
MatDestroy MatMumpsGetRinfo MatSolverPackage
MatDuplicateOption MatMumpsSetCntl MATSOLVERPASTIX
MATELEMENTAL MatMumpsSetIcntl MATSOLVERSUPERLU_DIST
MatFactorShiftType MatOption MATSOLVERSUPERLU
MatFactorType MatOrderingType MATSOLVERUMFPACK
MatFDColoring MatPartitioning MatSORType
MatGetLocalSize MatPartitioningType MatStencil
MatGetOwnershipRange MatReuse MatStructure
MatGetOwnershipRangesColumn MATSBAIJ MatSuperluSetILUDropTol
MatGetOwnershipRanges MATSEQAIJCUSPARSE MatTransposeColoring
MatGetSize MATSEQAIJCUSP MatType
MatGetSubMatrixOption MATSEQAIJ MatView
Mat MATSEQAIJVIENNACL MatXAIJSetPreallocation
MatInfoType MATSEQBAIJ
MatLoad MATSEQDENSE
Intermediate - Setting options for algorithms and data structures
MatAXPY MatGetBlockSize MatPtAP
MatAYPX MatGetBlockSizes MatPtAPNumeric
MatBlockMatSetPreallocation MatGetColumnNorms MatPtAPSymbolic
MatChop MatGetDiagonal MatPythonCreate
MatColoringWeightType MatGetFactorAvailable MatPythonSetType
MatConvert MatGetFactor MatRARt
MatCopy MatGetFactorType MatRARtNumeric
MatCreateAIJCUSPARSE MatGetInfo MatRARtSymbolic
MatCreateAIJCUSP MatGetLocalSubMatrix MatReorderForNonzeroDiagonal
MatCreateAIJ MatGetNonzeroState MatRestoreLocalSubMatrix
MatCreateAIJViennaCL MatGetOwnershipIS MatRestrict
MatCreateBAIJ MatGetRowMaxAbs MatScale
MatCreateBlockMat MatGetRowMax MatScatterGetVecScatter
MatCreateDense MatGetRowMinAbs MatSeqAIJFromMatlab
MatCreateFFT MatGetRowMin MatSeqAIJGetArray
MatCreateLRC MatGetRowSum MatSeqAIJGetMaxRowNonzeros
MatCreateMPIAdj MatGetSeqNonzeroStructure MatSeqAIJRestoreArray
MatCreateMPIAIJCRL MatGetType MatSeqAIJSetPreallocation
MatCreateMPIAIJPERM MatHermitianTranspose MatSeqBAIJSetPreallocation
MatCreateMPIAIJWithArrays MatInfo MatSeqDenseSetLDA
MatCreateMPIBAIJWithArrays MatInterpolateAdd MatSeqDenseSetPreallocation
MatCreateMPISBAIJWithArrays MatInterpolate MatSeqSBAIJSetPreallocation
MatCreateNormal MatIsHermitian MatSetBlockSize
MatCreateSBAIJ MatIsHermitianTranspose MatSetBlockSizes
MatCreateScatter MatIsStructurallySymmetric MatSetLocalToGlobalMapping
MatCreateSeqAIJCRL MatIsSymmetric MatSetOption
MatCreateSeqAIJCUSPARSE MatIsTranspose MatSetRandom
MatCreateSeqAIJCUSP MatMatMatMult MatSetType
MatCreateSeqAIJFromTriple MatMatMult MatSetValuesBlocked
MatCreateSeqAIJ MatMatMultNumeric MatSetValuesBlockedLocal
MatCreateSeqAIJPERM MatMatMultSymbolic MatSetValuesLocal
MatCreateSeqAIJViennaCL MatMatTransposeMult MatSetValuesRowLocal
MatCreateSeqAIJWithArrays MATMFFD_DS MatShift
MatCreateSeqBAIJ MATMFFD_WP MatStashSetInitialSize
MatCreateSeqCUFFT MatMPIAdjSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqDense MatMPIAIJSetPreallocation MatTransColoringApplySpToDen
MatCreateSeqSBAIJ MatMPIBAIJSetPreallocation MatTransposeColoringCreate
MatCreateTranspose MatMPIDenseSetPreallocation MatTransposeColoringDestroy
MatCUSPARSEFormatOperation MatMPISBAIJSetPreallocation MatTranspose
MatCUSPARSESetFormat MatMultAddEqual MatTransposeMatMult
MatCUSPARSEStorageFormat MatMultEqual MatZeroEntries
MatCUSPFormatOperation MatMultTransposeAddEqual MatZeroRowsColumns
MatCUSPSetFormat MatMultTransposeEqual MatZeroRowsColumnsIS
MatCUSPStorageFormat MATNEST MatZeroRowsColumnsLocal
MatDenseGetArray MatNorm MatZeroRowsColumnsLocalIS
MatDenseGetLocalMatrix MatPreallocateFinalize MatZeroRowsColumnsStencil
MatDenseRestoreArray MatPreallocateInitialize MatZeroRows
MatDiagonalScale MatPreallocateLocation MatZeroRowsIS
MatDiagonalSet MatPreallocateSet MatZeroRowsLocal
MatDuplicate MatPreallocateSetLocalBlock MatZeroRowsLocalIS
MatEqual MatPreallocateSetLocal MatZeroRowsStencil
MatFactorGetSolverPackage MatPreallocateSymmetricSetBlock VecScatterFFTWToPetsc
MatFindNonzeroRows MatPreallocateSymmetricSetLocalBlock VecScatterPetscToFFTW
Advanced - Setting more advanced options and customization
MatAppendOptionsPrefix MatGetValues MatNestSetSubMats
MatAssembled MatGetVecsFFTW MatNullSpaceCreate
MATBLOCKMAT MatGetVecs MatNullSpaceCreateRigidBody
MatCompositeAddMat MatHasOperation MatNullSpaceDestroy
MATCOMPOSITE MatImaginaryPart MatNullSpace
MatCompositeMerge MatInodeGetInodeSizes MatNullSpaceRemove
MatCompositeSetType MatInvertBlockDiagonal MatNullSpaceSetFunction
MatComputeExplicitOperator MatISGetLocalMat MatNullSpaceTest
MatConjugate MatIsHermitianKnown MatNullSpaceView
MatCreateComposite MATIS MatPermute
MatCreateIS MatISSetLocalMat MatRealPart
MatCreateMAIJ MatIsSymmetricKnown MatRegisterAll
MatCreateMFFD MatMAIJGetAIJ MatRegisterBaseName
MatCreateMPIAIJConcatenateSeqAIJ MATMAIJ MatRegister
MatCreateMPIAIJSumSeqAIJ MatMAIJRedimension MatRestoreRow
MatCreateMPIAIJWithSplitArrays MatMFFDAddNullSpace MatRestoreRowUpperTriangular
MatCreateNest MatMFFDCheckPositivity MatRetrieveValues
MatCreateSeqBAIJWithArrays MatMFFDDSSetUmin MATSCATTER
MatCreateSeqSBAIJWithArrays MatMFFDGetH MatScatterSetVecScatter
MatCreateShell MATMFFD MatSeqAIJGetArrayF90
MatDenseGetArrayF90 MatMFFDResetHHistory MatSeqAIJRestoreArrayF90
MatDenseRestoreArrayF90 MatMFFDSetBase MatSeqAIJSetColumnIndices
MatDestroyMatrices MatMFFDSetCheckh MatSeqBAIJSetColumnIndices
MatDestroySeqNonzeroStructure MatMFFDSetFunctionError MatSeqSBAIJSetColumnIndices
MatGetColumnVector MatMFFDSetFunction MatSetNearNullSpace
MatGetDiagonalBlock MatMFFDSetFunctioniBase MatSetNullSpace
MatGetGhosts MatMFFDSetFunctioni MatSetOptionsPrefix
MatGetInertia MatMFFDSetHHistory MatSetValuesBatch
MatGetLayouts 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
MatGetTrace MatNestGetLocalISs
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