MatCopy

Copys a matrix to another matrix.

Synopsis

int MatCopy(Mat A,Mat B)
Collective on Mat

Input Parameters

A -the matrix

Output Parameter

B -where the copy is put

Notes

MatCopy() copies the matrix entries of a matrix to another existingmatrix (after first zeroing the second matrix). A related routine isMatConvert(), which first creates a new matrix and then copies the data. .keywords: matrix, copy, convert

See Also

MatConvert()

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