MatConvert
Converts a matrix to another matrix, either of the same or different type.
Synopsis
int MatConvert(Mat mat,MatType newtype,Mat *M)
Collective on
Mat
Input Parameters
mat | - the matrix
|
newtype | - new matrix type. Use MATSAME to create a new matrix of the
same type as the original matrix.
|
Output Parameter
M -pointer to place new matrix
Notes
MatConvert() first creates a new matrix and then copies the data
fromthe first matrix. A related routine is MatCopy(), which copies the
matrixentries of one matrix to another already existing matrix context.
Keywords
matrix, copy, convert
See Also
MatCopy(), MatDuplicate()
Location: src/mat/interface/matrix.c
Matrix Index
Table of Contents