#include "petscmat.h" PetscErrorCode MatDiagonalSet(Mat Y,Vec D,InsertMode is)

Y | - the input matrix | |

D | - the diagonal matrix, represented as a vector | |

i | - INSERT_VALUES or ADD_VALUES |

Neighbor-wise Collective on Mat

src/tao/pde_constrained/examples/tutorials/elliptic.c.html

MatDiagonalSet_SeqAIJ in src/mat/impls/aij/seq/aij.c

MatDiagonalSet_IS in src/mat/impls/is/matis.c

MatDiagonalSet_MFFD in src/mat/impls/mffd/mffd.c

MatDiagonalSet_Nest in src/mat/impls/nest/matnest.c

MatDiagonalSet_MPISELL in src/mat/impls/sell/mpi/mpisell.c

MatDiagonalSet_Shell_Private in src/mat/impls/shell/shell.c

MatDiagonalSet_Shell in src/mat/impls/shell/shell.c

Index of all Mat routines

Table of Contents for all manual pages

Index of all manual pages