1function C = exp (G)
2%EXP exponential.
3% C = exp (G) is e^x for each entry x of the matrix G.
4% Since e^0 is nonzero, C is a full matrix.
5%
6% See also GrB/exp, GrB/expm1, GrB/pow2, GrB/log, GrB/log10, GrB/log2.
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 ('exp', gbfull (G, type))) ;
19
20