1function C = uint16 (G)
2%UINT16 cast a GraphBLAS matrix to MATLAB full uint16 matrix.
3% C = uint16 (G) typecasts the GrB matrix G to a MATLAB full uint16
4% matrix.  The result C is full since MATLAB does not support sparse
5% uint16 matrices.
6%
7% To typecast the matrix G to a GraphBLAS sparse uint16 matrix instead,
8% use C = GrB (G, 'uint16').
9%
10% See also GrB, GrB/double, GrB/complex, GrB/single, GrB/logical, GrB/int8,
11% GrB/int16, GrB/int32, GrB/int64, GrB/uint8, GrB/uint32, GrB/uint64.
12
13% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
14% SPDX-License-Identifier: GPL-3.0-or-later
15
16G = G.opaque ;
17desc.kind = 'full' ;
18C = gbfull (G, 'uint16', uint16 (0), desc) ;    % export as a MATLAB full matrix
19
20