1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
function C = acsch (G)
%ACSCH inverse hyperbolic cosecant.
% C = acsch (G) is the inverse hyberbolic cosecant of each entry G.
% Since acsch (0) is nonzero, C is a full matrix.
%
% See also GrB/csc, GrB/acsc, GrB/csch.
% SuiteSparse:GraphBLAS, Timothy A. Davis, (c) 2017-2022, All Rights Reserved.
% SPDX-License-Identifier: Apache-2.0
G = G.opaque ;
type = gbtype (G) ;
if (~gb_isfloat (type))
type = 'double' ;
end
C = GrB (gbapply ('asinh', gbapply ('minv', gbfull (G, type)))) ;
|