#include "petscmat.h" PetscErrorCode MatRestoreRow(Mat mat,PetscInt row,PetscInt *ncols,const PetscInt *cols[],const PetscScalar *vals[])Not Collective
mat | - the matrix | |
row | - the row to get | |
ncols, cols | - the number of nonzeros and their columns | |
vals | - if nonzero the column values |
This routine zeros out ncols, cols, and vals. This is to prevent accidental us of the array after it has been restored. If you pass NULL, it will not zero the pointers. Use of cols or vals after MatRestoreRow is invalid.
MatRestoreRow(matrix,row,ncols,cols,values,ierr) Mat matrix (input) integer row (input) integer ncols (output) integer cols(maxcols) (output) double precision (or double complex) values(maxcols) outputWhere maxcols >= maximum nonzeros in any row of the matrix.
In Fortran MatRestoreRow() MUST be called after MatGetRow() before another call to MatGetRow() can be made.
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