1function C = true (varargin) 2%TRUE a logical matrix with all true values. 3% 4% C = true (n) ; n-by-n GrB logical matrix of all true entries. 5% C = true (m,n) ; m-by-n GrB logical matrix of all true entries. 6% C = true ([m,n]) ; m-by-n GrB logical matrix of all true entries. 7% C = true (..., type) ; matrix of all true entries of given type. 8% C = true (..., 'like', G) ; matrix of all true entries, same type as G. 9% 10% Since function overloads the MATLAB built-in true(...), at least one 11% input must be a GraphBLAS matrix to use this version (for example, 12% C = true (GrB (n))). 13% 14% See also GrB/zeros, GrB/ones, GrB/false. 15 16% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 17% SPDX-License-Identifier: GPL-3.0-or-later 18 19[m, n, ~] = gb_parse_args ('true', varargin {:}) ; 20C = GrB (gb_scalar_to_full (m, n, 'logical', gbformat, true)) ; 21 22