#include "petscdmadda.h" PetscErrorCode DMADDAMatSetValues(Mat mat, DM dmm, PetscInt m, const ADDAIdx idxm[],DM dmn, PetscInt n, const ADDAIdx idxn[],const PetscScalar v[], InsertMode addv)Not Collective
mat | - the matrix | |
addam | - the ADDA geometry information for the rows | |
m | - the number of rows | |
idxm | - the row indices, each of the a proper ADDAIdx + addan - the ADDA geometry information for the columns | |
n | - the number of columns | |
idxn | - the column indices, each of the a proper ADDAIdx | |
v | - a logically two-dimensional array of values of size m*n | |
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 ADDAMatSetValues() (and MatSetValues()) with the INSERT_VALUES and ADD_VALUES options cannot be mixed without intervening calls to the assembly routines.
Level:beginner
Location:src/dm/impls/adda/adda.c
Index of all DM routines
Table of Contents for all manual pages
Index of all manual pages