1function C = tanh (G) 2%TANH hyperbolic tangent. 3% C = tanh (G) is the hyperbolic tangent of each entry of G. 4% 5% See also GrB/tan, GrB/atan, GrB/atanh, GrB/atan2. 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 = 'tanh.double' ; 13else 14 op = 'tanh' ; 15end 16 17C = GrB (gbapply (op, G)) ; 18 19