1function e = nzmax (G)
2%NZMAX maximum number of entries in a matrix.
3% Since the GraphBLAS data structure is opaque, nzmax (G) has no
4% particular meaning.  Thus, nzmax (G) is simply max (GrB.entries (G), 1).
5% It appears as an overloaded operator for a GrB matrix simply for
6% compatibility with MATLAB sparse matrices.
7%
8% See also GrB/nnz, GrB.entries, GrB.nonz.
9
10% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
11% SPDX-License-Identifier: GPL-3.0-or-later
12
13G = G.opaque ;
14e = max (gbnvals (G), 1) ;
15
16