1function s = ishermitian (G, option) 2%ISHERMITIAN Determine if a matrix is Hermitian or real symmetric. 3% ishermitian (G) is true if G equals G' and false otherwise. 4% ishermitian (G, 'skew') is true if G equals -G' and false otherwise. 5% ishermitian (G, 'nonskew') is the same as ishermitian (G). 6% 7% See also GrB/issymmetric. 8 9% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 10% SPDX-License-Identifier: GPL-3.0-or-later 11 12G = G.opaque ; 13 14if (nargin < 2) 15 option = 'nonskew' ; 16end 17 18s = gb_issymmetric (G, option, true) ; 19 20