#include "petscmat.h" PetscErrorCode MatCopy(Mat A,Mat B,MatStructure str)Collective on Mat Many br
A | - the matrix Many br | |
str | - SAME_NONZERO_PATTERN or DIFFERENT_NONZERO_PATTERN Many br |
MatCopy() copies the matrix entries of a matrix to another existing Many brmatrix (after first zeroing the second matrix). A related routine is Many brMatConvert(), which first creates a new matrix and then copies the data. Many br
Many br
Level:intermediate
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages