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

Table of Contents