#include "petscmat.h" PetscErrorCode MatDuplicate(Mat mat,MatDuplicateOption op,Mat *M)Collective on Mat
mat | - the matrix | |
op | - either MAT_DO_NOT_COPY_VALUES or MAT_COPY_VALUES, cause it to copy the numerical values in the matrix MAT_SHARE_NONZERO_PATTERN to share the nonzero patterns with the previous matrix and not copy them. |
Notes: You cannot change the nonzero pattern for the parent or child matrix if you use MAT_SHARE_NONZERO_PATTERN.
Mat MatDuplicate(Mat A) | -> | MatDuplicate(A,MAT_COPY_VALUES,&a); return a; | |||
Mat MatDuplicate(Mat A,MatDuplicateOption o) | -> | MatDuplicate(A,o,&a); return a; |
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