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