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)
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
a tensor with the tensors combined to one
This function works like a cbind or rbind function for tensors.
base{cbind}
# NOT RUN { 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 DataCamp Workspace