1 //------------------------------------------------------------------------------
2 // GB_mx_Vector_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 vector to a MATLAB struct containing a
11 // sparse vector and a string. The GraphBLAS vector is destroyed.
12
13 #include "GB_mex.h"
14
GB_mx_Vector_to_mxArray(GrB_Vector * handle,const char * name,const bool create_struct)15 mxArray *GB_mx_Vector_to_mxArray // returns the MATLAB mxArray
16 (
17 GrB_Vector *handle, // handle of GraphBLAS matrix to convert
18 const char *name, // name for error reporting
19 const bool create_struct // if true, then return a struct
20 )
21 {
22 return (GB_mx_object_to_mxArray ((GrB_Matrix *)
23 handle, name, create_struct)) ;
24 }
25
26