1function C = sin (G) 2%SIN sine. 3% C = sin (G) is the sine of each entry of G. 4% 5% See also GrB/asin, GrB/sinh, GrB/asinh. 6 7% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 8% SPDX-License-Identifier: GPL-3.0-or-later 9 10G = G.opaque ; 11if (~gb_isfloat (gbtype (G))) 12 op = 'sin.double' ; 13else 14 op = 'sin' ; 15end 16 17C = GrB (gbapply (op, G)) ; 18 19