1function C = sech (G)
2%SECH hyperbolic secant.
3% C = sech (G) is the hyperbolic secant of each entry of G.
4% Since sech(0) is nonzero, C is a full matrix.
5%
6% See also GrB/sec, GrB/asec, GrB/asech.
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 ;
12type = gbtype (G) ;
13if (~gb_isfloat (type))
14    type = 'double' ;
15end
16
17C = GrB (gbapply ('minv', gbapply ('cosh', gbfull (G, type)))) ;
18
19