petsc-master 2014-12-18
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 MatGetBlockSizes MatPtAPSymbolic
MatAYPX MatGetColumnNorms MatPythonCreate
MatBlockMatSetPreallocation MatGetDiagonal MatPythonSetType
MatChop MatGetFactorAvailable MatRARt
MatColoringWeightType MatGetFactor MatRARtNumeric
MatConvert MatGetFactorType MatRARtSymbolic
MatCopy MatGetInfo MatReorderForNonzeroDiagonal
MatCreateAIJCUSPARSE MatGetLocalSubMatrix MatRestoreLocalSubMatrix
MatCreateAIJCUSP MatGetNonzeroState MatRestrict
MatCreateAIJ MatGetOwnershipIS MatScale
MatCreateAIJViennaCL MatGetRowMaxAbs MatScatterGetVecScatter
MatCreateBAIJ MatGetRowMax MatSeqAIJFromMatlab
MatCreateBlockMat MatGetRowMinAbs MatSeqAIJGetArray
MatCreateDense MatGetRowMin MatSeqAIJGetMaxRowNonzeros
MatCreateFFT MatGetRowSum MatSeqAIJRestoreArray
MatCreateLRC MatGetSeqNonzeroStructure MatSeqAIJSetPreallocation
MatCreateMPIAdj MatGetType MatSeqBAIJSetPreallocation
MatCreateMPIAIJCRL MatHermitianTranspose MatSeqDenseSetLDA
MatCreateMPIAIJPERM MatInfo MatSeqDenseSetPreallocation
MatCreateMPIAIJWithArrays MatInterpolateAdd MatSeqSBAIJSetPreallocation
MatCreateMPIBAIJWithArrays MatInterpolate MatSetBlockSize
MatCreateMPISBAIJWithArrays MatIsHermitian MatSetBlockSizes
MatCreateNormal MatIsHermitianTranspose MatSetLocalToGlobalMapping
MatCreateSBAIJ MatIsStructurallySymmetric MatSetOption
MatCreateScatter MatIsSymmetric MatSetRandom
MatCreateSeqAIJCRL MatIsTranspose MatSetType
MatCreateSeqAIJCUSPARSE MatMatMatMult MatSetValuesBlocked
MatCreateSeqAIJCUSP MatMatMult MatSetValuesBlockedLocal
MatCreateSeqAIJFromTriple MatMatMultNumeric MatSetValuesLocal
MatCreateSeqAIJ MatMatMultSymbolic MatSetValuesRowLocal
MatCreateSeqAIJPERM MatMatTransposeMult MatShift
MatCreateSeqAIJViennaCL MATMFFD_DS MatSolvePackageGet
MatCreateSeqAIJWithArrays MATMFFD_WP MatSolvePackageRegister
MatCreateSeqBAIJ MatMPIAdjSetPreallocation MatStashSetInitialSize
MatCreateSeqCUFFT MatMPIAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqDense MatMPIBAIJSetPreallocation MatTransColoringApplySpToDen
MatCreateSeqSBAIJ MatMPIDenseSetPreallocation MatTransposeColoringCreate
MatCreateTranspose MatMPISBAIJSetPreallocation MatTransposeColoringDestroy
MatCUSPARSEFormatOperation MatMultAddEqual MatTranspose
MatCUSPARSESetFormat MatMultEqual MatTransposeMatMult
MatCUSPARSEStorageFormat MatMultTransposeAddEqual MatZeroEntries
MatCUSPFormatOperation MatMultTransposeEqual MatZeroRowsColumns
MatCUSPSetFormat MATNEST MatZeroRowsColumnsIS
MatCUSPStorageFormat MatNorm MatZeroRowsColumnsLocal
MatDenseGetArray MatPreallocateFinalize MatZeroRowsColumnsLocalIS
MatDenseGetLocalMatrix MatPreallocateInitialize MatZeroRowsColumnsStencil
MatDenseRestoreArray MatPreallocateLocation MatZeroRows
MatDiagonalScale MatPreallocateSet MatZeroRowsIS
MatDiagonalSet MatPreallocateSetLocalBlock MatZeroRowsLocal
MatDuplicate MatPreallocateSetLocal MatZeroRowsLocalIS
MatEqual MatPreallocateSymmetricSetBlock MatZeroRowsStencil
MatFactorGetSolverPackage MatPreallocateSymmetricSetLocalBlock VecScatterFFTWToPetsc
MatFindNonzeroRows MatPtAP VecScatterPetscToFFTW
MatGetBlockSize MatPtAPNumeric
Advanced - Setting more advanced options and customization
MatAppendOptionsPrefix MatGetSubMatrix MatNestSetSubMats
MatAssembled MatGetTrace MatNullSpaceCreate
MATBLOCKMAT MatGetValues 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
MatCreateMPIAIJSumSeqAIJ MATMAIJ MatRegister
MatCreateMPIAIJWithSplitArrays MatMAIJRedimension MatRestoreRow
MatCreateMPIMatConcatenateSeqMat MatMFFDAddNullSpace MatRestoreRowUpperTriangular
MatCreateNest MatMFFDCheckPositivity MatRetrieveValues
MatCreateRedundantMatrix MatMFFDDSSetUmin MATSCATTER
MatCreateSeqBAIJWithArrays MatMFFDGetH MatScatterSetVecScatter
MatCreateSeqSBAIJWithArrays MATMFFD MatSeqAIJGetArrayF90
MatCreateShell MatMFFDResetHHistory MatSeqAIJRestoreArrayF90
MatCreateVecsFFTW MatMFFDSetBase MatSeqAIJSetColumnIndices
MatCreateVecs MatMFFDSetCheckh MatSeqBAIJSetColumnIndices
MatDenseGetArrayF90 MatMFFDSetFunctionError MatSeqSBAIJSetColumnIndices
MatDenseRestoreArrayF90 MatMFFDSetFunction MatSetNearNullSpace
MatDestroyMatrices MatMFFDSetFunctioniBase MatSetNullSpace
MatDestroySeqNonzeroStructure MatMFFDSetFunctioni MatSetOptionsPrefix
MatGetColumnVector MatMFFDSetHHistory MatSetValuesBatch
MatGetDiagonalBlock MatMFFDSetOptionsPrefix MatSetValuesRow
MatGetGhosts MatMFFDSetPeriod MatShellGetContext
MatGetInertia MatMFFDSetType MatShellGetOperation
MatGetLayouts MatMFFDWPSetComputeNormU MATSHELL
MatGetLocalToGlobalMapping MatMissingDiagonal MatShellSetContext
MatGetMultiProcBlock MatMPIAIJSetValuesBatch MatShellSetOperation
MatGetOptionsPrefix MatMPIBAIJSetHashTableFactor MatStashGetInfo
MatGetRow MatMPIBAIJSetValuesBlocked MatStoreValues
MatGetRowUpperTriangular MatNestGetISs
MatGetSubMatrices MatNestGetLocalISs
Developer - Interfaces intended primarily for library developers, not for typical applications programmers
MatBackwardSolve MatICCFactorSymbolic MatNestGetSubMat
MatCheckCompressedRow MatILUFactor MatNestGetSubMats
MatCholeskyFactor MatILUFactorSymbolic MatNestSetSubMat
MatCholeskyFactorNumeric MatIncreaseOverlap MatNestSetVecType
MatCholeskyFactorSymbolic MatInitializePackage MatNullSpaceGetVecs
MatColoringPatch MatISGetMPIXAIJ MatResidual
MatCreateLocalRef MatLUFactor MatRestoreColumnIJ
MatCreateSubMatrix MatLUFactorNumeric MatRestoreRowIJ
MatDiagonalScaleLocal MatLUFactorSymbolic MatSeqAIJSetPreallocationCSR
MatFactorInfo MatMatSolve MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDFinalizePackage MatSeqSBAIJSetPreallocationCSR
MatFinalizePackage MatMFFD MatSetBlockSizesFromMats
MatFindOffBlockDiagonalEntries MatMFFDInitializePackage MatSetUnfactored
MatFindZeroDiagonals MatMFFDRegisterAll MatSetValuesAdifor
MatForwardSolve MatMFFDRegister MatSolveAdd
MatGetBrowsOfAcols MatMPIAdjCreateNonemptySubcommMat MatSolve
MatGetColumnIJ MatMPIAIJGetLocalMatCondensed MatSolves
MatGetCommunicationStructs MatMPIAIJGetLocalMat MatSolveTransposeAdd
MatGetNearNullSpace MatMPIAIJSetPreallocationCSR MatSolveTranspose
MatGetNullSpace MatMPIBAIJSetPreallocationCSR MatSOR
MatGetOwnershipRangeColumn MatMPISBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetRowIJ MatMultDiagonalBlock PetscElementalFinalizePackage
MatICCFactor MatNestGetSize PetscElementalInitializePackage
No deprecated routines

Table of Contents