Learn R Programming

rkeops (version 2.2.2)

exp1j: Element-wise "complex exponential of 1j x" operation.

Description

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)

Value

An object of class "ComplexLazyTensor".

Arguments

x

A LazyTensor.

Author

Chloe Serre-Combe, Amelie Vernay

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.

Examples

Run this code
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
}

Run the code above in your browser using DataLab