MatDuplicate

Duplicates a matrix including the non-zero structure, but does not copy over the values.

Synopsis

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

Input Parameters

mat -the matrix

Output Parameter

M -pointer to place new matrix

Keywords

matrix, copy, convert, duplicate

See Also

MatCopy(), MatDuplicate(), MatConvert()

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