int MatCopy(Mat A,Mat B,MatStructure str)Collective on Mat
A | - the matrix |
str | - SAME_NONZERO_PATTERN or DIFFERENT_NONZERO_PATTERN |
MatCopy() copies the matrix entries of a matrix to another existing matrix (after first zeroing the second matrix). A related routine is MatConvert(), which first creates a new matrix and then copies the data.
Level:intermediate
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents