1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
function gbtest0
%GBTEST0 test GrB.clear
% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
% SPDX-License-Identifier: Apache-2.0
GrB.clear
GrB.init
assert (isequal (GrB.format, 'by col')) ;
assert (isequal (GrB.chunk, 64*1024)) ;
GrB.burble (1) ;
GrB.burble (0) ;
assert (~GrB.burble) ;
GrB.burble (false) ;
assert (~GrB.burble) ;
ok = true ;
try
GrB.burble (rand (2)) ;
ok = false ;
catch me
fprintf ('expected error:\n') ;
disp (me) ;
end
assert (ok) ;
fprintf ('default # of threads: %d\n', GrB.threads) ;
fprintf ('gbtest0: all tests passed\n') ;
|