Skip to contents

Symbolic element-wise "complex exponential of 1j x" operation for LazyTensor object.

Usage

exp1j(x)

# S3 method for LazyTensor
exp1j(x)

# S3 method for ComplexLazyTensor
exp1j(x)

Arguments

x

A LazyTensor.

Value

An object of class "ComplexLazyTensor".

Details

exp1j(x) returns a ComplexLazyTensor that encodes, symbolically, the multiplication of 1j with x.

Note: exp1j(x) will exit with an error if x is a ComplexLazyTensor.

Author

Chloe Serre-Combe, Amelie Vernay

Examples

if (FALSE) {
x <- matrix(runif(150 * 3), 150, 3) # arbitrary R matrix, 150 rows, 3 columns
x_i <- LazyTensor(x, "i")           # creating LazyTensor from matrix x, 
                                    # indexed by 'i'
z <- exp1j(x_i)                     # ComplexLazyTensor object
}