1function C = coth (G) 2%COTH hyperbolic cotangent. 3% C = coth (G) is the hyperbolic cotangent of each entry of G. 4% Since coth (0) is nonzero, C is a full matrix. 5% 6% See also GrB/cot, GrB/acot, GrB/acoth. 7 8% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2021, All Rights Reserved. 9% SPDX-License-Identifier: GPL-3.0-or-later 10 11G = G.opaque ; 12if (~gb_isfloat (gbtype (G))) 13 op = 'tanh.double' ; 14else 15 op = 'tanh' ; 16end 17 18C = GrB (gbapply ('minv', gbfull (gbapply (op, G)))) ; 19 20