petsc-3.4.2 2013-07-02

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 MatGetRedundantMatrix MatMPIBAIJSetValuesBlocked
MATCOMPOSITE MatGetRow MatMissingDiagonal
MATIS MatGetRowUpperTriangular MatNestGetISs
MATMAIJ MatGetSubMatrices MatNestGetLocalISs
MATMFFD MatGetSubMatrix MatNestSetSubMats
MATSCATTER MatGetTrace MatNullSpace
MATSHELL MatGetValues MatNullSpaceCreate
MatAppendOptionsPrefix MatGetVecs MatNullSpaceCreateRigidBody
MatAssembled MatGetVecsFFTW MatNullSpaceDestroy
MatCompositeAddMat MatHasOperation MatNullSpaceRemove
MatCompositeMerge MatISGetLocalMat MatNullSpaceSetFunction
MatCompositeSetType MatISSetLocalMat MatNullSpaceTest
MatComputeExplicitOperator MatImaginaryPart MatNullSpaceView
MatConjugate MatInodeGetInodeSizes MatPermute
MatCreateComposite MatInvertBlockDiagonal MatRealPart
MatCreateIS MatIsHermitianKnown MatRegister
MatCreateMAIJ MatIsSymmetricKnown MatRegisterAll
MatCreateMFFD MatMAIJGetAIJ MatRegisterBaseName
MatCreateMPIAIJConcatenateSeqAIJ MatMAIJRedimension MatRestoreRow
MatCreateMPIAIJSumSeqAIJ MatMFFDAddNullSpace MatRestoreRowUpperTriangular
MatCreateMPIAIJWithSplitArrays MatMFFDCheckPositivity MatRetrieveValues
MatCreateNest MatMFFDDSSetUmin MatScatterSetVecScatter
MatCreateSeqBAIJWithArrays MatMFFDGetH MatSeqAIJSetColumnIndices
MatCreateSeqSBAIJWithArrays MatMFFDResetHHistory MatSeqBAIJSetColumnIndices
MatCreateShell MatMFFDSetBase MatSeqSBAIJSetColumnIndices
MatDenseGetArrayF90 MatMFFDSetCheckh MatSetNearNullSpace
MatDenseRestoreArrayF90 MatMFFDSetFunction MatSetNullSpace
MatDestroyMatrices MatMFFDSetFunctionError MatSetOptionsPrefix
MatDestroySeqNonzeroStructure MatMFFDSetFunctioni MatSetValuesBatch
MatGetColumnVector MatMFFDSetFunctioniBase MatSetValuesRow
MatGetDiagonalBlock MatMFFDSetHHistory MatShellGetContext
MatGetGhosts MatMFFDSetOptionsPrefix MatShellGetOperation
MatGetInertia MatMFFDSetPeriod MatShellSetContext
MatGetLocalToGlobalMapping MatMFFDSetType MatShellSetOperation
MatGetLocalToGlobalMappingBlock MatMFFDWPSetComputeNormU MatStashGetInfo
MatGetMultiProcBlock MatMPIAIJSetValuesBatch MatStoreValues
MatGetOptionsPrefix MatMPIBAIJSetHashTableFactor
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