MatDensePlaceArrayWithMemType#
Temporarily uses a caller-owned array as the storage of a dense matrix.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatDensePlaceArrayWithMemType(Mat mat, PetscMemType mtype, const PetscScalar array[])
Not Collective
Input Parameters#
mat - the dense matrix
mtype - the memory type of the array
array - the array in column-major order with the leading dimension of
mat
Note#
The caller owns the array and must keep it valid until calling MatDenseResetArrayWithMemType() with the same mtype.
Matrix operations can modify the contents of the array.
See Also#
Matrices, Mat, PetscMemType, MatDensePlaceArray(), MatDenseResetArrayWithMemType(), MatDenseReplaceArrayWithMemType()
Level#
developer
Location#
Examples#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages