1function C = floor (G) 2%FLOOR round entries to nearest integers towards -infinity. 3% C = floor (G) rounds the entries in the matrix G to the nearest integers 4% towards -infinity. 5% 6% See also GrB/ceil, GrB/round, GrB/fix. 7 8% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 9% SPDX-License-Identifier: GPL-3.0-or-later 10 11Q = G.opaque ; 12 13if (gb_isfloat (gbtype (Q)) && gbnvals (Q) > 0) 14 C = GrB (gbapply ('floor', Q)) ; 15else 16 C = G ; 17end 18 19