1 //------------------------------------------------------------------------------
2 // GB_mx_Matrix_to_mxArray
3 //------------------------------------------------------------------------------
4
5 // SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
6 // SPDX-License-Identifier: Apache-2.0
7
8 //------------------------------------------------------------------------------
9
10 // Convert a GraphBLAS sparse matrix to a MATLAB struct containing a
11 // sparse matrix and a string. The GraphBLAS matrix is destroyed.
12
13 #include "GB_mex.h"
14
GB_mx_Matrix_to_mxArray(GrB_Matrix * handle,const char * name,const bool create_struct)15 mxArray *GB_mx_Matrix_to_mxArray // returns the MATLAB mxArray
16 (
17 GrB_Matrix *handle, // handle of GraphBLAS matrix to convert
18 const char *name,
19 const bool create_struct // if true, then return a struct
20 )
21 {
22 return (GB_mx_object_to_mxArray (handle, name, create_struct)) ;
23 }
24
25