1function C = asech (G)
2%ASECH inverse hyperbolic secant.
3% C = asech (G) is the inverse hyperbolic secant of each entry of G.
4% Since asech (0) is nonzero, the result is a full matrix.  C is complex
5% if G is complex, or if any real entries are outside of the range [0,1].
6%
7% See also GrB/sec, GrB/asec, GrB/sech.
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 ('acosh', gbapply ('minv', gbfull (G, type)))) ;
19
20