MatGetDiagonal
Gets the diagonal of a matrix.
Synopsis
int MatGetDiagonal(Mat mat,Vec v)
Collective on Mat and Vec
Input Parameters
mat | - the matrix
|
v | - the vector for storing the diagonal
|
Output Parameter
v -the diagonal of the matrix
Notes
For the SeqAIJ matrix format, this routine may also be called
on a LU factored matrix; in that case it routines the reciprocal of
the diagonal entries in U. It returns the entries permuted by the
row and column permutation used during the symbolic factorization.
Keywords
matrix, get, diagonal
See Also
MatGetRow(), MatGetSubmatrices(), MatGetSubmatrix()
Level:intermediate
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents