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.PetscMat — Type.PetscMat type. Currently a subtype of AbstractArray, although that may change.
PETSc2.MatAXPY — Method.MatAxPY
PETSc2.MatAYPX — Method.MatAYPX
PETSc2.MatAssemblyBegin — Method.MatAssemblyBegin
PETSc2.MatAssemblyBegin — Method.MatAssemblyBegin, impicitly using MAT_FINAL_ASSEMBLY
PETSc2.MatAssemblyEnd — Method.MatAssemblyEnd
PETSc2.MatAssemblyEnd — Method.MatAssemblyEnd, implicitly using MAT_FINAL_ASSEMBLY
PETSc2.MatCreateShell — Method.MatCreateShell
PETSc2.MatCreateTranspose — Method.MatCreateTranspose
PETSc2.MatGetInfo — Method.MatGetInfo
PETSc2.MatGetLocalSize — Method.MatGetLocalsize. Same interface as MatGetSize
PETSc2.MatGetOwnershipRange — Method.MatGetOwnershipRange
Inputs
mat: a PetscMat
Outputs
low: lowest (zero-based) index that is owned
high: highest + 1 (zero-based) index that is owned
PETSc2.MatGetSize — Method.MatGetSize
Inputs
obj: a PetscMat
Outputs
m: first dimension size
n: second dimension size
PETSc2.MatGetType — Method.MatGetType
PETSc2.MatGetValues — Method.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)
PETSc2.MatMPIAIJSetPreallocation — Method.MatMPIAIJSetPreallocation
PETSc2.MatMatMult — Method.MatMatMult
PETSc2.MatMult — Method.MatMult
PETSc2.MatMultAdd — Method.MatMultAdd
PETSc2.MatMultHermitianTranspose — Method.MatMultHermitianTranspose
PETSc2.MatMultTranspose — Method.MatMultTranspose
PETSc2.MatNorm — Method.MatNorm
PETSc2.MatScale — Method.MatScale
PETSc2.MatSetOption — Method.MatSetOption
PETSc2.MatSetSizes — Method.MatSetSizes
PETSc2.MatSetType — Method.MatSetType
PETSc2.MatSetValues — Method.MatSetValues. The idx and idy arrays must have PetscInt elements, and the vals array must have PetscScalar elements.
PETSc2.MatSetValuesBlocked — Method.MatSetValues blocked.
PETSc2.MatShellGetContext — Method.MatShellGetContext
PETSc2.MatShellSetOperation — Method.MatShellSetOperation
PETSc2.MatShift — Method.MatShift
PETSc2.MatTranspose — Method.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
PETSc2.MatXAIJSetPreallocation — Method.MatXAIJSetPreallocation
PETSc2.MatZeroEntries — Method.MatZeroEntries
PETSc2.PetscDestroy — Method.Frees a Petsc object. Safe to call multiple times
PETSc2.PetscView — Function.PetscViewer
PETSc2.SetFromOptions — Method.MatSetFromOptions
PETSc2.SetUp — Method.MatSetUp
PETSc2.MatInfo — Type.Equivalent to Petsc's MatInfo struct
Base.show — Method.show() for a MatInfo