tensorA (version 0.36.2.1)

is.tensor: Checking for being a tensor

Description

Checks whether the object has a tensor attribute.

Usage

is.tensor(X)

Value

boolean

Arguments

X

the objected to be checked

Author

K. Gerald van den Boogaart

Details

This is a simple convenience function to check for the property of being a tensor.

See Also

to.tensor

Examples

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