Checks whether the given input is a LazyTensor
encoding
a matrix.
Examples
if (FALSE) {
# basic example
scal <- 3.14
cplx <- 2 + 3i
v <- rep(3, 10)
x <- matrix(runif(100 * 3), 100, 3)
# create LazyTensor and ComplexLazyTensor
scal_LT <- LazyTensor(scal)
cplx_LT <- LazyTensor(cplx)
v_LT <- LazyTensor(v)
x_i <- LazyTensor(x, index = 'i')
# call is.LazyMatrix
is.LazyMatrix(scal_LT) # returns FALSE
is.LazyMatrix(cplx_LT) # returns FALSE
is.LazyMatrix(v_LT) # returns FALSE
is.LazyMatrix(x_i) # returns TRUE
}