1function s = normdiff (A,B,kind)
2%NORMDIFF norm (A-B,kind)
3% If A-B is a matrix:
4%
5%   norm (A-B,1) is the maximum sum of the columns of abs (A-B).
6%   norm (A-B,inf) is the maximum sum of the rows of abs (A-B).
7%   norm (A-B,'fro') is the Frobenius norm of A-B: the sqrt of the sum of
8%       the squares of the entries in A-B.
9%   The 2-norm is not available for either MATLAB or GraphBLAS sparse
10%       matrices.
11%
12% If A-B is a row or column vector:
13%
14%   norm (A-B,1) is the sum of abs (A-B)
15%   norm (A-B,2) is the sqrt of the sum of (A-B).^2
16%   norm (A-B,inf) is the maximum of abs (A-B)
17%   norm (A-B,-inf) is the minimum of abs (A-B)
18%
19% See also GrB.reduce, GrB/norm.
20
21% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
22% SPDX-License-Identifier: GPL-3.0-or-later
23
24if (nargin < 3)
25    kind = 2 ;
26end
27
28if (isobject (A))
29    A = A.opaque ;
30end
31
32if (isobject (B))
33    B = B.opaque ;
34end
35
36s = gbnormdiff (A, B, kind) ;
37
38