MatDuplicate

Duplicates a matrix including the non-zero structure.

Synopsis

int MatDuplicate(Mat mat,MatDuplicateOption op,Mat *M)
Collective on Mat

Input Parameters

mat - the matrix
op - either MAT_DO_NO_COPY_VALUES or MAT_COPY_VALUES, cause it to copy nonzero values as well or not

Output Parameter

M -pointer to place new matrix

Keywords

matrix, copy, convert, duplicate

See Also

MatCopy(), MatConvert()

Level:intermediate
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents