istensor: Checking for being a tensor

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Checks whether the object has a tensor attribute.

Usage

1

Arguments

X

the objected to be checked

Details

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

Value

boolean

Author(s)

K. Gerald van den Boogaart

See Also

to.tensor

Examples

1
2
3
4
A <- matrix(1:9,nrow=3)
is.tensor(A) # no
A <- to.tensor(A)
is.tensor(A) # yes

tensorA documentation built on Nov. 20, 2020, 9:07 a.m.

Related to istensor in tensorA...