1function gbtest73
2%GBTEST73 test GrB.normdiff
3
4% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved.
5% SPDX-License-Identifier: GPL-3.0-or-later
6
7rng ('default') ;
8
9x = rand (5, 1) ;
10y = rand (5, 1) ;
11e1 = GrB.normdiff (x, y) ;
12e2 = norm (x-y) ;
13assert (abs (e1 - e2) < 1e-12) ;
14
15fprintf ('gbtest73: all tests passed\n') ;
16
17