int MatSetValue(Mat m,int row,int col,PetscScalar value,InsertMode mode);Not collective
m | - the matrix | |
row | - the row location of the entry | |
col | - the column location of the entry | |
value | - the value to insert | |
mode | - either INSERT_VALUES or ADD_VALUES |
Note that VecSetValue() does NOT return an error code (since this is checked internally).
Level:beginner
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages