#include "petscmat.h" PetscErrorCode MatGetDiagonal(Mat mat,Vec v)Collective on Mat and Vec
mat | - the matrix | |
v | - the vector for storing the diagonal |
Notes: The result of this call are the same as if one converted the matrix to dense format and found the minimum value in each row (i.e. the implicit zeros are counted as zeros).
Level:intermediate
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages