int MatGetValues(Mat mat,int m,int *idxm,int n,int *idxn,Scalar *v)Not Collective; currently only returns a local block
mat | - the matrix |
v | - a logically two-dimensional array for storing the values |
m, idxm | - the number of rows and their global indices |
n, idxn | - the number of columns and their global indices |
MatGetValues() uses 0-based row and column numbers inFortran as well as in C.
MatGetValues() requires that the matrix has been assembledwith MatAssemblyBegin()/MatAssemblyEnd(). Thus, calls toMatSetValues() and MatGetValues() CANNOT be made in successionwithout intermediate matrix assembly.
Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents