Mat Documentation

Mat Documentation

This page wraps functions in PETSc's Mat API. Consult the PETSc documentation for the behavior of the functions. The documentation on this page only describes differences between the Julia wrappers and the PETSc documentation.

PETSc2.PetscMatType.

PetscMat type. Currently a subtype of AbstractArray, although that may change.

source
PETSc2.MatAXPYMethod.

MatAxPY

source
PETSc2.MatAYPXMethod.

MatAYPX

source

MatAssemblyBegin

source

MatAssemblyBegin, impicitly using MAT_FINAL_ASSEMBLY

source

MatAssemblyEnd

source

MatAssemblyEnd, implicitly using MAT_FINAL_ASSEMBLY

source

MatCreateShell

source

MatCreateTranspose

source
PETSc2.MatGetInfoMethod.

MatGetInfo

source

MatGetLocalsize. Same interface as MatGetSize

source

MatGetOwnershipRange

Inputs

  • mat: a PetscMat

Outputs

  • low: lowest (zero-based) index that is owned

  • high: highest + 1 (zero-based) index that is owned

source
PETSc2.MatGetSizeMethod.

MatGetSize

Inputs

  • obj: a PetscMat

Outputs

  • m: first dimension size

  • n: second dimension size

source
PETSc2.MatGetTypeMethod.

MatGetType

source

MatGetValues

Inputs

  • obj: the PetscMat

  • idxm: row indices

  • idxn: column indices

  • vals: logically 2 dimensional array of values (although it could be a vector too)

source

MatMPIAIJSetPreallocation

source
PETSc2.MatMatMultMethod.

MatMatMult

source
PETSc2.MatMultMethod.

MatMult

source
PETSc2.MatMultAddMethod.

MatMultAdd

source

MatMultHermitianTranspose

source

MatMultTranspose

source
PETSc2.MatNormMethod.

MatNorm

source
PETSc2.MatScaleMethod.

MatScale

source

MatSetOption

source
PETSc2.MatSetSizesMethod.

MatSetSizes

source
PETSc2.MatSetTypeMethod.

MatSetType

source

MatSetValues. The idx and idy arrays must have PetscInt elements, and the vals array must have PetscScalar elements.

source

MatSetValues blocked.

source

MatShellGetContext

source

MatShellSetOperation

source
PETSc2.MatShiftMethod.

MatShift

source

Constructs the transpose of a given matrix. Can be in place or out of place.

Inputs

  • A: matrix to take the transpose of

Keywords

  • inplace: whether or not to do the transpose in place

Outputs

  • A PetscMat object, either the original object A if the transpose was done in place, or a new matrix object if the transpose was done out of place

source

MatXAIJSetPreallocation

source

MatZeroEntries

source

Frees a Petsc object. Safe to call multiple times

source
PETSc2.PetscViewFunction.

PetscViewer

source

MatSetFromOptions

source
PETSc2.SetUpMethod.

MatSetUp

source
PETSc2.MatInfoType.

Equivalent to Petsc's MatInfo struct

source
Base.showMethod.

show() for a MatInfo

source