#include "petscmat.h" PetscErrorCode MatGetInertia(Mat mat,PetscInt *nneg,PetscInt *nzero,PetscInt *npos)Collective on Mat
mat | - the matrix |
nneg | - number of negative eigenvalues | |
nzero | - number of zero eigenvalues | |
npos | - number of positive eigenvalues |