1function builtin_complex = GB_builtin_complex_set (builtin_complex)
2%GB_BUILTIN_COMPLEX_SET set a global flag to determine the GrB Complex type
3%
4% builtin_complex = GB_builtin_complex_set (builtin_complex)
5%
6% Sets the GraphBLAS_builtin_complex flag.  If true, then the Complex and
7% GxB_FC64 types are identical.  If false, the Complex GrB_Type is allocated as
8% a user-defined type.
9%
10% See also GB_builtin_complex_get.
11
12% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
13% SPDX-License-Identifier: Apache-2.0
14
15global GraphBLAS_builtin_complex
16if (nargin > 0)
17    GraphBLAS_builtin_complex = logical (builtin_complex) ;
18elseif (isempty (GraphBLAS_builtin_complex))
19    GraphBLAS_builtin_complex = true ;
20end
21
22builtin_complex = GraphBLAS_builtin_complex ;
23
24