#include "petscmat.h" PetscErrorCode MatDuplicate(Mat mat,MatDuplicateOption op,Mat *M)Collective on Mat
mat | - the matrix | |
op | - One of MAT_DO_NOT_COPY_VALUES, MAT_COPY_VALUES, or MAT_SHARE_NONZERO_PATTERN. See the manual page for MatDuplicateOption for an explanation of these options. |