int MatSetValues(Mat mat,int m,int *idxm,int n,int *idxn,Scalar *v,InsertMode addv)Not Collective
mat | - the matrix |
v | - a logically two-dimensional array of values |
m, idxm | - the number of rows and their global indices |
n, idxn | - the number of columns and their global indices |
addv | - either ADD_VALUES or INSERT_VALUES, where ADD_VALUES adds values to any existing entries, and INSERT_VALUES replaces existing entries with new values |
Calls to MatSetValues() with the INSERT_VALUES and ADD_VALUESoptions cannot be mixed without intervening calls to the assemblyroutines.
MatSetValues() uses 0-based row and column numbers in Fortranas well as in C.
Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents