1function test101
2%TEST101 test import/export
3
4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
5% SPDX-License-Identifier: Apache-2.0
6
7rng ('default') ;
8
9fprintf ('\ntest101: GB_mex_export\n') ;
10
11dump = 0 ;
12
13for clear_nvec = 0:1
14    for n = 1:5
15        for m = 1:5
16            A = sprand (m, n, 0.1) ;
17            for f = 0:3
18                for hyper = 0:1
19                    for csc = 0:1
20                        C = GB_mex_export (A, f, hyper, csc, dump, clear_nvec) ;
21                        assert (isequal (A, C)) ;
22                    end
23                end
24            end
25        end
26    end
27end
28
29fprintf ('\ntest101: all tests passed\n') ;
30