petsc-3.4.4 2014-03-13

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 MATSOLVERSUPERLU_DIST MatMultTranspose
MATAIJCRL MATSOLVERUMFPACK MatMultTransposeAdd
MATAIJCUSP Mat MatMultTransposeConstrained
MATAIJCUSPARSE MatAssemblyBegin MatMumpsSetCntl
MATAIJPERM MatAssemblyEnd MatMumpsSetIcntl
MATBAIJ MatAssemblyType MatOption
MATDENSE MatCoarsen MatOrderingType
MATELEMENTAL MatCoarsenType MatPartitioning
MATMPIADJ MatColoringType MatPartitioningType
MATMPIAIJ MatCreate MatReuse
MATMPIBAIJ MatDestroy MatSORType
MATMPISBAIJ MatDuplicateOption MatSetFromOptions
MATSBAIJ MatFDColoring MatSetSizes
MATSEQAIJ MatFactorShiftType MatSetStencil
MATSEQAIJCUSP MatFactorType MatSetUp
MATSEQAIJCUSPARSE MatGetLocalSize MatSetValue
MATSEQBAIJ MatGetOwnershipRange MatSetValues
MATSEQDENSE MatGetOwnershipRanges MatSetValuesBlockedStencil
MATSEQSBAIJ MatGetOwnershipRangesColumn MatSetValuesStencil
MATSOLVERBAS MatGetSize MatSolverPackage
MATSOLVERCHOLMOD MatGetSubMatrixOption MatStencil
MATSOLVERCLIQUE MatInfoType MatStructure
MATSOLVERCUSPARSE MatLoad MatSuperluSetILUDropTol
MATSOLVERESSL MatMFFDType MatTransposeColoring
MATSOLVERLUSOL MatMult MatType
MATSOLVERMATLAB MatMultAdd MatView
MATSOLVERMUMPS MatMultConstrained MatXAIJSetPreallocation
MATSOLVERPASTIX MatMultHermitianTranspose
MATSOLVERSUPERLU MatMultHermitianTransposeAdd
Intermediate - Setting options for algorithms and data structures
MATMFFD_DS MatFindNonzeroRows MatPythonCreate
MATMFFD_WP MatGetBlockSize MatPythonSetType
MATNEST MatGetBlockSizes MatRARt
MatAXPY MatGetColumnNorms MatRARtNumeric
MatAYPX MatGetDiagonal MatRARtSymbolic
MatBlockMatSetPreallocation MatGetFactor MatReorderForNonzeroDiagonal
MatCUSPARSEFormatOperation MatGetFactorAvailable MatRestoreLocalSubMatrix
MatCUSPARSESetFormat MatGetFactorType MatRestrict
MatCUSPARSEStorageFormat MatGetInfo MatScale
MatCUSPFormatOperation MatGetLocalSubMatrix MatScatterGetVecScatter
MatCUSPSetFormat MatGetOwnershipIS MatSeqAIJFromMatlab
MatCUSPStorageFormat MatGetRowMax MatSeqAIJGetArray
MatChop MatGetRowMaxAbs MatSeqAIJRestoreArray
MatConvert MatGetRowMin MatSeqAIJSetPreallocation
MatCopy MatGetRowMinAbs MatSeqBAIJSetPreallocation
MatCreateAIJ MatGetRowSum MatSeqDenseSetLDA
MatCreateAIJCUSP MatGetSeqNonzeroStructure MatSeqDenseSetPreallocation
MatCreateAIJCUSPARSE MatGetType MatSeqSBAIJSetPreallocation
MatCreateBAIJ MatHermitianTranspose MatSetBlockSize
MatCreateBlockMat MatInfo MatSetBlockSizes
MatCreateDense MatInterpolate MatSetLocalToGlobalMapping
MatCreateFFT MatInterpolateAdd MatSetLocalToGlobalMappingBlock
MatCreateLRC MatIsHermitian MatSetOption
MatCreateMPIAIJCRL MatIsHermitianTranspose MatSetRandom
MatCreateMPIAIJPERM MatIsStructurallySymmetric MatSetType
MatCreateMPIAIJWithArrays MatIsSymmetric MatSetValuesBlocked
MatCreateMPIAdj MatIsTranspose MatSetValuesBlockedLocal
MatCreateMPIBAIJWithArrays MatMPIAIJSetPreallocation MatSetValuesLocal
MatCreateMPISBAIJWithArrays MatMPIAdjSetPreallocation MatSetValuesRowLocal
MatCreateNormal MatMPIBAIJSetPreallocation MatShift
MatCreateSBAIJ MatMPIDenseSetPreallocation MatStashSetInitialSize
MatCreateScatter MatMPISBAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqAIJ MatMatMatMult MatTransColoringApplySpToDen
MatCreateSeqAIJCRL MatMatMult MatTranspose
MatCreateSeqAIJCUSP MatMatMultNumeric MatTransposeColoringCreate
MatCreateSeqAIJCUSPARSE MatMatMultSymbolic MatTransposeColoringDestroy
MatCreateSeqAIJFromTriple MatMatTransposeMult MatTransposeMatMult
MatCreateSeqAIJPERM 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 MatPreallocateSymmetricSet MatZeroRowsStencil
MatDiagonalSet MatPreallocateSymmetricSetLocal VecScatterFFTWToPetsc
MatDuplicate MatPtAP VecScatterPetscToFFTW
MatEqual MatPtAPNumeric
MatFactorGetSolverPackage MatPtAPSymbolic
Advanced - Setting more advanced options and customization
MATBLOCKMAT MatGetRow MatNestGetISs
MATCOMPOSITE MatGetRowUpperTriangular MatNestGetLocalISs
MATIS MatGetSubMatrices MatNestSetSubMats
MATMAIJ MatGetSubMatrix MatNullSpace
MATMFFD MatGetTrace MatNullSpaceCreate
MATSCATTER MatGetValues MatNullSpaceCreateRigidBody
MATSHELL MatGetVecs MatNullSpaceDestroy
MatAppendOptionsPrefix MatGetVecsFFTW MatNullSpaceRemove
MatAssembled MatHasOperation MatNullSpaceSetFunction
MatCompositeAddMat MatISGetLocalMat MatNullSpaceTest
MatCompositeMerge MatISSetLocalMat MatNullSpaceView
MatCompositeSetType MatImaginaryPart MatPermute
MatComputeExplicitOperator MatInodeGetInodeSizes MatRealPart
MatConjugate MatInvertBlockDiagonal MatRegister
MatCreateComposite MatIsHermitianKnown MatRegisterAll
MatCreateIS MatIsSymmetricKnown MatRegisterBaseName
MatCreateMAIJ MatMAIJGetAIJ MatRestoreRow
MatCreateMFFD MatMAIJRedimension MatRestoreRowUpperTriangular
MatCreateMPIAIJConcatenateSeqAIJ MatMFFDAddNullSpace MatRetrieveValues
MatCreateMPIAIJSumSeqAIJ MatMFFDCheckPositivity MatScatterSetVecScatter
MatCreateMPIAIJWithSplitArrays MatMFFDDSSetUmin MatSeqAIJGetArrayF90
MatCreateNest MatMFFDGetH MatSeqAIJRestoreArrayF90
MatCreateSeqBAIJWithArrays MatMFFDResetHHistory MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDSetBase MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDSetCheckh MatSeqSBAIJSetColumnIndices
MatDenseGetArrayF90 MatMFFDSetFunction MatSetNearNullSpace
MatDenseRestoreArrayF90 MatMFFDSetFunctionError MatSetNullSpace
MatDestroyMatrices MatMFFDSetFunctioni MatSetOptionsPrefix
MatDestroySeqNonzeroStructure MatMFFDSetFunctioniBase MatSetValuesBatch
MatGetColumnVector MatMFFDSetHHistory MatSetValuesRow
MatGetDiagonalBlock MatMFFDSetOptionsPrefix MatShellGetContext
MatGetGhosts MatMFFDSetPeriod MatShellGetOperation
MatGetInertia MatMFFDSetType MatShellSetContext
MatGetLocalToGlobalMapping MatMFFDWPSetComputeNormU MatShellSetOperation
MatGetLocalToGlobalMappingBlock MatMPIAIJSetValuesBatch MatStashGetInfo
MatGetMultiProcBlock MatMPIBAIJSetHashTableFactor MatStoreValues
MatGetOptionsPrefix MatMPIBAIJSetValuesBlocked
MatGetRedundantMatrix MatMissingDiagonal
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 MatLUFactor MatRestoreColumnIJ
MatCreateLocalRef MatLUFactorNumeric MatRestoreRowIJ
MatCreateSubMatrix MatLUFactorSymbolic MatSOR
MatDiagonalScaleLocal MatMFFD MatSeqAIJSetPreallocationCSR
MatFactorInfo MatMFFDFinalizePackage MatSeqBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDInitializePackage MatSetUnfactored
MatFinalizePackage MatMFFDRegister MatSetValuesAdifor
MatFindZeroDiagonals MatMFFDRegisterAll MatSolve
MatForwardSolve MatMPIAIJGetLocalMat MatSolveAdd
MatGetBrowsOfAcols MatMPIAIJGetLocalMatCondensed MatSolveTranspose
MatGetColumnIJ MatMPIAIJSetPreallocationCSR MatSolveTransposeAdd
MatGetCommunicationStructs MatMPIAdjCreateNonemptySubcommMat MatSolves
MatGetNearNullSpace MatMPIBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetNullSpace MatMPISBAIJSetPreallocationCSR PetscElementalFinalizePackage
MatGetOwnershipRangeColumn MatMatSolve PetscElementalInitializePackage
MatGetRowIJ MatMultDiagonalBlock
MatICCFactor MatNestGetSize
No deprecated routines

Table of Contents