Skip to contents

Checks whether the given input is a ComplexLazyTensor or not.

Usage

is.ComplexLazyTensor(x)

Arguments

x

An object that we want to know if it is a ComplexLazyTensor.

Value

A boolean, TRUE or FALSE.

Details

If x is a ComplexLazyTensor, is.ComplexLazyTensor(x) returns TRUE, else, returns FALSE.

Author

Chloe Serre-Combe, Amelie Vernay

Examples

if (FALSE) {
# basic example
D <- 3
M <- 100
x <- matrix(runif(M * D), M, D)
z <- matrix(1i^(-6:5), nrow = 4) # complex 4x3 matrix

# create LazyTensor and ComplexLazyTensor
x_i <- LazyTensor(x, index = 'i')
z_i <- LazyTensor(z, index = 'i', is_complex = TRUE) # ComplexLazyTensor

# call is.ComplexLazyTensor
is.ComplexLazyTensor(z_i) # returns TRUE
is.ComplexLazyTensor(x_i) # returns FALSE
}