Skip to contents

Symbolic element-wise exponential operation for LazyTensor objects or default element-wise exponential operation otherwise, i.e. \(e^x\).

Usage

exp(x)

Arguments

x

input for exp.default() or exp.LazyTensor().

Value

See value of exp.default() or exp.LazyTensor().

Details

If x is a LazyTensor, see exp.LazyTensor(), else see exp.default().

Author

Chloe Serre-Combe, Amelie Vernay

Examples

if (FALSE) {
# R base operation
exp(0)
exp(1:10)
# LazyTensor symbolic element-wise exponential
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, index = 'i')   # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
Exp_x <- exp(x_i)                   # symbolic matrix, 150 rows and 3 columns
}