#include "petscmat.h" int MatGetValues(Mat mat,int m,int *idxm,int n,int *idxn,PetscScalar *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 in Fortran as well as in C.
MatGetValues() requires that the matrix has been assembled with MatAssemblyBegin()/MatAssemblyEnd(). Thus, calls to MatSetValues() and MatGetValues() CANNOT be made in succession without intermediate matrix assembly.
Level:advanced
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages