1function C = acot (G)
2%ACOT inverse cotangent.
3% C = acot (G) is the inverse cotangent of each entry of G.
4% Since acot (0) is nonzero, C is a full matrix.
5%
6% See also GrB/cot, GrB/coth, 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 ;
12type = gbtype (G) ;
13
14if (~gb_isfloat (type))
15    type = 'double' ;
16end
17
18C = GrB (gbapply ('atan', gbapply ('minv', gbfull (G, type)))) ;
19
20