The total number of values in a tensor. Equal to the product of the dimensions.

# S4 method for tensor
length(x)

Arguments

x

tensor