#include "petscmat.h" PetscErrorCode MatDiagonalSet(Mat Y,Vec D,InsertMode is)
Y | - the input matrix Many br | |
D | - the diagonal matrix, represented as a vector Many br | |
i | - INSERT_VALUES or ADD_VALUES Many br |
Neighbor-wise Collective on Mat and Vec Many br
Notes: If the matrix Y is missing some diagonal entries this routine can be very slow. To make it fast one should initially Many brfill the matrix so that all diagonal entries have a value (with a value of zero for those locations that would not have an Many brentry). Many br
Many br
Level:intermediate
Location:src/mat/utils/axpy.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages