GMatGetDiagonalMF

This function returns the diagonal of the matrix.

Synopsis

#include "gvec.h" 
int GMatGetDiagonalMF(GMat mat, GVec diag)

Input Parameter

mat -The grid matrix

Output Parameter

diag -A grid vector containing the diagonal elements

Notes

See comments in GMatGetDiagonalConstrained() about dealing with implicit constraints

Keywords

grid matrix, constraint

See Also

GMatGetDiagonalConstrained

Level:intermediate
Location:
src/gvec/interface/gmat.c
Index of all GVec routines
Table of Contents for all manual pages
Index of all manual pages