1function test56
2%TEST56 test GrB_*_build
3
4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
5% SPDX-License-Identifier: Apache-2.0
6
7op.opname = 'min'
8op.optype = 'uint32'
9
10fprintf ('ktriplets:\n') ;
11I = uint64 ([0 0 0]') ;
12J = uint64 ([0 0 0]') ;
13Xk = int16 ([-93 74 -85]')
14
15fprintf ('ptriplets:\n') ;
16Xp = int16 ([-93 -85 74]')
17
18A1 = GB_mex_Matrix_build (I, J, Xk, 1, 1, op);
19A1_matrix = full (double (A1.matrix))
20
21A2 = GB_mex_Matrix_build (I, J, Xp, 1, 1, op);
22A2_matrix = full (double (A2.matrix))
23
24S1 = GB_spec_build       (I, J, Xk, 1, 1, op);
25S1_matrix = double (S1.matrix)
26
27S2 = GB_spec_build       (I, J, Xp, 1, 1, op);
28S2_matrix = double (S2.matrix)
29
30fprintf ('\ntest56: all tests passed\n') ;
31
32