petsc-master 2015-05-24
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
efault MatLoad MATSEQBAIJ
MATAIJCRL MatMFFDType MATSEQDENSE
MATAIJCUSPARSE MatMkl_CPardisoSetCntl MATSEQSBAIJ
MATAIJCUSP MATMPIADJ MatSetFromOptions
MATAIJ MATMPIAIJ MatSetSizes
MATAIJPERM MATMPIBAIJ MatSetStencil
MATAIJVIENNACL MATMPISBAIJ MatSetUp
MatAssemblyBegin MatMultAdd MatSetValue
MatAssemblyEnd MatMultConstrained MatSetValuesBlockedStencil
MatAssemblyType MatMultHermitianTransposeAdd MatSetValues
MATBAIJ MatMultHermitianTranspose MatSetValuesStencil
MatCoarsen MatMult MATSOLVERBAS
MatCoarsenType MatMultTransposeAdd MATSOLVERCHOLMOD
MatColoring MatMultTransposeConstrained MATSOLVERCLIQUE
MatColoringType MatMultTranspose MATSOLVERCUSPARSE
MatComputeBandwidth MatMumpsGetCntl MATSOLVERESSL
MatCreate MatMumpsGetIcntl MATSOLVERKLU
MATDENSE MatMumpsGetInfog MATSOLVERLUSOL
MatDestroy MatMumpsGetInfo MATSOLVERMATLAB
MatDuplicateOption MatMumpsGetRinfog MATSOLVERMUMPS
MatElementalHermitianGenDefEig MatMumpsGetRinfo MatSolverPackage
MATELEMENTAL MatMumpsSetCntl MATSOLVERPASTIX
MatFactorShiftType MatMumpsSetIcntl MATSOLVERSUPERLU_DIST
MatFactorType MatOption MATSOLVERSUPERLU
MatFDColoring MatOrderingType MATSOLVERUMFPACK
MatGetLocalSize MatPartitioning MatSORType
MatGetOwnershipRange MatPartitioningType MatStencil
MatGetOwnershipRangesColumn MatReuse MatStructure
MatGetOwnershipRanges MATSBAIJ MatSuperluSetILUDropTol
MatGetSize MATSEQAIJCUSPARSE MatTransposeColoring
MatGetSubMatrixOption MATSEQAIJCUSP MatType
Mat MATSEQAIJ MatView
MatInfoType MATSEQAIJVIENNACL MatXAIJSetPreallocation
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 MatGetOption MatScale
MatCreateAIJViennaCL MatGetOwnershipIS MatScatterGetVecScatter
MatCreateBAIJ MatGetRowMaxAbs MatSeqAIJFromMatlab
MatCreateBlockMat MatGetRowMax MatSeqAIJGetArray
MatCreateDense MatGetRowMinAbs MatSeqAIJGetMaxRowNonzeros
MatCreateFFT MatGetRowMin MatSeqAIJRestoreArray
MatCreateHermitianTranspose MatGetRowSum MatSeqAIJSetPreallocation
MatCreateLRC MatGetSeqNonzeroStructure MatSeqBAIJSetPreallocation
MatCreateMPIAdj MatGetType MatSeqDenseSetLDA
MatCreateMPIAIJCRL MatHermitianTranspose MatSeqDenseSetPreallocation
MatCreateMPIAIJPERM MatInfo MatSeqSBAIJSetPreallocation
MatCreateMPIAIJWithArrays MatInterpolateAdd MatSetBlockSize
MatCreateMPIBAIJWithArrays MatInterpolate MatSetBlockSizes
MatCreateMPISBAIJWithArrays MatIsHermitian MatSetLocalToGlobalMapping
MatCreateNormal MatIsHermitianTranspose MatSetOption
MatCreateSBAIJ MatIsStructurallySymmetric MatSetRandom
MatCreateScatter MatIsSymmetric MatSetType
MatCreateSeqAIJCRL MatIsTranspose MatSetValuesBlocked
MatCreateSeqAIJCUSPARSE MatMatMatMult MatSetValuesBlockedLocal
MatCreateSeqAIJCUSP MatMatMult MatSetValuesLocal
MatCreateSeqAIJFromTriple MatMatMultNumeric MatSetValuesRowLocal
MatCreateSeqAIJ MatMatMultSymbolic MatShift
MatCreateSeqAIJPERM MatMatTransposeMult MatSolvePackageGet
MatCreateSeqAIJViennaCL MATMFFD_DS MatSolvePackageRegister
MatCreateSeqAIJWithArrays MATMFFD_WP MatStashSetInitialSize
MatCreateSeqBAIJ MatMPIAdjSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqCUFFT MatMPIAIJSetPreallocation MatTransColoringApplySpToDen
MatCreateSeqDense MatMPIBAIJSetPreallocation MatTransposeColoringCreate
MatCreateSeqSBAIJ MatMPIDenseSetPreallocation MatTransposeColoringDestroy
MatCreateTranspose MatMPISBAIJSetPreallocation MatTranspose
MatCUSPARSEFormatOperation MatMultAddEqual MatTransposeMatMult
MatCUSPARSESetFormat MatMultEqual MatZeroEntries
MatCUSPARSEStorageFormat MatMultTransposeAddEqual MatZeroRowsColumns
MatCUSPFormatOperation MatMultTransposeEqual MatZeroRowsColumnsIS
MatCUSPSetFormat MATNEST MatZeroRowsColumnsLocal
MatCUSPStorageFormat MatNorm MatZeroRowsColumnsLocalIS
MatDenseGetArray MatPreallocateFinalize MatZeroRowsColumnsStencil
MatDenseGetLocalMatrix MatPreallocateInitialize MatZeroRows
MatDenseRestoreArray MatPreallocateLocation MatZeroRowsIS
MatDiagonalScale MatPreallocateSet MatZeroRowsLocal
MatDiagonalSet MatPreallocateSetLocalBlock MatZeroRowsLocalIS
MatDuplicate MatPreallocateSetLocal MatZeroRowsStencil
MatEqual MatPreallocateSymmetricSetBlock VecScatterFFTWToPetsc
MatFactorGetSolverPackage MatPreallocateSymmetricSetLocalBlock VecScatterPetscToFFTW
MatFindNonzeroRows MatPtAP
MatGetBlockSize MatPtAPNumeric
Advanced - Setting more advanced options and customization
MatAppendOptionsPrefix MatHasOperation MatNestGetLocalISs
MatAssembled MatImaginaryPart MatNestSetSubMats
MATBLOCKMAT MatInodeGetInodeSizes MatNullSpaceCreate
MatCompositeAddMat MatInvertBlockDiagonal MatNullSpaceCreateRigidBody
MATCOMPOSITE MatISGetLocalMat MatNullSpaceDestroy
MatCompositeMerge MatIsHermitianKnown MatNullSpace
MatCompositeSetType MATIS MatNullSpaceRemove
MatComputeExplicitOperator MatISSetLocalMat MatNullSpaceSetFunction
MatConjugate MatIsSymmetricKnown MatNullSpaceTest
MatCreateComposite MatMAIJGetAIJ MatNullSpaceView
MatCreateIS MATMAIJ MatPermute
MatCreateMAIJ MatMAIJRedimension MatRealPart
MatCreateMFFD MatMFFDAddNullSpace MatRegisterAll
MatCreateMPIAIJSumSeqAIJ MatMFFDCheckPositivity MatRegisterBaseName
MatCreateMPIAIJWithSplitArrays MatMFFDDSSetUmin MatRegister
MatCreateMPIMatConcatenateSeqMat MatMFFDGetH MatRestoreRow
MatCreateNest MATMFFD MatRestoreRowUpperTriangular
MatCreateRedundantMatrix MatMFFDResetHHistory MatRetrieveValues
MatCreateSeqBAIJWithArrays MatMFFDSetBase MATSCATTER
MatCreateSeqSBAIJWithArrays MatMFFDSetCheckh MatScatterSetVecScatter
MatCreateShell MatMFFDSetFunctionError MatSeqAIJGetArrayF90
MatCreateVecsFFTW MatMFFDSetFunction MatSeqAIJRestoreArrayF90
MatCreateVecs MatMFFDSetFunctioniBase MatSeqAIJSetColumnIndices
MatDenseGetArrayF90 MatMFFDSetFunctioni MatSeqBAIJSetColumnIndices
MatDenseRestoreArrayF90 MatMFFDSetHHistory MatSeqSBAIJSetColumnIndices
MatDestroyMatrices MatMFFDSetOptionsPrefix MatSetErrorIfFPE
MatDestroySeqNonzeroStructure MatMFFDSetPeriod MatSetNearNullSpace
MatGetColumnVector MatMFFDSetType MatSetNullSpace
MatGetDiagonalBlock MatMFFDWPSetComputeNormU MatSetOptionsPrefix
MatGetGhosts MatMissingDiagonal MatSetTransposeNullSpace
MatGetInertia MatMPIAIJSetValuesBatch MatSetValuesBatch
MatGetLayouts MatMPIBAIJSetHashTableFactor MatSetValuesRow
MatGetLocalToGlobalMapping MatMPIBAIJSetValuesBlocked MatShellGetContext
MatGetMultiProcBlock MatMumpsCreateSchurComplement MatShellGetOperation
MatGetOptionsPrefix MatMumpsGetSchurComplement MATSHELL
MatGetRow MatMumpsInvertSchurComplement MatShellSetContext
MatGetRowUpperTriangular MatMumpsRestoreSchurComplement MatShellSetOperation
MatGetSubMatrices MatMumpsSetSchurIndices MatStashGetInfo
MatGetSubMatrix MatMumpsSolveSchurComplement MatStoreValues
MatGetTrace MatMumpsSolveSchurComplementTranspose
MatGetValues MatNestGetISs
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 MatISGetMPIXAIJ MatRestoreColumnIJ
MatCreateLocalRef MatLUFactor MatRestoreRowIJ
MatCreateSubMatrix MatLUFactorNumeric MatSeqAIJSetPreallocationCSR
MatDiagonalScaleLocal MatLUFactorSymbolic MatSeqBAIJSetPreallocationCSR
MatFactorInfo MatMatSolve MatSeqSBAIJSetPreallocationCSR
MatFactorInfoInitialize MatMFFDFinalizePackage MatSetBlockSizesFromMats
MatFinalizePackage MatMFFD MatSetUnfactored
MatFindOffBlockDiagonalEntries MatMFFDInitializePackage MatSetValuesAdifor
MatFindZeroDiagonals MatMFFDRegisterAll MatSolveAdd
MatForwardSolve MatMFFDRegister MatSolve
MatGetBrowsOfAcols MatMPIAdjCreateNonemptySubcommMat MatSolves
MatGetColumnIJ MatMPIAIJGetLocalMatCondensed MatSolveTransposeAdd
MatGetCommunicationStructs MatMPIAIJGetLocalMat MatSolveTranspose
MatGetNearNullSpace MatMPIAIJSetPreallocationCSR MatSOR
MatGetNullSpace MatMPIBAIJSetPreallocationCSR MatSubMatrixUpdate
MatGetOwnershipRangeColumn MatMPISBAIJSetPreallocationCSR PetscElementalFinalizePackage
MatGetRowIJ MatMultDiagonalBlock PetscElementalInitializePackage
MatGetTransposeNullSpace MatNestGetSize
MatICCFactor MatNestGetSubMat
No deprecated routines

Table of Contents