1function C = zeros (varargin) 2%ZEROS a matrix with no entries. 3% 4% C = zeros (n) ; n-by-n GrB double matrix with no entries. 5% C = zeros (m,n) ; m-by-n GrB double matrix with no entries. 6% C = zeros ([m,n]) ; m-by-n GrB double matrix with no entries. 7% C = zeros (..., type) ; empty matrix of given type. 8% C = zeros (..., 'like', G) ; empty matrix, same type as G. 9% 10% Since function overloads the MATLAB built-in zeros(...), at least one 11% input must be a GraphBLAS matrix to use this version (for example, 12% C = zeros (GrB (n))). Alternatively, C = GrB (n,n) can be used. 13% 14% See also GrB/ones, GrB/false, GrB/true. 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, type] = gb_parse_args ('zeros', varargin {:}) ; 20C = GrB (gbnew (m, n, type)) ; 21 22