Symbolic element-wise exponential operation for LazyTensor
objects.
Details
Different use cases:
If
x
is aLazyTensor
,exp(x)
returns aLazyTensor
that encodes, symbolically, the element-wise exponential ofx
, i.e. \(e^x\).If
x
is aComplexLazyTensor
,exp(x)
returns aLazyTensor
that encodes, symbolically, the element-wise complex exponential ofx
Examples
if (FALSE) {
# basic example
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
# basic example with complex exponential
z <- matrix(1i^ (-6:5), nrow = 4) # create a complex 4x3 matrix
z_i <- LazyTensor(z, index = 'i', is_complex = TRUE) # create a ComplexLazyTensor
Exp_z_i <- exp(z_i) # symbolic matrix
}