Checks whether the object has a tensor attribute.
is.tensor(X)
the objected to be checked
boolean
This is a simple convenience function to check for the property of being a tensor.
to.tensor
# NOT RUN { A <- matrix(1:9,nrow=3) is.tensor(A) # no A <- to.tensor(A) is.tensor(A) # yes # }
Run the code above in your browser using DataLab