petsc-master 2015-04-19
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
MATAIJCRL MatMkl_CPardisoSetCntl MATSEQSBAIJ
MATAIJCUSPARSE MatMkl_PardisoSetCntl MatSetFromOptions
MATAIJCUSP MATMPIADJ MatSetSizes
MATAIJ MATMPIAIJ MatSetStencil
MATAIJPERM MATMPIBAIJ MatSetUp
MATAIJVIENNACL MATMPISBAIJ MatSetValue
MatAssemblyBegin MatMultAdd MatSetValuesBlockedStencil
MatAssemblyEnd MatMultConstrained MatSetValues
MatAssemblyType MatMultHermitianTransposeAdd MatSetValuesStencil
MATBAIJ MatMultHermitianTranspose MATSOLVERBAS
MatCoarsen MatMult MATSOLVERCHOLMOD
MatCoarsenType MatMultTransposeAdd MATSOLVERCLIQUE
MatColoring MatMultTransposeConstrained MATSOLVERCUSPARSE
MatColoringType MatMultTranspose MATSOLVERESSL
MatComputeBandwidth MatMumpsGetCntl MATSOLVERKLU
MatCreate MatMumpsGetIcntl MATSOLVERLUSOL
MATDENSE MatMumpsGetInfog MATSOLVERMATLAB
MatDestroy MatMumpsGetInfo MATSOLVERMKL_PARDISO
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
MatLoad MATSEQBAIJ
MatMFFDType 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 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 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