#include "petscmat.h" PetscErrorCode MatConvert(Mat mat, MatType newtype,MatReuse reuse,Mat *M)Collective on Mat
mat | - the matrix | |
newtype | - new matrix type. Use MATSAME to create a new matrix of the same type as the original matrix. | |
reuse | - denotes if the destination matrix is to be created or reused. Currently MAT_REUSE_MATRIX is only supported for inplace conversion, otherwise use MAT_INITIAL_MATRIX. Output Parameter: |
Mat MatConvert(Mat A,MatType t) | -> | MatConvert(A,t,MAT_INITIAL_MATRIX,&a); return a; |
Level:intermediate
Location:src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages