1function s = isequal (A, B)
2%ISEQUAL True if matrices are equal and have the same type.
3% s = isequal (A,B) is true of A and B have the same size, type, pattern,
4% and values.  If A and B have different types, this function returns
5% false.  Typecast A and B to a common type to compare their values
6% (which is the behavior of the MATLAB isequal(A,B) function).
7%
8% If A is a GraphBLAS matrix with an explicit entry equal to zero, but in
9% B that entry is not present, then isequal (A,B) returns false.  To drop
10% them, use isequal (GrB.prune(A), GrB.prune(B)).
11%
12% The input matrices may be either GraphBLAS and/or MATLAB matrices, in
13% any combination.  A and B do not have to be the same class.  For
14% example, isequal (A, GrB (A)) is always true.
15%
16% See also isequal, GrB/eq, isequaln.
17
18% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
19% SPDX-License-Identifier: GPL-3.0-or-later
20
21if (isobject (A))
22    A = A.opaque ;
23end
24if (isobject (B))
25    B = B.opaque ;
26end
27
28s = gbisequal (A, B) ;
29
30