1function C = log (G) 2%LOG natural logarithm. 3% C = log (G) is the natural logarithm of each entry of G. 4% Since log (0) is nonzero, the result is a full matrix. 5% If any entry in G is negative, the result is complex. 6% 7% See also GrB/log1p, GrB/log2, GrB/log10, GrB/exp. 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 ; 13C = GrB (gb_to_real_if_imag_zero (gb_trig ('log', gbfull (G)))) ; 14 15