TaoMatGetPetscMat

Sets the address of a Mat equal to the location of the underlying Mat structure in this TaoMatPetsc object.

Synopsis

int TaoMatGetPetscMat( TaoMat* MM, Mat *M)
MM - the TaoMatPetsc
M - the address of Mat

Output Parameter

M -the address of a specific Mat

Note

This routine does not create a Mat. It sets a pointer to the location of an existing Mat.

Note

The underlying PETSc Mat may also be obtained by Mat M = (Mat) TMM->MatObject;

Note

The function TaoMatPetsc::GetMatrix() will also return the Mat M, but this routine is safer because it will check the object validity.

See Also

TaoVecGetPetscVec()

Level:advanced
Location:src/petsctao/matrix/taomat_petsc.c
TAO Solver Index
Table of Contents