1function ok = GB_spok (A)
2%GB_SPOK check if a matrix is valid
3
4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
5% SPDX-License-Identifier: Apache-2.0
6
7if (issparse (A))
8    ok = spok (A) ;
9else
10    ok = true ;
11end
12