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 calledon a LU factored matrix; in that case it routines the reciprocal ofthe diagonal entries in U. It returns the entries permuted by therow and column permutation used during the symbolic factorization.

Keywords

matrix, get, diagonal

Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents