Tensors can be put side by side in one dimension if they are of equal size in all other dimensions.
bind.tensor(A,dA=NULL,B,dB=dA)
a tensor with the tensors combined to one
the first tensor
the dimension of A to be used for binding the tensors
the second tensor
the dimension of B to be used for binding the tensors
K.Gerald van den Boogaart
This function works like a cbind or rbind function for tensors.
base{cbind}
A <- to.tensor(1:6,c(a=2,b=3)) bind.tensor(A,"a",A) bind.tensor(A,"b",A)
Run the code above in your browser using DataLab