petsc-master 2015-01-26
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 MATSEQDENSE
MATAIJCUSPARSE MatMkl_PardisoSetCntl 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 MATSOLVERMKL_PARDISO
MATELEMENTAL MatMumpsGetRinfo MATSOLVERMUMPS
MatFactorShiftType MatMumpsSetCntl MatSolverPackage
MatFactorType MatMumpsSetIcntl MATSOLVERPASTIX
MatFDColoring MatOption MATSOLVERSUPERLU_DIST
MatGetLocalSize MatOrderingType MATSOLVERSUPERLU
MatGetOwnershipRange MatPartitioning MATSOLVERUMFPACK
MatGetOwnershipRangesColumn MatPartitioningType MatSORType
MatGetOwnershipRanges MatReuse MatStencil
MatGetSize MATSBAIJ MatStructure
MatGetSubMatrixOption MATSEQAIJCUSPARSE MatSuperluSetILUDropTol
Mat MATSEQAIJCUSP MatTransposeColoring
MatInfoType MATSEQAIJ MatType
MatLoad MATSEQAIJVIENNACL MatView
MatMFFDType MATSEQBAIJ 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 MatGetOwnershipIS MatScale
MatCreateAIJViennaCL MatGetRowMaxAbs MatScatterGetVecScatter
MatCreateBAIJ MatGetRowMax MatSeqAIJFromMatlab
MatCreateBlockMat MatGetRowMinAbs MatSeqAIJGetArray
MatCreateDense MatGetRowMin MatSeqAIJGetMaxRowNonzeros
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 MatSetLocalToGlobalMapping
MatCreateSBAIJ MatIsStructurallySymmetric MatSetOption
MatCreateScatter MatIsSymmetric MatSetRandom
MatCreateSeqAIJCRL MatIsTranspose MatSetType
MatCreateSeqAIJCUSPARSE MatMatMatMult MatSetValuesBlocked
MatCreateSeqAIJCUSP MatMatMult MatSetValuesBlockedLocal
MatCreateSeqAIJFromTriple MatMatMultNumeric MatSetValuesLocal
MatCreateSeqAIJ MatMatMultSymbolic MatSetValuesRowLocal
MatCreateSeqAIJPERM MatMatTransposeMult MatShift
MatCreateSeqAIJViennaCL MATMFFD_DS MatSolvePackageGet
MatCreateSeqAIJWithArrays MATMFFD_WP MatSolvePackageRegister
MatCreateSeqBAIJ MatMPIAdjSetPreallocation MatStashSetInitialSize
MatCreateSeqCUFFT MatMPIAIJSetPreallocation MatTransColoringApplyDenToSp
MatCreateSeqDense MatMPIBAIJSetPreallocation MatTransColoringApplySpToDen
MatCreateSeqSBAIJ MatMPIDenseSetPreallocation MatTransposeColoringCreate
MatCreateTranspose MatMPISBAIJSetPreallocation MatTransposeColoringDestroy
MatCUSPARSEFormatOperation MatMultAddEqual MatTranspose
MatCUSPARSESetFormat MatMultEqual MatTransposeMatMult
MatCUSPARSEStorageFormat MatMultTransposeAddEqual MatZeroEntries
MatCUSPFormatOperation MatMultTransposeEqual MatZeroRowsColumns
MatCUSPSetFormat MATNEST MatZeroRowsColumnsIS
MatCUSPStorageFormat MatNorm MatZeroRowsColumnsLocal
MatDenseGetArray MatPreallocateFinalize MatZeroRowsColumnsLocalIS
MatDenseGetLocalMatrix MatPreallocateInitialize MatZeroRowsColumnsStencil
MatDenseRestoreArray MatPreallocateLocation MatZeroRows
MatDiagonalScale MatPreallocateSet MatZeroRowsIS
MatDiagonalSet MatPreallocateSetLocalBlock MatZeroRowsLocal
MatDuplicate MatPreallocateSetLocal MatZeroRowsLocalIS
MatEqual MatPreallocateSymmetricSetBlock MatZeroRowsStencil
MatFactorGetSolverPackage MatPreallocateSymmetricSetLocalBlock VecScatterFFTWToPetsc
MatFindNonzeroRows MatPtAP VecScatterPetscToFFTW
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