Learn R Programming

rkeops (version 2.2.2)

is.LazyTensor: is.LazyTensor?

Description

Checks whether the given input is a LazyTensor or not.

Usage

is.LazyTensor(x)

Value

A boolean, TRUE or FALSE.

Arguments

x

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

Author

Chloe Serre-Combe, Amelie Vernay

Details

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

Examples

Run this code
if (FALSE) {
# basic example
D <- 3
M <- 100
x <- matrix(runif(M * D), M, D)

# create LazyTensor
x_i <- LazyTensor(x, index = 'i')

# call is.LazyTensor
is.LazyTensor(x_i) # returns TRUE
is.LazyTensor(x)   # returns FALSE
}

Run the code above in your browser using DataLab