1function test168 2%TEST168 C=A+B with C and B full, A bitmap 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 ('test168:\n') ; 10 11n = 10 ; 12C = GB_spec_random (n, n, inf, 1, 'double') ; 13C.sparsity = 8 ; % full 14 15A = GB_spec_random (n, n, 0.5, 1, 'double') ; 16A.sparsity = 4 ; % bitmap 17 18B = GB_spec_random (n, n, inf, 1, 'double') ; 19B.sparsity = 8 ; % full 20 21C1 = A.matrix + B.matrix ; 22C2 = GB_mex_Matrix_eWiseAdd (C, [ ], [ ], 'plus', A, B, [ ]) ; 23GB_spec_compare (C1, C2) ; 24 25fprintf ('test168: all tests passed\n') ; 26 27